@@ -1,5 +1,5 @@ |
||
1 | 1 | <?php |
2 | -declare(strict_types=1); |
|
2 | +declare(strict_types = 1); |
|
3 | 3 | namespace DQNEO\FizzBuzzEnterpriseEdition; |
4 | 4 | |
5 | 5 | use DQNEO\FizzBuzzEnterpriseEdition\Entity\AbstractEntity; |
@@ -1,5 +1,5 @@ |
||
1 | 1 | <?php |
2 | -declare(strict_types=1); |
|
2 | +declare(strict_types = 1); |
|
3 | 3 | namespace DQNEO\FizzBuzzEnterpriseEdition; |
4 | 4 | |
5 | 5 | use DQNEO\FizzBuzzEnterpriseEdition\Entity\AbstractEntity; |
@@ -1,5 +1,5 @@ discard block |
||
1 | 1 | <?php |
2 | -declare(strict_types=1); |
|
2 | +declare(strict_types = 1); |
|
3 | 3 | namespace DQNEO\FizzBuzzEnterpriseEdition\Console; |
4 | 4 | |
5 | 5 | use DQNEO\FizzBuzzEnterpriseEdition\Application\FizzBuzzApplication; |
@@ -21,7 +21,7 @@ discard block |
||
21 | 21 | $logic = new FizzBuzzLogic(new IntegerValue(3), new IntegerValue(5)); |
22 | 22 | |
23 | 23 | $fizzbuzz = new FizzBuzzApplication($logic, $writer); |
24 | - $rangeIterator = new RangeIterator(new IntegerValue(1), new IntegerValue((int)$argv[1])); |
|
24 | + $rangeIterator = new RangeIterator(new IntegerValue(1), new IntegerValue((int) $argv[1])); |
|
25 | 25 | $fizzbuzz->run($rangeIterator); |
26 | 26 | |
27 | 27 | return 0; |
@@ -1,5 +1,5 @@ |
||
1 | 1 | <?php |
2 | -declare(strict_types=1); |
|
2 | +declare(strict_types = 1); |
|
3 | 3 | namespace DQNEO\FizzBuzzEnterpriseEdition; |
4 | 4 | |
5 | 5 | use DQNEO\FizzBuzzEnterpriseEdition\Entity\AbstractEntity; |
@@ -1,5 +1,5 @@ |
||
1 | 1 | <?php |
2 | -declare(strict_types=1); |
|
2 | +declare(strict_types = 1); |
|
3 | 3 | namespace DQNEO\FizzBuzzEnterpriseEdition; |
4 | 4 | |
5 | 5 | use DQNEO\FizzBuzzEnterpriseEdition\Entity\AbstractEntity; |
@@ -1,5 +1,5 @@ |
||
1 | 1 | <?php |
2 | -declare(strict_types=1); |
|
2 | +declare(strict_types = 1); |
|
3 | 3 | namespace DQNEO\FizzBuzzEnterpriseEdition; |
4 | 4 | |
5 | 5 | use DQNEO\FizzBuzzEnterpriseEdition\Entity\AbstractEntity; |
@@ -1,5 +1,5 @@ discard block |
||
1 | 1 | <?php |
2 | -declare(strict_types=1); |
|
2 | +declare(strict_types = 1); |
|
3 | 3 | namespace DQNEO\FizzBuzzEnterpriseEdition; |
4 | 4 | |
5 | 5 | use DQNEO\FizzBuzzEnterpriseEdition\Value\StringValue; |
@@ -16,6 +16,6 @@ discard block |
||
16 | 16 | |
17 | 17 | public function writeln(StringValue $string) |
18 | 18 | { |
19 | - $this->buf .= $string . "\n"; |
|
19 | + $this->buf .= $string."\n"; |
|
20 | 20 | } |
21 | 21 | } |
22 | 22 | \ No newline at end of file |
@@ -1,5 +1,5 @@ discard block |
||
1 | 1 | <?php |
2 | -declare(strict_types=1); |
|
2 | +declare(strict_types = 1); |
|
3 | 3 | namespace DQNEO\FizzBuzzEnterpriseEdition; |
4 | 4 | |
5 | 5 | use DQNEO\FizzBuzzEnterpriseEdition\Application\FizzBuzzApplication; |
@@ -12,7 +12,7 @@ discard block |
||
12 | 12 | public function setUp() |
13 | 13 | { |
14 | 14 | parent::setUp(); |
15 | - require_once __DIR__ . '/MockWriter.php'; |
|
15 | + require_once __DIR__.'/MockWriter.php'; |
|
16 | 16 | } |
17 | 17 | |
18 | 18 | public function testNew() |
@@ -28,7 +28,7 @@ discard block |
||
28 | 28 | $writer = new MockWriter; |
29 | 29 | $logic = new FizzBuzzLogic(new IntegerValue(3), new IntegerValue(5)); |
30 | 30 | $fb = new FizzBuzzApplication($logic, $writer); |
31 | - $fb->run(new RangeIterator(new IntegerValue(1),new IntegerValue(1))); |
|
31 | + $fb->run(new RangeIterator(new IntegerValue(1), new IntegerValue(1))); |
|
32 | 32 | $this->assertEquals("1\n", $writer->buf); |
33 | 33 | } |
34 | 34 | |
@@ -37,7 +37,7 @@ discard block |
||
37 | 37 | $writer = new MockWriter; |
38 | 38 | $logic = new FizzBuzzLogic(new IntegerValue(3), new IntegerValue(5)); |
39 | 39 | $fb = new FizzBuzzApplication($logic, $writer); |
40 | - $fb->run(new RangeIterator(new IntegerValue(1),new IntegerValue(2))); |
|
40 | + $fb->run(new RangeIterator(new IntegerValue(1), new IntegerValue(2))); |
|
41 | 41 | $this->assertEquals("1\n2\n", $writer->buf); |
42 | 42 | } |
43 | 43 | |
@@ -46,7 +46,7 @@ discard block |
||
46 | 46 | $writer = new MockWriter; |
47 | 47 | $logic = new FizzBuzzLogic(new IntegerValue(3), new IntegerValue(5)); |
48 | 48 | $fb = new FizzBuzzApplication($logic, $writer); |
49 | - $fb->run(new RangeIterator(new IntegerValue(1),new IntegerValue(3))); |
|
49 | + $fb->run(new RangeIterator(new IntegerValue(1), new IntegerValue(3))); |
|
50 | 50 | $this->assertEquals("1\n2\nFizz\n", $writer->buf); |
51 | 51 | } |
52 | 52 | |
@@ -56,9 +56,9 @@ discard block |
||
56 | 56 | $writer = new MockWriter; |
57 | 57 | $logic = new FizzBuzzLogic(new IntegerValue(3), new IntegerValue(5)); |
58 | 58 | $fb = new FizzBuzzApplication($logic, $writer); |
59 | - $fb->run(new RangeIterator(new IntegerValue(1),new IntegerValue(16))); |
|
59 | + $fb->run(new RangeIterator(new IntegerValue(1), new IntegerValue(16))); |
|
60 | 60 | |
61 | - $expected ="1 |
|
61 | + $expected = "1 |
|
62 | 62 | 2 |
63 | 63 | Fizz |
64 | 64 | 4 |