Completed
Push — master ( e299e4...94cf65 )
by Taosikai
15:49 queued 02:33
created
Container.php 1 patch
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -12,7 +12,6 @@
 block discarded – undo
12 12
 namespace Slince\Di;
13 13
 
14 14
 use Slince\Di\Exception\ConfigException;
15
-use Slince\Di\Exception\DependencyInjectionException;
16 15
 use Slince\Di\Exception\NotFoundException;
17 16
 use Interop\Container\ContainerInterface;
18 17
 
Please login to merge, or discard this patch.
DefinitionResolver.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -146,7 +146,7 @@
 block discarded – undo
146 146
      * @param \ReflectionFunctionAbstract $method
147 147
      * @param array $arguments
148 148
      * @throws DependencyInjectionException
149
-     * @return array
149
+     * @return null|callable
150 150
      */
151 151
     public function resolveFunctionArguments(
152 152
         \ReflectionFunctionAbstract $method,
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -217,7 +217,7 @@
 block discarded – undo
217 217
             return $this->container->get(substr($value, 1));
218 218
         }
219 219
         //"fool%bar%baz"
220
-        return preg_replace_callback("#%([^%\s]+)%#", function ($matches) {
220
+        return preg_replace_callback("#%([^%\s]+)%#", function($matches) {
221 221
             $key = $matches[1];
222 222
             if ($parameter = $this->container->getParameter($key)) {
223 223
                 return $parameter;
Please login to merge, or discard this patch.
Definition.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -219,7 +219,7 @@
 block discarded – undo
219 219
     {
220 220
         $this->calls[] = [
221 221
             $method,
222
-            (array)$arguments
222
+            (array) $arguments
223 223
         ];
224 224
         return $this;
225 225
     }
Please login to merge, or discard this patch.