Test Setup Failed
Push — master ( c02760...2e971b )
by Taosikai
14:32
created
Container.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -243,7 +243,7 @@  discard block
 block discarded – undo
243 243
         //兼容旧的api
244 244
         if (is_bool($arguments)) {
245 245
             trigger_error("Argument 'new' has been deprecated", E_USER_DEPRECATED);
246
-            $forceNewInstance  = $arguments;
246
+            $forceNewInstance = $arguments;
247 247
             $arguments = [];
248 248
         } else {
249 249
             $forceNewInstance = false;
@@ -488,7 +488,7 @@  discard block
 block discarded – undo
488 488
      */
489 489
     protected function resolveParameters($parameters)
490 490
     {
491
-        return array_map(function ($parameter) {
491
+        return array_map(function($parameter) {
492 492
             //字符类型参数处理下预定义参数的情况
493 493
             if (is_string($parameter)) {
494 494
                 $parameter = $this->resolveString($parameter);
@@ -518,7 +518,7 @@  discard block
 block discarded – undo
518 518
             throw new DependencyInjectionException(sprintf("Parameter [%s] is not defined", $key));
519 519
         }
520 520
         //"fool%bar%baz"
521
-        return preg_replace_callback("#%([^%\s]+)%#", function ($matches) {
521
+        return preg_replace_callback("#%([^%\s]+)%#", function($matches) {
522 522
             $key = $matches[1];
523 523
             if ($parameter = $this->parameters->getParameter($key)) {
524 524
                 return $parameter;
Please login to merge, or discard this patch.