Test Setup Failed
Branch v2 (f58138)
by Martin
02:51
created
src/ReflectionClass.php 1 patch
Braces   +4 added lines, -8 removed lines patch added patch discarded remove patch
@@ -3,13 +3,11 @@  discard block
 block discarded – undo
3 3
 
4 4
 namespace Yep\Reflection;
5 5
 
6
-class ReflectionClass extends \ReflectionClass
7
-{
6
+class ReflectionClass extends \ReflectionClass {
8 7
     /** @var object */
9 8
     protected $object;
10 9
 
11
-    public function __construct($object)
12
-    {
10
+    public function __construct($object) {
13 11
         if (!is_object($object)) {
14 12
             throw new \InvalidArgumentException(sprintf('Expected "object", got "%s".', gettype($object)));
15 13
         }
@@ -23,8 +21,7 @@  discard block
 block discarded – undo
23 21
         return new static($class);
24 22
     }
25 23
 
26
-    public function invokeMethod(string $method, array $arguments = [])
27
-    {
24
+    public function invokeMethod(string $method, array $arguments = []) {
28 25
         $reflection = $this->getMethod($method);
29 26
         $reflection->setAccessible(true);
30 27
 
@@ -40,8 +37,7 @@  discard block
 block discarded – undo
40 37
         return $this;
41 38
     }
42 39
 
43
-    public function getPropertyValue(string $property)
44
-    {
40
+    public function getPropertyValue(string $property) {
45 41
         $reflection = $this->getProperty($property);
46 42
         $reflection->setAccessible(true);
47 43
 
Please login to merge, or discard this patch.