Passed
Branch master (9f18ec)
by Gui Xin
04:43
created
Category
src/PricingServiceProvider.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -26,7 +26,7 @@
 block discarded – undo
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),
Please login to merge, or discard this patch.
src/Pricing.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -41,7 +41,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 
Please login to merge, or discard this patch.