Completed
Push — master ( 5d7e0f...d5e6f7 )
by
unknown
02:39
created
src/Internal/ReflectionClassFactory.php 1 patch
Doc Comments   +6 added lines patch added patch discarded remove patch
@@ -84,6 +84,9 @@  discard block
 block discarded – undo
84 84
         return $this->reflection->getInterfaces();
85 85
     }
86 86
 
87
+    /**
88
+     * @param string $name
89
+     */
87 90
     public function getMethod($name)
88 91
     {
89 92
         return $this->reflection->getMethod($name);
@@ -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.
src/Container.php 4 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.
Doc Comments   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -450,7 +450,7 @@  discard block
 block discarded – undo
450 450
     /**
451 451
      * Determine if current reflection object has constructor.
452 452
      *
453
-     * @param \ReflectionClass $refl The current reflection class object.
453
+     * @param Internal\ReflectionClassFactory $refl The current reflection class object.
454 454
      * @return boolean
455 455
      */
456 456
     protected function hasConstructor(Internal\ReflectionClassFactory $refl)
@@ -461,7 +461,7 @@  discard block
 block discarded – undo
461 461
     /**
462 462
      * Determine if unresolvable class name has cloneable.
463 463
      *
464
-     * @param \ReflectionClass $refl The current reflection class object.
464
+     * @param Internal\ReflectionClassFactory $refl The current reflection class object.
465 465
      * @return boolean
466 466
      */
467 467
     protected function isCloneable(Internal\ReflectionClassFactory $refl)
@@ -472,7 +472,7 @@  discard block
 block discarded – undo
472 472
     /**
473 473
      * Determine if unresolvable class name has serializable.
474 474
      *
475
-     * @param \ReflectionClass $refl The current reflection class object.
475
+     * @param Internal\ReflectionClassFactory $refl The current reflection class object.
476 476
      * @return boolean
477 477
      */
478 478
     protected function isSerializable(Internal\ReflectionClassFactory $refl)
@@ -483,7 +483,7 @@  discard block
 block discarded – undo
483 483
     /**
484 484
      * Resolving class name without constructor.
485 485
      *
486
-     * @param \ReflectionClass $refl An instance of \ReflectionClass
486
+     * @param Internal\ReflectionClassFactory $refl An instance of \ReflectionClass
487 487
      */
488 488
     protected function resolveInstanceWithoutConstructor(Internal\ReflectionClassFactory $refl)
489 489
     {
@@ -493,7 +493,7 @@  discard block
 block discarded – undo
493 493
     /**
494 494
      * Get method parameters.
495 495
      *
496
-     * @param \ReflectionClass $refl An reflection class instance.
496
+     * @param Internal\ReflectionClassFactory $refl An reflection class instance.
497 497
      * @param string $method The method name.
498 498
      * @return array
499 499
      */
@@ -507,7 +507,7 @@  discard block
 block discarded – undo
507 507
      *
508 508
      * @param string $abstract The resolved class name.
509 509
      * @param object $resolvedInstance The object instance of resolved abstract.
510
-     * @param mixed $flag The concrete-resolving behavior.
510
+     * @param string $flag The concrete-resolving behavior.
511 511
      * @return void
512 512
      */
513 513
     protected function markAsResolved($abstract, $resolvedInstance, $flag = [])
Please login to merge, or discard this patch.
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -7,7 +7,6 @@
 block discarded – undo
7 7
 namespace DependencyInjection;
8 8
 
9 9
 use Psr\Container\ContainerInterface;
10
-use DependencyInjection\Exception\ContainerException;
11 10
 use DependencyInjection\Exception\NotFoundException;
12 11
 
13 12
 class Container implements \ArrayAccess, ContainerInterface
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.