Completed
Push — master ( 6575c1...0d16be )
by Scott
01:59
created
classes/ApiMiddleware.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -7,7 +7,7 @@
 block discarded – undo
7 7
 {
8 8
     public function handle($request, Closure $next)
9 9
     {
10
-        if (! ApiSettings::isEnabled()) {
10
+        if (!ApiSettings::isEnabled()) {
11 11
             abort(403, 'Forbidden');
12 12
             return;
13 13
         }
Please login to merge, or discard this patch.
routes.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 2
 
3
-Route::group(['middleware' => '\Bedard\Shop\Classes\ApiMiddleware'], function () {
3
+Route::group(['middleware' => '\Bedard\Shop\Classes\ApiMiddleware'], function() {
4 4
     Route::resource('api/bedard/shop/categories', 'Bedard\Shop\Api\Categories');
5 5
 });
Please login to merge, or discard this patch.
repositories/CategoryRepository.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -13,7 +13,7 @@
 block discarded – undo
13 13
      */
14 14
     public function fetch(array $params = [])
15 15
     {
16
-        if (! array_key_exists('select', $params) || ! is_array($params['select']) || empty($params['select'])) {
16
+        if (!array_key_exists('select', $params) || !is_array($params['select']) || empty($params['select'])) {
17 17
             throw new Exception('Categories fetch() must select at least one column.');
18 18
         }
19 19
 
Please login to merge, or discard this patch.