Completed
Push — master ( 84dd97...00884c )
by Taosikai
13:27
created
Container.php 2 patches
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -384,7 +384,7 @@  discard block
 block discarded – undo
384 384
      */
385 385
     protected function resolveParameters($parameters)
386 386
     {
387
-        return array_map(function ($parameter) {
387
+        return array_map(function($parameter) {
388 388
             if (is_string($parameter)) {
389 389
                 $parameter = $this->formatParameter($parameter);
390 390
             } elseif ($parameter instanceof Reference) {
@@ -413,7 +413,7 @@  discard block
 block discarded – undo
413 413
             throw new DependencyInjectionException(sprintf("Parameter [%s] is not defined", $key));
414 414
         }
415 415
         //"fool%bar%baz"
416
-        return preg_replace_callback("#%([^%\s]+)%#", function ($matches) {
416
+        return preg_replace_callback("#%([^%\s]+)%#", function($matches) {
417 417
             $key = $matches[1];
418 418
             if ($parameter = $this->parameters->getParameter($key)) {
419 419
                 return $parameter;
Please login to merge, or discard this patch.
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -63,7 +63,7 @@
 block discarded – undo
63 63
     /**
64 64
      * Bind an callable to the container with its name
65 65
      * @param string $name
66
-     * @param mixed $creation A invalid callable
66
+     * @param callable $creation A invalid callable
67 67
      * @throws ConfigException
68 68
      * @return $this
69 69
      */
Please login to merge, or discard this patch.
ClassDefinition.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -90,7 +90,7 @@
 block discarded – undo
90 90
      */
91 91
     public function setMethodCall($method, $arguments)
92 92
     {
93
-        $this->calls[$method] = (array)$arguments;
93
+        $this->calls[$method] = (array) $arguments;
94 94
         return $this;
95 95
     }
96 96
 
Please login to merge, or discard this patch.