Completed
Push — master ( f99bf7...aef34c )
by Boy
02:07
created
lib/Executable.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -49,7 +49,7 @@
 block discarded – undo
49 49
 
50 50
     /**
51 51
      * @TODO Remove this extra indirection when 5.3 support is dropped
52
-     * @param $reflection
52
+     * @param \ReflectionFunctionAbstract $reflection
53 53
      * @param $args
54 54
      *
55 55
      * @return mixed
Please login to merge, or discard this patch.
lib/Injector.php 1 patch
Doc Comments   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -150,7 +150,7 @@  discard block
 block discarded – undo
150 150
     /**
151 151
      * Share the specified class/instance across the Injector context
152 152
      *
153
-     * @param mixed $nameOrInstance The class or object to share
153
+     * @param Reflector $nameOrInstance The class or object to share
154 154
      * @throws ConfigException if $nameOrInstance is not a string or an object
155 155
      * @return self
156 156
      */
@@ -175,7 +175,7 @@  discard block
 block discarded – undo
175 175
     }
176 176
 
177 177
     /**
178
-     * @param $nameOrInstance
178
+     * @param string $nameOrInstance
179 179
      */
180 180
     private function shareClass($nameOrInstance)
181 181
     {
@@ -327,7 +327,7 @@  discard block
 block discarded – undo
327 327
 
328 328
     /**
329 329
      * @param $source
330
-     * @param $name
330
+     * @param string|null $name
331 331
      *
332 332
      * @return array
333 333
      */
@@ -398,7 +398,7 @@  discard block
 block discarded – undo
398 398
 
399 399
     /**
400 400
      * @param       $className
401
-     * @param       $normalizedClass
401
+     * @param       string $normalizedClass
402 402
      * @param array $definition
403 403
      *
404 404
      * @return object
@@ -458,7 +458,7 @@  discard block
 block discarded – undo
458 458
     /**
459 459
      * @param \ReflectionFunctionAbstract $reflFunc
460 460
      * @param array                       $definitions
461
-     * @param array|null                  $reflParams
461
+     * @param \ReflectionParameter[]                  $reflParams
462 462
      *
463 463
      * @return array
464 464
      * @throws ConfigException
@@ -655,7 +655,7 @@  discard block
 block discarded – undo
655 655
 
656 656
     /**
657 657
      * @param $obj
658
-     * @param $normalizedClass
658
+     * @param string $normalizedClass
659 659
      *
660 660
      * @return mixed
661 661
      * @throws InjectionException
@@ -767,7 +767,7 @@  discard block
 block discarded – undo
767 767
     }
768 768
 
769 769
     /**
770
-     * @param $stringExecutable
770
+     * @param string $stringExecutable
771 771
      *
772 772
      * @return array
773 773
      * @throws InjectionException
Please login to merge, or discard this patch.
examples/delegate_params.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 
3
-require __DIR__ . "/../vendor/autoload.php";
3
+require __DIR__."/../vendor/autoload.php";
4 4
 
5 5
 class A {
6 6
     private $a;
@@ -21,12 +21,12 @@  discard block
 block discarded – undo
21 21
 $injector = new Auryn\Injector;
22 22
 
23 23
 $injector->define(A::class, [
24
-    "+a" => function () {
24
+    "+a" => function() {
25 25
         $std = new stdClass;
26 26
         $std->foo = "foo";
27 27
         return $std;
28 28
     },
29
-    "+b" => function () {
29
+    "+b" => function() {
30 30
         $std = new stdClass;
31 31
         $std->foo = "bar";
32 32
         return $std;
Please login to merge, or discard this patch.
examples/make_with_concrete_dependency.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -2,7 +2,7 @@  discard block
 block discarded – undo
2 2
 
3 3
 use Auryn\Injector;
4 4
 
5
-require __DIR__ . "/../vendor/autoload.php";
5
+require __DIR__."/../vendor/autoload.php";
6 6
 
7 7
 $injector = new Injector;
8 8
 
@@ -21,4 +21,4 @@  discard block
 block discarded – undo
21 21
     ":std" => $stdClass,
22 22
 ]);
23 23
 
24
-print $a->std->foo . PHP_EOL;
25 24
\ No newline at end of file
25
+print $a->std->foo.PHP_EOL;
26 26
\ No newline at end of file
Please login to merge, or discard this patch.