@@ -90,11 +90,11 @@ |
||
| 90 | 90 | */ |
| 91 | 91 | private static function assertValidFactory(string $factoryInterface, string $factoryImplementation): void |
| 92 | 92 | { |
| 93 | - if (! isset(self::$candidates[$factoryInterface])) { |
|
| 93 | + if (!isset(self::$candidates[$factoryInterface])) { |
|
| 94 | 94 | throw new InvalidArgumentException("$factoryInterface is not a supported factory"); |
| 95 | 95 | } |
| 96 | 96 | |
| 97 | - if (! is_subclass_of($factoryImplementation, $factoryInterface, true)) { |
|
| 97 | + if (!is_subclass_of($factoryImplementation, $factoryInterface, true)) { |
|
| 98 | 98 | throw new InvalidArgumentException("$factoryImplementation does not implement $factoryInterface"); |
| 99 | 99 | } |
| 100 | 100 | } |
@@ -12,7 +12,7 @@ |
||
| 12 | 12 | |
| 13 | 13 | protected static function instance(string $interface) |
| 14 | 14 | { |
| 15 | - if (! isset(self::$cache[$interface])) { |
|
| 15 | + if (!isset(self::$cache[$interface])) { |
|
| 16 | 16 | $implementation = static::locate($interface); |
| 17 | 17 | self::$cache[$interface] = new $implementation(); |
| 18 | 18 | } |