From 869a0ca295d95e7f0a3ca0d7ae6ceb05f417dfae Mon Sep 17 00:00:00 2001 From: D Koop Date: Fri, 20 May 2016 04:40:01 -0400 Subject: [PATCH] Applied fixes from StyleCI --- spec/WP_wrapperSpec.php | 9 ++++----- src/WP_wrapper.php | 44 ++++++++++++++++++++++------------------- 2 files changed, 28 insertions(+), 25 deletions(-) diff --git a/spec/WP_wrapperSpec.php b/spec/WP_wrapperSpec.php index 6ed34f0..0af290c 100644 --- a/spec/WP_wrapperSpec.php +++ b/spec/WP_wrapperSpec.php @@ -3,18 +3,17 @@ namespace spec\MrKoopie\WP_wrapper; use PhpSpec\ObjectBehavior; -use Prophecy\Argument; class WP_wrapperSpec extends ObjectBehavior { - function it_is_initializable() + public function it_is_initializable() { $this->shouldHaveType('MrKoopie\WP_wrapper\WP_wrapper'); } - function it_can_get_the_date() + public function it_can_get_the_date() { - self::print_r('Y',1) - ->shouldBeEqualTo(print_r('Y', 1)); + self::print_r('Y', 1) + ->shouldBeEqualTo(print_r('Y', 1)); } } diff --git a/src/WP_wrapper.php b/src/WP_wrapper.php index 9a3bafa..02212df 100644 --- a/src/WP_wrapper.php +++ b/src/WP_wrapper.php @@ -4,25 +4,29 @@ class WP_wrapper { - /** - * Call $function in the root namespace and pass the arguments. - * @param string $function The $function name. - * @param array $arguments The parameters for $function. - * @return various Returned data by the function. - */ - public static function __callStatic($function, $arguments) - { - return call_user_func_array( '\\'.$function, $arguments); - } + /** + * Call $function in the root namespace and pass the arguments. + * + * @param string $function The $function name. + * @param array $arguments The parameters for $function. + * + * @return various Returned data by the function. + */ + public static function __callStatic($function, $arguments) + { + return call_user_func_array('\\'.$function, $arguments); + } - /** - * Call $function in the root namespace and pass the arguments. - * @param string $function The $function name. - * @param array $arguments The parameters for $function. - * @return various Returned data by the function. - */ - public function __call($function, $arguments) - { - return call_user_func_array( '\\'.$function, $arguments); - } + /** + * Call $function in the root namespace and pass the arguments. + * + * @param string $function The $function name. + * @param array $arguments The parameters for $function. + * + * @return various Returned data by the function. + */ + public function __call($function, $arguments) + { + return call_user_func_array('\\'.$function, $arguments); + } }