Completed
Pull Request — development (#453)
by Ashutosh
36:18 queued 22:25
created
app/Box.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -50,7 +50,7 @@
 block discarded – undo
50 50
      */
51 51
     public function startsWith($letter)
52 52
     {
53
-        return array_filter($this->items, function ($item) use ($letter) {
53
+        return array_filter($this->items, function($item) use ($letter) {
54 54
             return stripos($item, $letter) === 0;
55 55
         });
56 56
     }
Please login to merge, or discard this patch.
app/Http/Kernel.php 1 patch
Indentation   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -17,8 +17,8 @@  discard block
 block discarded – undo
17 17
         \Illuminate\Foundation\Http\Middleware\CheckForMaintenanceMode::class,
18 18
         \Illuminate\Foundation\Http\Middleware\ValidatePostSize::class,
19 19
         // \App\Http\Middleware\TrimStrings::class,
20
-          \Illuminate\Session\Middleware\StartSession::class,
21
-             \Illuminate\View\Middleware\ShareErrorsFromSession::class,
20
+            \Illuminate\Session\Middleware\StartSession::class,
21
+                \Illuminate\View\Middleware\ShareErrorsFromSession::class,
22 22
         // \Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull::class,
23 23
     ];
24 24
 
@@ -29,21 +29,21 @@  discard block
 block discarded – undo
29 29
      */
30 30
     protected $middlewareGroups = [
31 31
         'web' => [
32
-             \App\Http\Middleware\Install::class,
32
+                \App\Http\Middleware\Install::class,
33 33
             \App\Http\Middleware\EncryptCookies::class,
34 34
             \Illuminate\Cookie\Middleware\AddQueuedCookiesToResponse::class,
35 35
             // \Illuminate\Session\Middleware\StartSession::class,
36 36
             // \Illuminate\Session\Middleware\AuthenticateSession::class,
37 37
             // \Illuminate\View\Middleware\ShareErrorsFromSession::class,
38
-           // \App\Http\Middleware\VerifyCsrfToken::class,
38
+            // \App\Http\Middleware\VerifyCsrfToken::class,
39 39
             \Illuminate\Routing\Middleware\SubstituteBindings::class,
40 40
 
41
-             // \App\Http\Middleware\IsInstalled::class,
41
+                // \App\Http\Middleware\IsInstalled::class,
42 42
 
43 43
         ],
44
-         'admin'        => [\App\Http\Middleware\Admin::class],
45
-          'guest'       => [\App\Http\Middleware\RedirectIfAuthenticated::class],
46
-           'auth'       => [\Illuminate\Auth\Middleware\Authenticate::class],
44
+            'admin'        => [\App\Http\Middleware\Admin::class],
45
+            'guest'       => [\App\Http\Middleware\RedirectIfAuthenticated::class],
46
+            'auth'       => [\Illuminate\Auth\Middleware\Authenticate::class],
47 47
         'auth.basic'    => [\Illuminate\Auth\Middleware\AuthenticateWithBasicAuth::class],
48 48
 
49 49
         'api' => [
Please login to merge, or discard this patch.
app/Http/Controllers/Front/WidgetController.php 2 patches
Indentation   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -34,15 +34,15 @@
 block discarded – undo
34 34
                         ->addColumn('#', function ($model) {
35 35
                             return "<input type='checkbox' value=".$model->id.' name=select[] id=check>';
36 36
                         })
37
-                          ->addColumn('name', function ($model) {
38
-                              return ucfirst($model->name);
39
-                          })
37
+                            ->addColumn('name', function ($model) {
38
+                                return ucfirst($model->name);
39
+                            })
40 40
                             ->addColumn('type', function ($model) {
41 41
                                 return $model->type;
42 42
                             })
43
-                              ->addColumn('created_at', function ($model) {
44
-                                  return $model->created_at;
45
-                              })
43
+                                ->addColumn('created_at', function ($model) {
44
+                                    return $model->created_at;
45
+                                })
46 46
                         // ->showColumns('name', 'type', 'created_at')
47 47
                         ->addColumn('content', function ($model) {
48 48
                             return str_limit($model->content, 10, '...');
Please login to merge, or discard this patch.
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -31,23 +31,23 @@
 block discarded – undo
31 31
     public function getPages()
32 32
     {
33 33
         return \DataTables::of($this->widget->get())
34
-                        ->addColumn('#', function ($model) {
34
+                        ->addColumn('#', function($model) {
35 35
                             return "<input type='checkbox' value=".$model->id.' name=select[] id=check>';
36 36
                         })
37
-                          ->addColumn('name', function ($model) {
37
+                          ->addColumn('name', function($model) {
38 38
                               return ucfirst($model->name);
39 39
                           })
40
-                            ->addColumn('type', function ($model) {
40
+                            ->addColumn('type', function($model) {
41 41
                                 return $model->type;
42 42
                             })
43
-                              ->addColumn('created_at', function ($model) {
43
+                              ->addColumn('created_at', function($model) {
44 44
                                   return $model->created_at;
45 45
                               })
46 46
                         // ->showColumns('name', 'type', 'created_at')
47
-                        ->addColumn('content', function ($model) {
47
+                        ->addColumn('content', function($model) {
48 48
                             return str_limit($model->content, 10, '...');
49 49
                         })
50
-                        ->addColumn('action', function ($model) {
50
+                        ->addColumn('action', function($model) {
51 51
                             return '<a href='.url('widgets/'.$model->id.'/edit')."
52 52
                              class='btn btn-sm btn-primary'>Edit</a>";
53 53
                         })
Please login to merge, or discard this patch.
app/Http/Controllers/Order/OrderController.php 3 patches
Upper-Lower-Casing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -593,7 +593,7 @@
 block discarded – undo
593 593
                 return redirect()->back()->with('fails', 'Can not delete');
594 594
             }
595 595
 
596
-            return redirect()->back()->with('success', "Order $order->number has Deleted Successfully");
596
+            return redirect()->back()->with('success', "order $order->number has Deleted Successfully");
597 597
         } catch (\Exception $e) {
598 598
             Bugsnag::notifyException($e);
599 599
 
Please login to merge, or discard this patch.
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -139,8 +139,8 @@
 block discarded – undo
139 139
                             return $url;
140 140
                         })
141 141
 
142
-                         ->rawColumns(['checkbox', 'date', 'client', 'number',
143
-                          'price_override', 'order_status', 'ends_at', 'action', ])
142
+                            ->rawColumns(['checkbox', 'date', 'client', 'number',
143
+                            'price_override', 'order_status', 'ends_at', 'action', ])
144 144
                         ->make(true);
145 145
     }
146 146
 
Please login to merge, or discard this patch.
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -102,16 +102,16 @@  discard block
 block discarded – undo
102 102
 
103 103
         return\ DataTables::of($query->get())
104 104
 
105
-                        ->addColumn('checkbox', function ($model) {
105
+                        ->addColumn('checkbox', function($model) {
106 106
                             return "<input type='checkbox' class='order_checkbox' value=".
107 107
                             $model->id.' name=select[] id=check>';
108 108
                         })
109
-                        ->addColumn('date', function ($model) {
109
+                        ->addColumn('date', function($model) {
110 110
                             $date = $model->created_at;
111 111
 
112 112
                             return "<span style='display:none'>$model->id</span>".$date->format('l, F j, Y H:m A');
113 113
                         })
114
-                        ->addColumn('client', function ($model) {
114
+                        ->addColumn('client', function($model) {
115 115
                             $user = $this->user->where('id', $model->client)->first();
116 116
                             $first = $user->first_name;
117 117
                             $last = $user->last_name;
@@ -119,22 +119,22 @@  discard block
 block discarded – undo
119 119
 
120 120
                             return '<a href='.url('clients/'.$id).'>'.ucfirst($first).' '.ucfirst($last).'<a>';
121 121
                         })
122
-                        ->addColumn('number', function ($model) {
122
+                        ->addColumn('number', function($model) {
123 123
                             return ucfirst($model->number);
124 124
                         })
125
-                        ->addColumn('price_override', function ($model) {
125
+                        ->addColumn('price_override', function($model) {
126 126
                             return ucfirst($model->price_override);
127 127
                         })
128
-                        ->addColumn('order_status', function ($model) {
128
+                        ->addColumn('order_status', function($model) {
129 129
                             return ucfirst($model->order_status);
130 130
                         })
131 131
                         // ->showColumns('number', 'price_override', 'order_status')
132
-                        ->addColumn('ends_at', function ($model) {
132
+                        ->addColumn('ends_at', function($model) {
133 133
                             $end = $this->getEndDate($model);
134 134
 
135 135
                             return $end;
136 136
                         })
137
-                        ->addColumn('action', function ($model) {
137
+                        ->addColumn('action', function($model) {
138 138
                             $sub = $model->subscription()->first();
139 139
                             $status = $this->checkInvoiceStatusByOrderId($model->id);
140 140
                             $url = $this->getUrl($model, $status, $sub);
Please login to merge, or discard this patch.
app/Providers/RouteServiceProvider.php 1 patch
Indentation   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -52,8 +52,8 @@  discard block
 block discarded – undo
52 52
     protected function mapWebRoutes()
53 53
     {
54 54
         Route::middleware('web')
55
-             ->namespace($this->namespace)
56
-             ->group(base_path('routes/web.php'));
55
+                ->namespace($this->namespace)
56
+                ->group(base_path('routes/web.php'));
57 57
     }
58 58
 
59 59
     /**
@@ -66,8 +66,8 @@  discard block
 block discarded – undo
66 66
     protected function mapApiRoutes()
67 67
     {
68 68
         Route::prefix('api')
69
-             ->middleware('api')
70
-             ->namespace($this->namespace)
71
-             ->group(base_path('routes/api.php'));
69
+                ->middleware('api')
70
+                ->namespace($this->namespace)
71
+                ->group(base_path('routes/api.php'));
72 72
     }
73 73
 }
Please login to merge, or discard this patch.
app/Console/Kernel.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -14,7 +14,7 @@  discard block
 block discarded – undo
14 14
      */
15 15
     protected $commands = [
16 16
         //
17
-         'App\Console\Commands\Inspire',
17
+            'App\Console\Commands\Inspire',
18 18
         \App\Console\Commands\Install::class,
19 19
         'App\Console\Commands\ExpiryCron',
20 20
     ];
@@ -29,7 +29,7 @@  discard block
 block discarded – undo
29 29
     protected function schedule(Schedule $schedule)
30 30
     {
31 31
         $schedule->command('inspire')
32
-                 ->hourly();
32
+                    ->hourly();
33 33
 
34 34
         $schedule->command('expiry')->hourly();
35 35
     }
Please login to merge, or discard this patch.
app/User.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -74,7 +74,7 @@
 block discarded – undo
74 74
         return '';
75 75
 
76 76
         // return "Product  has been {$eventName}";
77
-         // \Auth::user()->activity;
77
+            // \Auth::user()->activity;
78 78
     }
79 79
 
80 80
     /**
Please login to merge, or discard this patch.
app/Model/Payment/Plan.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -31,7 +31,7 @@
 block discarded – undo
31 31
         return '';
32 32
 
33 33
         // return "Product  has been {$eventName}";
34
-         // \Auth::user()->activity;
34
+            // \Auth::user()->activity;
35 35
     }
36 36
 
37 37
     public function planPrice()
Please login to merge, or discard this patch.
app/Model/Payment/Currency.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -33,6 +33,6 @@
 block discarded – undo
33 33
         return '';
34 34
 
35 35
         // return "Product  has been {$eventName}";
36
-         // \Auth::user()->activity;
36
+            // \Auth::user()->activity;
37 37
     }
38 38
 }
Please login to merge, or discard this patch.