@@ -171,7 +171,7 @@ |
||
| 171 | 171 | } |
| 172 | 172 | |
| 173 | 173 | /** |
| 174 | - * @param array $excludedVisibility |
|
| 174 | + * @param string[] $excludedVisibility |
|
| 175 | 175 | * |
| 176 | 176 | * @return array |
| 177 | 177 | */ |
@@ -136,10 +136,10 @@ |
||
| 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 | /** |
@@ -72,8 +72,7 @@ discard block |
||
| 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 |
||
| 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; |
@@ -37,7 +37,7 @@ |
||
| 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 | |