Completed
Push — master ( 6411fa...6ee6e0 )
by Jesse
02:41
created
src/AutoWiring.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 
3
-declare(strict_types=1);
3
+declare(strict_types = 1);
4 4
 
5 5
 namespace Stratadox\Di;
6 6
 
@@ -85,7 +85,7 @@  discard block
 block discarded – undo
85 85
         }
86 86
         $class = $this->links[$name];
87 87
         $this->resolveClass(new Reflected($class));
88
-        $this->container->set($name, function () use ($class) {
88
+        $this->container->set($name, function() use ($class) {
89 89
             return $this->container->get($class);
90 90
         });
91 91
     }
@@ -101,7 +101,7 @@  discard block
 block discarded – undo
101 101
             }
102 102
         }
103 103
         $container = $this->container;
104
-        $container->set($name, function () use ($name, $dependencies, $container) {
104
+        $container->set($name, function() use ($name, $dependencies, $container) {
105 105
             $parameters = [];
106 106
             foreach ($dependencies as $dependency) {
107 107
                 $parameters[] = $container->get($dependency);
Please login to merge, or discard this patch.
src/Container.php 1 patch
Braces   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -75,7 +75,9 @@
 block discarded – undo
75 75
     /** @throws ServiceNotFound */
76 76
     private function mustKnowAbout(string $theService) : void
77 77
     {
78
-        if ($this->has($theService)) return;
78
+        if ($this->has($theService)) {
79
+            return;
80
+        }
79 81
         throw ServiceNotFound::noServiceNamed($theService);
80 82
     }
81 83
 }
Please login to merge, or discard this patch.