@@ -1,6 +1,6 @@ discard block |
||
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 |
||
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; |
@@ -2,7 +2,7 @@ discard block |
||
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 |
||
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 |