Passed
Pull Request — master (#9)
by Magnar Ovedal
02:07
created
src/DiscoveryLocator.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -49,11 +49,11 @@
 block discarded – undo
49 49
      */
50 50
     private static function assertValidImplementation(string $interface, string $implementation): void
51 51
     {
52
-        if (! isset(static::$candidates[$interface])) {
52
+        if (!isset(static::$candidates[$interface])) {
53 53
             throw new InvalidArgumentException("$interface is not a supported factory");
54 54
         }
55 55
 
56
-        if (! is_subclass_of($implementation, $interface, true)) {
56
+        if (!is_subclass_of($implementation, $interface, true)) {
57 57
             throw new InvalidArgumentException("$implementation does not implement $interface");
58 58
         }
59 59
     }
Please login to merge, or discard this patch.
src/DiscoveryCache.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -12,7 +12,7 @@
 block discarded – undo
12 12
 
13 13
     protected static function makeInstance(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
         }
Please login to merge, or discard this patch.