Test Failed
Push — master ( 191bfb...4f1ddb )
by
unknown
01:57
created
src/Container.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -413,7 +413,7 @@
 block discarded – undo
413 413
      */
414 414
     protected function turnIntoResolvableClosure($abstract, $concrete)
415 415
     {
416
-        return function (Container $container, $parameters = []) use ($abstract, $concrete) {
416
+        return function(Container $container, $parameters = []) use ($abstract, $concrete) {
417 417
             return ($abstract == $concrete ? $container->resolve($abstract)
418 418
                 : $container->resolve($concrete, $parameters));
419 419
         };
Please login to merge, or discard this patch.
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -186,7 +186,7 @@
 block discarded – undo
186 186
             throw Internal\Exception\ReflectionExceptionFactory::invalidArgument(
187 187
                 sprintf(
188 188
                     "Parameter 1 of %s must be an abstract class name which exists in resolved concrete stack.",
189
-                     __METHOD__
189
+                        __METHOD__
190 190
                 );
191 191
             );
192 192
         }
Please login to merge, or discard this patch.
bootstrap.php 1 patch
Indentation   +11 added lines, -11 removed lines patch added patch discarded remove patch
@@ -3,19 +3,19 @@
 block discarded – undo
3 3
 @trigger_error("This autoloader just for dummy testing. Just run 'composer dump-autoload --optimize' and you're set.", E_USER_DEPRECATED);
4 4
 
5 5
 \spl_autoload_register(function($className) {
6
-	$rootDir = __DIR__ . DIRECTORY_SEPARATOR . 'src';
6
+    $rootDir = __DIR__ . DIRECTORY_SEPARATOR . 'src';
7 7
 
8
-	$namespace = 'DependencyInjection';
8
+    $namespace = 'DependencyInjection';
9 9
 
10
-	$className = str_replace(
11
-		'\\',
12
-		DIRECTORY_SEPARATOR,
13
-		str_replace($namespace, $rootDir, $className)
14
-	);
10
+    $className = str_replace(
11
+        '\\',
12
+        DIRECTORY_SEPARATOR,
13
+        str_replace($namespace, $rootDir, $className)
14
+    );
15 15
 
16
-	$className .= '.php';
16
+    $className .= '.php';
17 17
 
18
-	if ($file = stream_resolve_include_path($className)) {
19
-		require_once $file;
20
-	}
18
+    if ($file = stream_resolve_include_path($className)) {
19
+        require_once $file;
20
+    }
21 21
 });
Please login to merge, or discard this patch.
src/Internal/ReflectionClassFactory.php 1 patch
Doc Comments   +6 added lines patch added patch discarded remove patch
@@ -24,6 +24,9 @@  discard block
 block discarded – undo
24 24
         $this->reflection = new \ReflectionClass($instance);
25 25
     }
26 26
 
27
+    /**
28
+     * @param string $instance
29
+     */
27 30
     public static function create($instance)
28 31
     {
29 32
         return new static($instance);
@@ -174,6 +177,9 @@  discard block
 block discarded – undo
174 177
         return $this->reflection->hasConstant($name);
175 178
     }
176 179
 
180
+    /**
181
+     * @param string $name
182
+     */
177 183
     public function hasMethod($name)
178 184
     {
179 185
         if (!is_string($name)) {
Please login to merge, or discard this patch.