@@ -38,7 +38,7 @@ discard block |
||
| 38 | 38 | { |
| 39 | 39 | return $this->cacheCheck( |
| 40 | 40 | __FUNCTION__ . ',' . $reflectionClass->name, |
| 41 | - function (ReflectionClass $reflectionClass) { |
|
| 41 | + function(ReflectionClass $reflectionClass) { |
|
| 42 | 42 | return $this->internal->getGetterFields($reflectionClass); |
| 43 | 43 | }, |
| 44 | 44 | $reflectionClass |
@@ -52,7 +52,7 @@ discard block |
||
| 52 | 52 | { |
| 53 | 53 | return $this->cacheCheck( |
| 54 | 54 | __FUNCTION__ . ',' . $reflectionClass->name, |
| 55 | - function (ReflectionClass $reflectionClass) { |
|
| 55 | + function(ReflectionClass $reflectionClass) { |
|
| 56 | 56 | return $this->internal->getSetterFields($reflectionClass); |
| 57 | 57 | }, |
| 58 | 58 | $reflectionClass |
@@ -66,7 +66,7 @@ discard block |
||
| 66 | 66 | { |
| 67 | 67 | return $this->cacheCheck( |
| 68 | 68 | __FUNCTION__ . ',' . $reflectionClass->name . ',' . $fieldName, |
| 69 | - function (ReflectionClass $reflectionClass, string $fieldName) { |
|
| 69 | + function(ReflectionClass $reflectionClass, string $fieldName) { |
|
| 70 | 70 | return $this->internal->getGetterTypes($reflectionClass, $fieldName); |
| 71 | 71 | }, |
| 72 | 72 | $reflectionClass, |
@@ -81,7 +81,7 @@ discard block |
||
| 81 | 81 | { |
| 82 | 82 | return $this->cacheCheck( |
| 83 | 83 | __FUNCTION__ . ',' . $reflectionClass->name . ',' . $fieldName, |
| 84 | - function (ReflectionClass $reflectionClass, string $fieldName) { |
|
| 84 | + function(ReflectionClass $reflectionClass, string $fieldName) { |
|
| 85 | 85 | return $this->internal->getSetterTypes($reflectionClass, $fieldName); |
| 86 | 86 | }, |
| 87 | 87 | $reflectionClass, |
@@ -96,7 +96,7 @@ discard block |
||
| 96 | 96 | { |
| 97 | 97 | return $this->cacheCheck( |
| 98 | 98 | __FUNCTION__ . ',' . $reflectionClass->name, |
| 99 | - function (ReflectionClass $reflectionClass) { |
|
| 99 | + function(ReflectionClass $reflectionClass) { |
|
| 100 | 100 | return $this->internal->getConstructorArguments($reflectionClass); |
| 101 | 101 | }, |
| 102 | 102 | $reflectionClass |
@@ -134,7 +134,7 @@ discard block |
||
| 134 | 134 | { |
| 135 | 135 | return $this->cacheCheck( |
| 136 | 136 | __FUNCTION__ . ',' . $reflectionClass->name . ',' . $fieldName . ',' . json_encode($preferGetters), |
| 137 | - function (ReflectionClass $reflectionClass, string $fieldName, bool $preferGetters) { |
|
| 137 | + function(ReflectionClass $reflectionClass, string $fieldName, bool $preferGetters) { |
|
| 138 | 138 | return $this->internal->getDescription($reflectionClass, $fieldName, $preferGetters); |
| 139 | 139 | }, |
| 140 | 140 | $reflectionClass, |
@@ -150,7 +150,7 @@ discard block |
||
| 150 | 150 | { |
| 151 | 151 | return $this->cacheCheck( |
| 152 | 152 | __FUNCTION__ . ',' . $reflectionClass->name, |
| 153 | - function (ReflectionClass $reflectionClass) { |
|
| 153 | + function(ReflectionClass $reflectionClass) { |
|
| 154 | 154 | if ($this->internal instanceof ObjectAccessSupportedInterface) { |
| 155 | 155 | return $this->internal->isSupported($reflectionClass); |
| 156 | 156 | } |
@@ -168,7 +168,7 @@ discard block |
||
| 168 | 168 | { |
| 169 | 169 | return $this->cacheCheck( |
| 170 | 170 | __FUNCTION__ . ',' . $method->name . ',' . ($reflectionClass ? $reflectionClass->name : '(null)'), |
| 171 | - function (ReflectionMethod $method, ?ReflectionClass $reflectionClass = null) { |
|
| 171 | + function(ReflectionMethod $method, ?ReflectionClass $reflectionClass = null) { |
|
| 172 | 172 | return $this->internal->getMethodArguments($method, $reflectionClass); |
| 173 | 173 | }, |
| 174 | 174 | $method, |
@@ -26,7 +26,7 @@ |
||
| 26 | 26 | $tmp = $errors->getExceptions(); |
| 27 | 27 | $tmp = reset($tmp); |
| 28 | 28 | if ($tmp) { |
| 29 | - $previous = reset($tmp) ? : null; |
|
| 29 | + $previous = reset($tmp) ?: null; |
|
| 30 | 30 | } |
| 31 | 31 | } |
| 32 | 32 | parent::__construct(422, 'A validation error occurred', $previous); |