Passed
Push — master ( cfd7b9...6118b7 )
by Chubarov
02:38
created
src/DiscountStrategy/PercentageStrategy.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,5 +1,5 @@
 block discarded – undo
1 1
 <?php
2
-declare(strict_types=1);
2
+declare(strict_types = 1);
3 3
 
4 4
 namespace Cart\DiscountStrategy;
5 5
 
Please login to merge, or discard this patch.
src/DiscountStrategy/FixDiscountStrategy.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -1,5 +1,5 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
     }
Please login to merge, or discard this patch.
src/Commands/MigrateCommand.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -1,5 +1,5 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
Please login to merge, or discard this patch.
src/Commands/MigrateRollbackCommand.php 2 patches
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -20,7 +20,7 @@
 block discarded – undo
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);
Please login to merge, or discard this patch.
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -1,5 +1,5 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
Please login to merge, or discard this patch.
src/Contracts/DiscountContract.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,5 +1,5 @@
 block discarded – undo
1 1
 <?php
2
-declare(strict_types=1);
2
+declare(strict_types = 1);
3 3
 
4 4
 namespace Cart\Contracts;
5 5
 
Please login to merge, or discard this patch.
src/Contracts/ServiceProviderContract.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,5 +1,5 @@
 block discarded – undo
1 1
 <?php
2
-declare(strict_types=1);
2
+declare(strict_types = 1);
3 3
 
4 4
 namespace Cart\Contracts;
5 5
 
Please login to merge, or discard this patch.
src/Contracts/SetTableDriver.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,5 +1,5 @@
 block discarded – undo
1 1
 <?php
2
-declare(strict_types=1);
2
+declare(strict_types = 1);
3 3
 
4 4
 namespace Cart\Contracts;
5 5
 
Please login to merge, or discard this patch.
src/CountOperation/SubtractionCount.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,5 +1,5 @@
 block discarded – undo
1 1
 <?php
2
-declare(strict_types=1);
2
+declare(strict_types = 1);
3 3
 
4 4
 namespace Cart\CountOperation;
5 5
 
Please login to merge, or discard this patch.
src/CountOperation/ChangeCount.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,5 +1,5 @@
 block discarded – undo
1 1
 <?php
2
-declare(strict_types=1);
2
+declare(strict_types = 1);
3 3
 
4 4
 namespace Cart\CountOperation;
5 5
 
Please login to merge, or discard this patch.