@@ -1,5 +1,5 @@ |
||
| 1 | 1 | <?php |
| 2 | -declare(strict_types=1); |
|
| 2 | +declare(strict_types = 1); |
|
| 3 | 3 | |
| 4 | 4 | namespace Cart\DiscountStrategy; |
| 5 | 5 | |
@@ -1,5 +1,5 @@ discard block |
||
| 1 | 1 | <?php |
| 2 | -declare(strict_types=1); |
|
| 2 | +declare(strict_types = 1); |
|
| 3 | 3 | |
| 4 | 4 | namespace Cart\DiscountStrategy; |
| 5 | 5 | |
@@ -27,7 +27,7 @@ discard block |
||
| 27 | 27 | { |
| 28 | 28 | $price = $basePrice - $this->sign; |
| 29 | 29 | if ($price < 0) { |
| 30 | - $price = 0 ; |
|
| 30 | + $price = 0; |
|
| 31 | 31 | } |
| 32 | 32 | return $price; |
| 33 | 33 | } |
@@ -1,5 +1,5 @@ discard block |
||
| 1 | 1 | <?php |
| 2 | -declare(strict_types=1); |
|
| 2 | +declare(strict_types = 1); |
|
| 3 | 3 | |
| 4 | 4 | namespace Cart\Commands; |
| 5 | 5 | |
@@ -25,14 +25,14 @@ discard block |
||
| 25 | 25 | protected function execute(InputInterface $input, OutputInterface $output) : void |
| 26 | 26 | { |
| 27 | 27 | foreach (Finder::create()->files()->name('*.php')-> |
| 28 | - in(__DIR__. '/../../migrations') as $file) { |
|
| 28 | + in(__DIR__ . '/../../migrations') as $file) { |
|
| 29 | 29 | $classes = get_declared_classes(); |
| 30 | 30 | include $file->getRealPath(); |
| 31 | 31 | $diff = array_diff(get_declared_classes(), $classes); |
| 32 | 32 | $class = reset($diff); |
| 33 | 33 | |
| 34 | 34 | (new $class())->up(); |
| 35 | - $output->writeln('<fg=green>Success added migration: ' . basename($file->getFilename(), '.php') .'</>'); |
|
| 35 | + $output->writeln('<fg=green>Success added migration: ' . basename($file->getFilename(), '.php') . '</>'); |
|
| 36 | 36 | } |
| 37 | 37 | } |
| 38 | 38 | } |
| 39 | 39 | \ No newline at end of file |
@@ -20,7 +20,7 @@ |
||
| 20 | 20 | protected function execute(InputInterface $input, OutputInterface $output) |
| 21 | 21 | { |
| 22 | 22 | foreach (Finder::create()->files()->name('*.php') |
| 23 | - ->in(__DIR__. '/../../migrations') as $file) { |
|
| 23 | + ->in(__DIR__. '/../../migrations') as $file) { |
|
| 24 | 24 | $classes = get_declared_classes(); |
| 25 | 25 | include $file->getRealPath(); |
| 26 | 26 | $diff = array_diff(get_declared_classes(), $classes); |
@@ -1,5 +1,5 @@ discard block |
||
| 1 | 1 | <?php |
| 2 | -declare(strict_types=1); |
|
| 2 | +declare(strict_types = 1); |
|
| 3 | 3 | namespace Cart\Commands; |
| 4 | 4 | |
| 5 | 5 | use Symfony\Component\Console\Command\Command; |
@@ -20,13 +20,13 @@ discard block |
||
| 20 | 20 | protected function execute(InputInterface $input, OutputInterface $output) |
| 21 | 21 | { |
| 22 | 22 | foreach (Finder::create()->files()->name('*.php') |
| 23 | - ->in(__DIR__. '/../../migrations') as $file) { |
|
| 23 | + ->in(__DIR__ . '/../../migrations') as $file) { |
|
| 24 | 24 | $classes = get_declared_classes(); |
| 25 | 25 | include $file->getRealPath(); |
| 26 | 26 | $diff = array_diff(get_declared_classes(), $classes); |
| 27 | 27 | $class = reset($diff); |
| 28 | 28 | (new $class())->down(); |
| 29 | - $output->writeln('<fg=green>Success rollback migration: ' . basename($file->getFilename(), '.php') .'</>'); |
|
| 29 | + $output->writeln('<fg=green>Success rollback migration: ' . basename($file->getFilename(), '.php') . '</>'); |
|
| 30 | 30 | } |
| 31 | 31 | } |
| 32 | 32 | } |
| 33 | 33 | \ No newline at end of file |
@@ -1,5 +1,5 @@ |
||
| 1 | 1 | <?php |
| 2 | -declare(strict_types=1); |
|
| 2 | +declare(strict_types = 1); |
|
| 3 | 3 | |
| 4 | 4 | namespace Cart\Contracts; |
| 5 | 5 | |
@@ -1,5 +1,5 @@ |
||
| 1 | 1 | <?php |
| 2 | -declare(strict_types=1); |
|
| 2 | +declare(strict_types = 1); |
|
| 3 | 3 | |
| 4 | 4 | namespace Cart\Contracts; |
| 5 | 5 | |
@@ -1,5 +1,5 @@ |
||
| 1 | 1 | <?php |
| 2 | -declare(strict_types=1); |
|
| 2 | +declare(strict_types = 1); |
|
| 3 | 3 | |
| 4 | 4 | namespace Cart\Contracts; |
| 5 | 5 | |
@@ -1,5 +1,5 @@ |
||
| 1 | 1 | <?php |
| 2 | -declare(strict_types=1); |
|
| 2 | +declare(strict_types = 1); |
|
| 3 | 3 | |
| 4 | 4 | namespace Cart\CountOperation; |
| 5 | 5 | |
@@ -1,5 +1,5 @@ |
||
| 1 | 1 | <?php |
| 2 | -declare(strict_types=1); |
|
| 2 | +declare(strict_types = 1); |
|
| 3 | 3 | |
| 4 | 4 | namespace Cart\CountOperation; |
| 5 | 5 | |