Passed
Push — master ( 525061...11f56a )
by Hector Luis
22:10 queued 08:19
created
src/Application/Service/Provider/HotelRoom/Price.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -25,8 +25,8 @@
 block discarded – undo
25 25
     {
26 26
         $days = $this->calculateDays($command);
27 27
         $price = $this->instance->getPrice();
28
-        $price *= (int)$days->days;
28
+        $price *= (int) $days->days;
29 29
 
30
-        return (float)$price;
30
+        return (float) $price;
31 31
     }
32 32
 }
Please login to merge, or discard this patch.
src/Application/Service/Provider/AgencyCar/Price.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -20,13 +20,13 @@
 block discarded – undo
20 20
     public function getPrice(UseCaseCommandInterface $command): float
21 21
     {
22 22
         /** @var string $indexed */
23
-        $indexed = (string)$this->instance->getSeasonBasedPrices();
23
+        $indexed = (string) $this->instance->getSeasonBasedPrices();
24 24
         $days = $this->calculateDays($command);
25 25
         $key = "{$indexed}";
26 26
         $price = $this->extractLogicFromSerializedPrices($command->getProduct()->getData($key), $days->days);
27
-        $price *= (int)$days->days;
27
+        $price *= (int) $days->days;
28 28
 
29
-        return (float)$price;
29
+        return (float) $price;
30 30
     }
31 31
 
32 32
     /**
Please login to merge, or discard this patch.
src/Application/Service/Provider/BasePriceProvider.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -46,12 +46,12 @@  discard block
 block discarded – undo
46 46
      */
47 47
     public function execute(UseCaseCommandInterface $command)
48 48
     {
49
-        $price = (float)0;
49
+        $price = (float) 0;
50 50
         if ($this->instance = $this->priceProviderGatewaySignature->execute($command)) {
51 51
             $price = $this->getPrice($command);
52 52
         }
53 53
 
54
-        return (float)0 === $price ? $this->getBasePrice($command) : $price;
54
+        return (float) 0 === $price ? $this->getBasePrice($command) : $price;
55 55
     }
56 56
 
57 57
     /**
@@ -65,9 +65,9 @@  discard block
 block discarded – undo
65 65
         /** @var DtoInterface $product */
66 66
         $product = $command->getProduct();
67 67
         $days = $this->calculateDays($command);
68
-        $result = $product ? $product->getPrice() * (int)$days->days : 0;
68
+        $result = $product ? $product->getPrice() * (int) $days->days : 0;
69 69
 
70
-        return (float)$result;
70
+        return (float) $result;
71 71
     }
72 72
 
73 73
     /**
Please login to merge, or discard this patch.
src/Domain/Policies/Calendar/Disabling/CQRS/Command.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -21,17 +21,17 @@
 block discarded – undo
21 21
     public function extractType(array $input): array
22 22
     {
23 23
         $result = [
24
-            'single' => (function () use ($input) {
24
+            'single' => (function() use ($input) {
25 25
                 $result['rule'] = json_encode(['date' => $input['date']]);
26 26
                 $result['period'] = $input['period'];
27 27
                 return $result;
28 28
             }),
29
-            'period' => (function () use ($input) {
29
+            'period' => (function() use ($input) {
30 30
                 $result['rule'] = json_encode(['from' => $input['disableFrom'], 'to' => $input['disableTo']]);
31 31
                 $result['period'] = $input['period'];
32 32
                 return $result;
33 33
             }),
34
-            'recurrent_day' => (function () use ($input) {
34
+            'recurrent_day' => (function() use ($input) {
35 35
                 $result['rule'] = json_encode(['dayOfWeek' => $input['dayOfWeek']]);
36 36
                 $result['period'] = $input['period'];
37 37
                 return $result;
Please login to merge, or discard this patch.
src/Domain/Policies/Calendar/Disabling/CQRS/Query.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -57,7 +57,7 @@  discard block
 block discarded – undo
57 57
         $decoded = $this->decode($rule);
58 58
         $this->validate($decoded, $type);
59 59
         $result = [
60
-            'single'        => (function () use ($decoded) {
60
+            'single'        => (function() use ($decoded) {
61 61
                 $period = $this->periodConstraint->extract([
62 62
                     'from' => $decoded['date'],
63 63
                     'to'   => $decoded['date'],
@@ -65,12 +65,12 @@  discard block
 block discarded – undo
65 65
 
66 66
                 return $this->extract($period);
67 67
             }),
68
-            'period'        => (function () use ($decoded) {
68
+            'period'        => (function() use ($decoded) {
69 69
                 $period = $this->periodConstraint->extract($decoded);
70 70
 
71 71
                 return $this->extract($period);
72 72
             }),
73
-            'recurrent_day' => (function () use ($decoded) {
73
+            'recurrent_day' => (function() use ($decoded) {
74 74
                 $dayOfWeek = jddayofweek($decoded['dayOfWeek'] - 1, 1);
75 75
                 $period = $this->weekDaysConstraint->extract([
76 76
                     'weekDay' => $dayOfWeek,
@@ -91,7 +91,7 @@  discard block
 block discarded – undo
91 91
      */
92 92
     public function fetchList(): array
93 93
     {
94
-        usort($this->list, function ($previous, $next) {
94
+        usort($this->list, function($previous, $next) {
95 95
             $previousDate = strtotime($previous);
96 96
             $nextDate = strtotime($next);
97 97
 
Please login to merge, or discard this patch.
src/Application/Service/Provider/Package/PriceAggregate.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -28,7 +28,7 @@  discard block
 block discarded – undo
28 28
         $product = $command->getProduct();
29 29
         $result = $product ? $product->getPrice() : 0;
30 30
 
31
-        return (float)$result;
31
+        return (float) $result;
32 32
     }
33 33
 
34 34
     /**
@@ -36,6 +36,6 @@  discard block
 block discarded – undo
36 36
      */
37 37
     public function getPrice(UseCaseCommandInterface $command): float
38 38
     {
39
-        return (float)$this->instance->getPrice();
39
+        return (float) $this->instance->getPrice();
40 40
     }
41 41
 }
Please login to merge, or discard this patch.
src/Application/Service/Provider/Package/RootAggregate.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -64,7 +64,7 @@  discard block
 block discarded – undo
64 64
     {
65 65
         $result = unserialize($this->package->getDepartureDays());
66 66
 
67
-        return array_map(function ($value) {
67
+        return array_map(function($value) {
68 68
             return $value - 1;
69 69
         }, $result);
70 70
     }
@@ -74,7 +74,7 @@  discard block
 block discarded – undo
74 74
      */
75 75
     public function getNumberOfNights(): int
76 76
     {
77
-        return (int)$this->package->getNumberOfNights();
77
+        return (int) $this->package->getNumberOfNights();
78 78
     }
79 79
 
80 80
     /**
Please login to merge, or discard this patch.