@@ -26,7 +26,7 @@ |
||
26 | 26 | */ |
27 | 27 | public function register() |
28 | 28 | { |
29 | - $this->app->singleton('pricing', function ($app) { |
|
29 | + $this->app->singleton('pricing', function($app) { |
|
30 | 30 | return new Pricing( |
31 | 31 | $app, |
32 | 32 | new Pipeline($app), |
@@ -41,7 +41,7 @@ discard block |
||
41 | 41 | |
42 | 42 | public function getOriginalTotal() |
43 | 43 | { |
44 | - return $this->items->sum(function ($item) { |
|
44 | + return $this->items->sum(function($item) { |
|
45 | 45 | return $item->price * $item->quantity; |
46 | 46 | }); |
47 | 47 | } |
@@ -68,7 +68,7 @@ discard block |
||
68 | 68 | return $this->pipeline |
69 | 69 | ->send($this) |
70 | 70 | ->through($module) |
71 | - ->then(function ($pricing) { |
|
71 | + ->then(function($pricing) { |
|
72 | 72 | return $pricing; |
73 | 73 | }); |
74 | 74 | } |
@@ -103,13 +103,13 @@ discard block |
||
103 | 103 | |
104 | 104 | protected function checkModule($module) |
105 | 105 | { |
106 | - if (! in_array($module, $this->modules)) { |
|
106 | + if (!in_array($module, $this->modules)) { |
|
107 | 107 | throw new InvalidModuleException($module . ' not found in module list.'); |
108 | 108 | } |
109 | 109 | |
110 | 110 | $reflection = new \ReflectionClass($module); |
111 | 111 | |
112 | - if (! $reflection->implementsInterface(ModuleContract::class)) { |
|
112 | + if (!$reflection->implementsInterface(ModuleContract::class)) { |
|
113 | 113 | throw new InvalidModuleException($module . ' must implement ' . ModuleContract::class); |
114 | 114 | } |
115 | 115 |