Completed
Branch master (55367d)
by Roman
02:21
created
src/Container.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -150,7 +150,7 @@
 block discarded – undo
150 150
      * @param mixed $definition The definition of service.
151 151
      * @param array $params     Parameters for service construct.
152 152
      *
153
-     * @return mixed Entry.
153
+     * @return Container Entry.
154 154
      * @throws ContainerException Error while retrieving the entry.
155 155
      * @throws NotFoundException No entry was found for this identifier.
156 156
      */
Please login to merge, or discard this patch.
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -211,14 +211,14 @@  discard block
 block discarded – undo
211 211
             if (array_key_exists($parameter->name, $parameters)) {
212 212
                 $resolved[] = $parameters[$parameter->name];
213 213
             } else if (($type = $parameter->getClass())) {
214
-                try{
214
+                try {
215 215
                     $params = [];
216 216
                     if (array_key_exists($type->name, $parameters)) {
217 217
                         $params = $parameters[$type->name];
218 218
                         unset($parameters[$type->name]);
219 219
                     }
220 220
                     $resolved[] = $this->get($type->name, $params);
221
-                } catch(ContainerException $e){
221
+                } catch (ContainerException $e) {
222 222
                     if ($parameter->isOptional()) {
223 223
                         $resolved[] = $parameter->getDefaultValue();
224 224
                     } else {
@@ -284,7 +284,7 @@  discard block
 block discarded – undo
284 284
      */
285 285
     public function isShared($id)
286 286
     {
287
-        return $this->has($id)?$this->services[$id]['shared']:false;
287
+        return $this->has($id) ? $this->services[$id]['shared'] : false;
288 288
     }
289 289
 
290 290
     /**
Please login to merge, or discard this patch.