@@ -24,10 +24,10 @@ |
||
24 | 24 | // This works; |
25 | 25 | // Must return the same ID; |
26 | 26 | $example1 = Example::getInstance(); |
27 | -echo $example1->getId() . "\n"; |
|
27 | +echo $example1->getId()."\n"; |
|
28 | 28 | |
29 | 29 | $example2 = Example::getInstance(); |
30 | -echo $example2->getId() . "\n"; |
|
30 | +echo $example2->getId()."\n"; |
|
31 | 31 | |
32 | 32 | |
33 | 33 | // That cannot work! |
@@ -1,6 +1,6 @@ |
||
1 | 1 | <?php |
2 | 2 | |
3 | -require_once __DIR__ . "/../vendor/autoload.php"; |
|
3 | +require_once __DIR__."/../vendor/autoload.php"; |
|
4 | 4 | require_once "Sample1.php"; |
5 | 5 | require_once "Sample2.php"; |
6 | 6 |
@@ -1,6 +1,6 @@ |
||
1 | 1 | <?php |
2 | 2 | |
3 | -require_once __DIR__ . "/../vendor/autoload.php"; |
|
3 | +require_once __DIR__."/../vendor/autoload.php"; |
|
4 | 4 | |
5 | 5 | class Sample1 |
6 | 6 | { |
@@ -1,6 +1,6 @@ |
||
1 | 1 | <?php |
2 | 2 | |
3 | -require_once __DIR__ . "/../vendor/autoload.php"; |
|
3 | +require_once __DIR__."/../vendor/autoload.php"; |
|
4 | 4 | |
5 | 5 | class Sample2 |
6 | 6 | { |