Completed
Push — master ( 1e2100...b879f8 )
by Taosikai
14:23
created
ClassDefinition.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -31,6 +31,9 @@
 block discarded – undo
31 31
      */
32 32
     protected $properties = [];
33 33
 
34
+    /**
35
+     * @param string $class
36
+     */
34 37
     public function __construct($class, array $arguments = [], array $calls = [], array $properties = [])
35 38
     {
36 39
         $this->class = $class;
Please login to merge, or discard this patch.
Container.php 2 patches
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -62,7 +62,7 @@  discard block
 block discarded – undo
62 62
     /**
63 63
      * Bind an callable to the container with its name
64 64
      * @param string $name
65
-     * @param mixed $creation A invalid callable
65
+     * @param callable $creation A invalid callable
66 66
      * @throws ConfigException
67 67
      * @return $this
68 68
      */
@@ -398,7 +398,7 @@  discard block
 block discarded – undo
398 398
 
399 399
     /**
400 400
      * Formats parameter value
401
-     * @param $value
401
+     * @param string $value
402 402
      * @return mixed
403 403
      * @throws DependencyInjectionException
404 404
      */
Please login to merge, or discard this patch.
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.