Completed
Push — v1.ns ( 0f96a8...6f7a44 )
by Timo
05:20 queued 02:12
created
src/Factory/ServiceFactory.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -51,7 +51,7 @@  discard block
 block discarded – undo
51 51
                 $constructor = isset($config["constructor"]) ? (string)$config["constructor"] : "";
52 52
                 if ($constructor != '' && Test::assertMethod($cls, $constructor)) {
53 53
                     $service = call_user_func_array(array($cls, $constructor), $arguments);
54
-                } else {
54
+                }else {
55 55
                     $service = self::build($cls, $arguments);
56 56
                 }
57 57
             } catch (\Exception $e) {
@@ -97,7 +97,7 @@  discard block
 block discarded – undo
97 97
                 if ($entry->getName() == 'value') {
98 98
                     if ($entry['key']) {
99 99
                         $arg[(string)$entry['key']] = (string)$entry;
100
-                    } else {
100
+                    }else {
101 101
                         $arg[] = (string)$entry;
102 102
                     }
103 103
                 } elseif ($entry->getName() == 'service') {
@@ -129,7 +129,7 @@  discard block
 block discarded – undo
129 129
     public static function buildAndModify(array $config, $arguments, $defaultClass = "") {
130 130
         if ((isset($config["class"]) && "" != (string)$config["class"]) || $defaultClass !== "") {
131 131
              $service = ServiceFactory::doBuild($config, $arguments, $defaultClass);
132
-        } else {
132
+        }else {
133 133
             throw new \RuntimeException('Could not create Service. no class or reference given.');
134 134
         }
135 135
         if (isset($config["ref_property"])) {
Please login to merge, or discard this patch.