@@ -49,7 +49,7 @@ |
||
49 | 49 | |
50 | 50 | private static function factoryInstance(string $factoryInterface) |
51 | 51 | { |
52 | - if (! isset(self::$factories[$factoryInterface])) { |
|
52 | + if (!isset(self::$factories[$factoryInterface])) { |
|
53 | 53 | $factory = FactoryLocator::locate($factoryInterface); |
54 | 54 | self::$factories[$factoryInterface] = new $factory(); |
55 | 55 | } |
@@ -73,11 +73,11 @@ discard block |
||
73 | 73 | */ |
74 | 74 | public static function register(string $factoryInterface, string $factoryImplementation): void |
75 | 75 | { |
76 | - if (! isset(self::$candidates[$factoryInterface])) { |
|
76 | + if (!isset(self::$candidates[$factoryInterface])) { |
|
77 | 77 | throw new InvalidArgumentException("$factoryInterface is not a supported factory"); |
78 | 78 | } |
79 | 79 | |
80 | - if (! is_a($factoryImplementation, $factoryInterface, true)) { |
|
80 | + if (!is_a($factoryImplementation, $factoryInterface, true)) { |
|
81 | 81 | throw new InvalidArgumentException("$factoryImplementation does not implement $factoryInterface"); |
82 | 82 | } |
83 | 83 | |
@@ -89,11 +89,11 @@ discard block |
||
89 | 89 | */ |
90 | 90 | public static function unregister(string $factoryInterface, string $factoryImplementation): void |
91 | 91 | { |
92 | - if (! isset(self::$candidates[$factoryInterface])) { |
|
92 | + if (!isset(self::$candidates[$factoryInterface])) { |
|
93 | 93 | throw new InvalidArgumentException("$factoryInterface is not a supported factory"); |
94 | 94 | } |
95 | 95 | |
96 | - if (! is_a($factoryImplementation, $factoryInterface, true)) { |
|
96 | + if (!is_a($factoryImplementation, $factoryInterface, true)) { |
|
97 | 97 | throw new InvalidArgumentException("$factoryImplementation does not implement $factoryInterface"); |
98 | 98 | } |
99 | 99 |