Test Setup Failed
Branch master (bd9389)
by Herberto
03:28
created
src/ClassHelper.php 3 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -171,7 +171,7 @@
 block discarded – undo
171 171
     }
172 172
 
173 173
     /**
174
-     * @param array $excludedVisibility
174
+     * @param string[] $excludedVisibility
175 175
      *
176 176
      * @return array
177 177
      */
Please login to merge, or discard this patch.
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -136,10 +136,10 @@
 block discarded – undo
136 136
     ): bool
137 137
     {
138 138
         return in_array($reflectionProperty->getName(), $excludedNames) ||
139
-        (! $excludedVisibility['public'] && $reflectionProperty->isPublic()) ||
140
-        (! $excludedVisibility['protected'] && $reflectionProperty->isProtected()) ||
141
-        (! $excludedVisibility['private'] && $reflectionProperty->isPrivate()) ||
142
-        (! $excludedVisibility['static'] && $reflectionProperty->isStatic());
139
+        (!$excludedVisibility['public'] && $reflectionProperty->isPublic()) ||
140
+        (!$excludedVisibility['protected'] && $reflectionProperty->isProtected()) ||
141
+        (!$excludedVisibility['private'] && $reflectionProperty->isPrivate()) ||
142
+        (!$excludedVisibility['static'] && $reflectionProperty->isStatic());
143 143
     }
144 144
 
145 145
     /**
Please login to merge, or discard this patch.
Braces   +2 added lines, -4 removed lines patch added patch discarded remove patch
@@ -72,8 +72,7 @@  discard block
 block discarded – undo
72 72
     {
73 73
         try {
74 74
             $reflectionMethod = new ReflectionMethod($classFqcn, $method);
75
-        }
76
-        catch (ReflectionException $e) {
75
+        } catch (ReflectionException $e) {
77 76
             return [];
78 77
         }
79 78
 
@@ -118,8 +117,7 @@  discard block
 block discarded – undo
118 117
     {
119 118
         try {
120 119
             return $class->getProperty($propertyName);
121
-        }
122
-        catch (ReflectionException $e) {
120
+        } catch (ReflectionException $e) {
123 121
             $parentClass = $class->getParentClass();
124 122
             if ($parentClass === false) {
125 123
                 throw $e;
Please login to merge, or discard this patch.
src/ArrayHelper.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -37,7 +37,7 @@
 block discarded – undo
37 37
         $steps  = explode('.', $path);
38 38
         $actual = $data;
39 39
         foreach ($steps as $step) {
40
-            if (! array_key_exists($step, $actual)) {
40
+            if (!array_key_exists($step, $actual)) {
41 41
                 return null;
42 42
             }
43 43
 
Please login to merge, or discard this patch.