@@ -89,12 +89,12 @@ |
||
| 89 | 89 | { |
| 90 | 90 | if (! \is_object($configuredInstance)) { |
| 91 | 91 | throw new InvalidConfigException( |
| 92 | - \sprintf( |
|
| 93 | - 'The return value of the configure callable must be an instance of %s got %s', |
|
| 94 | - $className, |
|
| 95 | - \gettype($configuredInstance) |
|
| 96 | - ) |
|
| 97 | - ); |
|
| 92 | + \sprintf( |
|
| 93 | + 'The return value of the configure callable must be an instance of %s got %s', |
|
| 94 | + $className, |
|
| 95 | + \gettype($configuredInstance) |
|
| 96 | + ) |
|
| 97 | + ); |
|
| 98 | 98 | } |
| 99 | 99 | |
| 100 | 100 | $instanceClassName = (new \ReflectionClass($configuredInstance))->name; |
@@ -71,7 +71,7 @@ discard block |
||
| 71 | 71 | $givenParameters = \array_keys($config); |
| 72 | 72 | |
| 73 | 73 | foreach ($requiredParameters as $requiredParameter) { |
| 74 | - if (! \in_array($requiredParameter, $givenParameters, true)) { |
|
| 74 | + if ( ! \in_array($requiredParameter, $givenParameters, true)) { |
|
| 75 | 75 | throw new InvalidConfigException( |
| 76 | 76 | "The parameter '{$requiredParameter}' is required for {$className}" |
| 77 | 77 | ); |
@@ -87,7 +87,7 @@ discard block |
||
| 87 | 87 | */ |
| 88 | 88 | private function validateConfiguredInstance($configuredInstance, string $className) |
| 89 | 89 | { |
| 90 | - if (! \is_object($configuredInstance)) { |
|
| 90 | + if ( ! \is_object($configuredInstance)) { |
|
| 91 | 91 | throw new InvalidConfigException( |
| 92 | 92 | \sprintf( |
| 93 | 93 | 'The return value of the configure callable must be an instance of %s got %s', |