Completed
Push — master ( 402feb...3309aa )
by Tom
8s
created
src/Pimple/PimpleContainerAdapter.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -42,7 +42,7 @@  discard block
 block discarded – undo
42 42
         }
43 43
 
44 44
         foreach ($config as $key => $value) {
45
-            $this->container[$prefix . $key] = $value;
45
+            $this->container[$prefix.$key] = $value;
46 46
         }
47 47
     }
48 48
 
@@ -96,7 +96,7 @@  discard block
 block discarded – undo
96 96
      */
97 97
     private function createFactoryFactory(ServiceDefinition $definition)
98 98
     {
99
-        return function () use ($definition) {
99
+        return function() use ($definition) {
100 100
             $className = $definition->getClass();
101 101
             $factory   = new $className();
102 102
 
@@ -111,7 +111,7 @@  discard block
 block discarded – undo
111 111
      */
112 112
     private function createAliasFactory(ServiceDefinition $definition)
113 113
     {
114
-        return function () use ($definition) {
114
+        return function() use ($definition) {
115 115
             return $this->container[$definition->getClass()];
116 116
         };
117 117
     }
@@ -123,7 +123,7 @@  discard block
 block discarded – undo
123 123
      */
124 124
     private function createInstanceFactory(ServiceDefinition $definition)
125 125
     {
126
-        return function () use ($definition) {
126
+        return function() use ($definition) {
127 127
             $className = $definition->getClass();
128 128
             $instance  = new $className(...$this->resolveArguments($definition->getArguments()));
129 129
 
@@ -142,7 +142,7 @@  discard block
 block discarded – undo
142 142
      */
143 143
     private function createInflector(InflectorDefinition $definition)
144 144
     {
145
-        return function ($subject) use ($definition) {
145
+        return function($subject) use ($definition) {
146 146
             foreach ($definition->getMethods() as $method => $arguments) {
147 147
                 // @todo - method does not exist
148 148
 
@@ -158,7 +158,7 @@  discard block
 block discarded – undo
158 158
      */
159 159
     private function applyInflectors(Closure $factory)
160 160
     {
161
-        return function () use ($factory) {
161
+        return function() use ($factory) {
162 162
             $instance = $factory();
163 163
 
164 164
             foreach ($this->inflectors as $interface => $inflector) {
@@ -179,7 +179,7 @@  discard block
 block discarded – undo
179 179
     private function resolveArguments(array $arguments)
180 180
     {
181 181
         return array_map(
182
-            function ($argument) {
182
+            function($argument) {
183 183
                 if (!is_string($argument)) {
184 184
                     return $argument;
185 185
                 }
Please login to merge, or discard this patch.