Completed
Pull Request — master (#57)
by Peter
16s
created
src/WoocommerceServiceProvider.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -43,7 +43,7 @@  discard block
 block discarded – undo
43 43
 
44 44
         $config = $app['config']->get('woocommerce');
45 45
 
46
-        $app->singleton('woocommerce.client', function () use ($config) {
46
+        $app->singleton('woocommerce.client', function() use ($config) {
47 47
             return new Client(
48 48
                 $config['store_url'],
49 49
                 $config['consumer_key'],
@@ -57,7 +57,7 @@  discard block
 block discarded – undo
57 57
                 ]);
58 58
         });
59 59
 
60
-        $app->singleton('Pixelpeter\Woocommerce\WoocommerceClient', function ($app) {
60
+        $app->singleton('Pixelpeter\Woocommerce\WoocommerceClient', function($app) {
61 61
             return new WoocommerceClient($app['woocommerce.client']);
62 62
         });
63 63
 
Please login to merge, or discard this patch.
src/WoocommerceClient.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -122,7 +122,7 @@  discard block
 block discarded – undo
122 122
      */
123 123
     public function currentPage()
124 124
     {
125
-        return ! empty($this->getRequest()->getParameters()['page']) ? $this->getRequest()->getParameters()['page'] : 1;
125
+        return !empty($this->getRequest()->getParameters()['page']) ? $this->getRequest()->getParameters()['page'] : 1;
126 126
     }
127 127
 
128 128
     /**
@@ -132,7 +132,7 @@  discard block
 block discarded – undo
132 132
      */
133 133
     public function totalResults()
134 134
     {
135
-        return (int)$this->getResponse()->getHeaders()[$this->getHeaderWithCase('X-WP-Total')];
135
+        return (int) $this->getResponse()->getHeaders()[$this->getHeaderWithCase('X-WP-Total')];
136 136
     }
137 137
 
138 138
     /**
@@ -142,7 +142,7 @@  discard block
 block discarded – undo
142 142
      */
143 143
     public function totalPages()
144 144
     {
145
-        return (int)$this->getResponse()->getHeaders()[$this->getHeaderWithCase('X-WP-TotalPages')];
145
+        return (int) $this->getResponse()->getHeaders()[$this->getHeaderWithCase('X-WP-TotalPages')];
146 146
     }
147 147
 
148 148
     /**
@@ -204,7 +204,7 @@  discard block
 block discarded – undo
204 204
      */
205 205
     public function hasNotNextPage()
206 206
     {
207
-        return (bool) ! $this->nextPage();
207
+        return (bool) !$this->nextPage();
208 208
     }
209 209
 
210 210
     /**
@@ -214,7 +214,7 @@  discard block
 block discarded – undo
214 214
      */
215 215
     public function hasNotPreviousPage()
216 216
     {
217
-        return (bool) ! $this->previousPage();
217
+        return (bool) !$this->previousPage();
218 218
     }
219 219
 
220 220
     /**
Please login to merge, or discard this patch.