Completed
Push — master ( 25470c...b06ed8 )
by Jan
23s
created
app/Http/Controllers/Admin/FeedbackController.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -29,7 +29,7 @@  discard block
 block discarded – undo
29 29
         /**
30 30
          * Other tables
31 31
          */
32
-        $this->middleware('media.image.select:Image', ['only' => ['create','edit']]);
32
+        $this->middleware('media.image.select:Image', [ 'only' => [ 'create', 'edit' ] ]);
33 33
     }
34 34
    
35 35
     /**
@@ -50,7 +50,7 @@  discard block
 block discarded – undo
50 50
      * @param object $object
51 51
      * @param Request $request
52 52
      */
53
-    public function associateRelationships($object, Request $request){
53
+    public function associateRelationships($object, Request $request) {
54 54
         
55 55
         /**
56 56
          * Validate image ID, if failed set to default
@@ -69,7 +69,7 @@  discard block
 block discarded – undo
69 69
         /**
70 70
          * Validator OK - save it
71 71
          */
72
-        else{
72
+        else {
73 73
 
74 74
             $object->images()->associate($request->input('image_id'));
75 75
         }   
Please login to merge, or discard this patch.
app/Http/Controllers/Admin/ArticleCategoryController.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -30,7 +30,7 @@  discard block
 block discarded – undo
30 30
         /**
31 31
          * Other tables
32 32
          */
33
-        $this->middleware('media.image.select:Image', ['only' => ['create', 'edit']]);
33
+        $this->middleware('media.image.select:Image', [ 'only' => [ 'create', 'edit' ] ]);
34 34
     }
35 35
 
36 36
     /**
@@ -45,7 +45,7 @@  discard block
 block discarded – undo
45 45
         'meta_keywords' => 'max:255',
46 46
         'url' => 'required|max:255|unique:articlecategory,url',
47 47
         'text' => 'max:1000000',
48
-        'color' => 'required|max:255'];
48
+        'color' => 'required|max:255' ];
49 49
     
50 50
     /**
51 51
      * Associate relationships to other table
Please login to merge, or discard this patch.
app/Http/Controllers/Admin/AdvertController.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -30,12 +30,12 @@  discard block
 block discarded – undo
30 30
         /**
31 31
          * Add lookup tables
32 32
          */
33
-        $this->middleware('add.lookup.tables:AdvertLocation', ['only' => ['create', 'edit']]);
33
+        $this->middleware('add.lookup.tables:AdvertLocation', [ 'only' => [ 'create', 'edit' ] ]);
34 34
 
35 35
         /**
36 36
          * Other tables
37 37
          */
38
-        $this->middleware('media.image.select:Image', ['only' => ['create', 'edit']]);
38
+        $this->middleware('media.image.select:Image', [ 'only' => [ 'create', 'edit' ] ]);
39 39
     }
40 40
 
41 41
     /**
@@ -95,13 +95,13 @@  discard block
 block discarded – undo
95 95
         /**
96 96
          * Validate advert location ID, if failed set to default
97 97
          */
98
-        if($request->has('advertlocation_id')){
98
+        if ($request->has('advertlocation_id')) {
99 99
             
100
-            $validIDs = [];
100
+            $validIDs = [ ];
101 101
 
102 102
             foreach ($request->input('advertlocation_id') as $advertlocation_id) {
103 103
 
104
-                $arrayForValidator = ['advertlocation_id' =>  $advertlocation_id];
104
+                $arrayForValidator = [ 'advertlocation_id' =>  $advertlocation_id ];
105 105
 
106 106
                 $validator = Validator::make($arrayForValidator, [
107 107
                             'advertlocation_id' => 'required|integer|min:1|exists:advertlocation,id',
@@ -119,7 +119,7 @@  discard block
 block discarded – undo
119 119
                  */
120 120
                 else {
121 121
 
122
-                    $validIDs[] = $advertlocation_id;
122
+                    $validIDs[ ] = $advertlocation_id;
123 123
                 }
124 124
             }
125 125
             
Please login to merge, or discard this patch.
app/Http/Controllers/Auth/PasswordController.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -31,25 +31,25 @@
 block discarded – undo
31 31
         $this->middleware('guest');
32 32
     }
33 33
     
34
-    public function prePostEmail(Request $request){
34
+    public function prePostEmail(Request $request) {
35 35
         
36 36
         /**
37 37
          * Add recaptcha
38 38
          */
39
-        if(env('RECAPTCHA_ENABLED') == 1){
40
-            $this->validate($request, ['g-recaptcha-response' => 'required|recaptcha']);
39
+        if (env('RECAPTCHA_ENABLED') == 1) {
40
+            $this->validate($request, [ 'g-recaptcha-response' => 'required|recaptcha' ]);
41 41
         }
42 42
         
43 43
         return $this->postEmail($request);
44 44
     }
45 45
     
46
-    public function prePostReset(Request $request){
46
+    public function prePostReset(Request $request) {
47 47
         
48 48
         /**
49 49
          * Add recaptcha
50 50
          */
51
-        if(env('RECAPTCHA_ENABLED') == 1){
52
-            $this->validate($request, ['g-recaptcha-response' => 'required|recaptcha']);
51
+        if (env('RECAPTCHA_ENABLED') == 1) {
52
+            $this->validate($request, [ 'g-recaptcha-response' => 'required|recaptcha' ]);
53 53
         }
54 54
         
55 55
         return $this->postReset($request);
Please login to merge, or discard this patch.
app/Http/Controllers/Auth/AuthController.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -39,7 +39,7 @@  discard block
 block discarded – undo
39 39
     public function __construct()
40 40
     {
41 41
         $this->redirectAfterLogout = env('APP_ADMIN_URL', 'admin');
42
-        $this->middleware('guest', ['except' => 'getLogout']);
42
+        $this->middleware('guest', [ 'except' => 'getLogout' ]);
43 43
     }
44 44
 
45 45
     /**
@@ -66,9 +66,9 @@  discard block
 block discarded – undo
66 66
     protected function create(array $data)
67 67
     {
68 68
         return User::create([
69
-            'name' => $data['name'],
70
-            'email' => $data['email'],
71
-            'password' => bcrypt($data['password']),
69
+            'name' => $data[ 'name' ],
70
+            'email' => $data[ 'email' ],
71
+            'password' => bcrypt($data[ 'password' ]),
72 72
         ]);
73 73
     }
74 74
     
@@ -77,8 +77,8 @@  discard block
 block discarded – undo
77 77
         /**
78 78
          * Add recaptcha
79 79
          */
80
-        if(env('RECAPTCHA_ENABLED') == 1){
81
-            $this->validate($request, ['g-recaptcha-response' => 'required|recaptcha']);
80
+        if (env('RECAPTCHA_ENABLED') == 1) {
81
+            $this->validate($request, [ 'g-recaptcha-response' => 'required|recaptcha' ]);
82 82
         }
83 83
         
84 84
         return $this->postLogin($request);
Please login to merge, or discard this patch.
app/Http/Middleware/AddPublishedAt.php 2 patches
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -31,8 +31,7 @@
 block discarded – undo
31 31
         if($request->has('published')){
32 32
             
33 33
             $request->merge(['published_at' => \Carbon\Carbon::now()]);
34
-        }
35
-        else{
34
+        } else{
36 35
 
37 36
             $request->merge(['published_at' => NULL]);
38 37
         }
Please login to merge, or discard this patch.
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -29,13 +29,13 @@
 block discarded – undo
29 29
     public function handle(Request $request, Closure $next)
30 30
     {
31 31
  
32
-        if($request->has('published')){
32
+        if ($request->has('published')) {
33 33
             
34
-            $request->merge(['published_at' => \Carbon\Carbon::now()]);
34
+            $request->merge([ 'published_at' => \Carbon\Carbon::now() ]);
35 35
         }
36
-        else{
36
+        else {
37 37
 
38
-            $request->merge(['published_at' => NULL]);
38
+            $request->merge([ 'published_at' => NULL ]);
39 39
         }
40 40
         
41 41
         return $next($request);
Please login to merge, or discard this patch.
app/Http/Middleware/AddLookupTables.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -31,12 +31,12 @@
 block discarded – undo
31 31
          * Get lookup table data and insert into request
32 32
          */
33 33
         $intArgs = func_num_args();
34
-        for($a = 2; $a < $intArgs; $a++){
34
+        for ($a = 2; $a < $intArgs; $a++) {
35 35
             
36 36
             $model = func_get_arg($a);
37
-            $modelWithNamespace = 'App\\'.$model;
37
+            $modelWithNamespace = 'App\\' . $model;
38 38
             
39
-            $request->merge([$model => $modelWithNamespace::orderBy('name', 'asc')->get()]);
39
+            $request->merge([ $model => $modelWithNamespace::orderBy('name', 'asc')->get() ]);
40 40
         }
41 41
   
42 42
         return $next($request);     
Please login to merge, or discard this patch.
app/Http/routes.php 2 patches
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -153,8 +153,8 @@
 block discarded – undo
153 153
         ]]);
154 154
     
155 155
      /**
156
-     * Advertising
157
-     */
156
+      * Advertising
157
+      */
158 158
     Route::resource('advert', 'Admin\AdvertController', ['names' => [
159 159
         'index' => 'advert.index',
160 160
         'create' => 'advert.create',
Please login to merge, or discard this patch.
Spacing   +37 added lines, -37 removed lines patch added patch discarded remove patch
@@ -15,14 +15,14 @@  discard block
 block discarded – undo
15 15
 /**
16 16
  * Root
17 17
  */
18
-Route::get('/', ['as' => 'root', function () {
18
+Route::get('/', [ 'as' => 'root', function() {
19 19
         return view('welcome');
20
-}]);
20
+} ]);
21 21
 
22 22
 /**
23 23
  * Main index
24 24
  */
25
-Route::get('/home', function () {
25
+Route::get('/home', function() {
26 26
 
27 27
     return redirect()->route('admin.dashboard.index');
28 28
 });
@@ -30,7 +30,7 @@  discard block
 block discarded – undo
30 30
 /**
31 31
  * Admin
32 32
  */
33
-Route::group(['prefix' => env('APP_ADMIN_URL', 'admin'), 'as' => 'admin.', 'middleware' => ['web', 'auth']], function () {
33
+Route::group([ 'prefix' => env('APP_ADMIN_URL', 'admin'), 'as' => 'admin.', 'middleware' => [ 'web', 'auth' ] ], function() {
34 34
 
35 35
 
36 36
     /**
@@ -43,7 +43,7 @@  discard block
 block discarded – undo
43 43
     /**
44 44
      * Articles and categories
45 45
      */
46
-    Route::resource('page', 'Admin\PageController', ['names' => [
46
+    Route::resource('page', 'Admin\PageController', [ 'names' => [
47 47
         'index' => 'page.index',
48 48
         'create' => 'page.create',
49 49
         'store' => 'page.store',
@@ -51,8 +51,8 @@  discard block
 block discarded – undo
51 51
         'edit' => 'page.edit',
52 52
         'update' => 'page.update',
53 53
         'destroy' => 'page.destroy'
54
-        ]]);
55
-    Route::resource('pageCategory', 'Admin\PageCategoryController', ['names' => [
54
+        ] ]);
55
+    Route::resource('pageCategory', 'Admin\PageCategoryController', [ 'names' => [
56 56
         'index' => 'pageCategory.index',
57 57
         'create' => 'pageCategory.create',
58 58
         'store' => 'pageCategory.store',
@@ -60,12 +60,12 @@  discard block
 block discarded – undo
60 60
         'edit' => 'pageCategory.edit',
61 61
         'update' => 'pageCategory.update',
62 62
         'destroy' => 'pageCategory.destroy'
63
-        ]]);
63
+        ] ]);
64 64
     
65 65
     /**
66 66
      * Articles and categories
67 67
      */
68
-    Route::resource('article', 'Admin\ArticleController', ['names' => [
68
+    Route::resource('article', 'Admin\ArticleController', [ 'names' => [
69 69
         'index' => 'article.index',
70 70
         'create' => 'article.create',
71 71
         'store' => 'article.store',
@@ -73,8 +73,8 @@  discard block
 block discarded – undo
73 73
         'edit' => 'article.edit',
74 74
         'update' => 'article.update',
75 75
         'destroy' => 'article.destroy'
76
-        ]]);
77
-    Route::resource('articleCategory', 'Admin\ArticleCategoryController', ['names' => [
76
+        ] ]);
77
+    Route::resource('articleCategory', 'Admin\ArticleCategoryController', [ 'names' => [
78 78
         'index' => 'articleCategory.index',
79 79
         'create' => 'articleCategory.create',
80 80
         'store' => 'articleCategory.store',
@@ -82,12 +82,12 @@  discard block
 block discarded – undo
82 82
         'edit' => 'articleCategory.edit',
83 83
         'update' => 'articleCategory.update',
84 84
         'destroy' => 'articleCategory.destroy'
85
-        ]]);
85
+        ] ]);
86 86
     
87 87
     /**
88 88
      * Feedback
89 89
      */
90
-    Route::resource('feedback', 'Admin\FeedbackController', ['names' => [
90
+    Route::resource('feedback', 'Admin\FeedbackController', [ 'names' => [
91 91
         'index' => 'feedback.index',
92 92
         'create' => 'feedback.create',
93 93
         'store' => 'feedback.store',
@@ -95,12 +95,12 @@  discard block
 block discarded – undo
95 95
         'edit' => 'feedback.edit',
96 96
         'update' => 'feedback.update',
97 97
         'destroy' => 'feedback.destroy'
98
-        ]]);
98
+        ] ]);
99 99
     
100 100
     /**
101 101
      * Comment
102 102
      */
103
-    Route::resource('comment', 'Admin\CommentController', ['names' => [
103
+    Route::resource('comment', 'Admin\CommentController', [ 'names' => [
104 104
         'index' => 'comment.index',
105 105
         'create' => 'comment.create',
106 106
         'store' => 'comment.store',
@@ -108,7 +108,7 @@  discard block
 block discarded – undo
108 108
         'edit' => 'comment.edit',
109 109
         'update' => 'comment.update',
110 110
         'destroy' => 'comment.destroy'
111
-        ]]);
111
+        ] ]);
112 112
     Route::get('comment/{id}/approve', [
113 113
         'as' => 'comment.approve', 'uses' => 'Admin\CommentController@approve'
114 114
     ]);
@@ -119,7 +119,7 @@  discard block
 block discarded – undo
119 119
     /**
120 120
      * Sliders and slides
121 121
      */
122
-    Route::resource('slider', 'Admin\SliderController', ['names' => [
122
+    Route::resource('slider', 'Admin\SliderController', [ 'names' => [
123 123
         'index' => 'slider.index',
124 124
         'create' => 'slider.create',
125 125
         'store' => 'slider.store',
@@ -127,8 +127,8 @@  discard block
 block discarded – undo
127 127
         'edit' => 'slider.edit',
128 128
         'update' => 'slider.update',
129 129
         'destroy' => 'slider.destroy'
130
-        ]]);
131
-    Route::resource('slide', 'Admin\SlideController', ['names' => [
130
+        ] ]);
131
+    Route::resource('slide', 'Admin\SlideController', [ 'names' => [
132 132
         'index' => 'slide.index',
133 133
         'create' => 'slide.create',
134 134
         'store' => 'slide.store',
@@ -136,12 +136,12 @@  discard block
 block discarded – undo
136 136
         'edit' => 'slide.edit',
137 137
         'update' => 'slide.update',
138 138
         'destroy' => 'slide.destroy'
139
-        ]]);
139
+        ] ]);
140 140
     
141 141
     /**
142 142
      * Images and categories
143 143
      */
144
-    Route::resource('image', 'Admin\ImageController', ['names' => [
144
+    Route::resource('image', 'Admin\ImageController', [ 'names' => [
145 145
         'index' => 'image.index',
146 146
         'create' => 'image.create',
147 147
         'store' => 'image.store',
@@ -149,8 +149,8 @@  discard block
 block discarded – undo
149 149
         'edit' => 'image.edit',
150 150
         'update' => 'image.update',
151 151
         'destroy' => 'image.destroy'
152
-        ]]);
153
-    Route::resource('imageCategory', 'Admin\ImageCategoryController', ['names' => [
152
+        ] ]);
153
+    Route::resource('imageCategory', 'Admin\ImageCategoryController', [ 'names' => [
154 154
         'index' => 'imageCategory.index',
155 155
         'create' => 'imageCategory.create',
156 156
         'store' => 'imageCategory.store',
@@ -158,12 +158,12 @@  discard block
 block discarded – undo
158 158
         'edit' => 'imageCategory.edit',
159 159
         'update' => 'imageCategory.update',
160 160
         'destroy' => 'imageCategory.destroy'
161
-        ]]);
161
+        ] ]);
162 162
     
163 163
      /**
164 164
      * Advertising
165 165
      */
166
-    Route::resource('advert', 'Admin\AdvertController', ['names' => [
166
+    Route::resource('advert', 'Admin\AdvertController', [ 'names' => [
167 167
         'index' => 'advert.index',
168 168
         'create' => 'advert.create',
169 169
         'store' => 'advert.store',
@@ -171,8 +171,8 @@  discard block
 block discarded – undo
171 171
         'edit' => 'advert.edit',
172 172
         'update' => 'advert.update',
173 173
         'destroy' => 'advert.destroy'
174
-        ]]);
175
-    Route::resource('advertLocation', 'Admin\AdvertLocationController', ['names' => [
174
+        ] ]);
175
+    Route::resource('advertLocation', 'Admin\AdvertLocationController', [ 'names' => [
176 176
         'index' => 'advertLocation.index',
177 177
         'create' => 'advertLocation.create',
178 178
         'store' => 'advertLocation.store',
@@ -180,12 +180,12 @@  discard block
 block discarded – undo
180 180
         'edit' => 'advertLocation.edit',
181 181
         'update' => 'advertLocation.update',
182 182
         'destroy' => 'advertLocation.destroy'
183
-        ]]);
183
+        ] ]);
184 184
     
185 185
     /**
186 186
      * Products and categories
187 187
      */
188
-    Route::resource('productCategory', 'Admin\ProductCategoryController', ['names' => [
188
+    Route::resource('productCategory', 'Admin\ProductCategoryController', [ 'names' => [
189 189
         'index' => 'productCategory.index',
190 190
         'create' => 'productCategory.create',
191 191
         'store' => 'productCategory.store',
@@ -193,8 +193,8 @@  discard block
 block discarded – undo
193 193
         'edit' => 'productCategory.edit',
194 194
         'update' => 'productCategory.update',
195 195
         'destroy' => 'productCategory.destroy'
196
-        ]]);
197
-    Route::resource('product', 'Admin\ProductController', ['names' => [
196
+        ] ]);
197
+    Route::resource('product', 'Admin\ProductController', [ 'names' => [
198 198
         'index' => 'product.index',
199 199
         'create' => 'product.create',
200 200
         'store' => 'product.store',
@@ -202,13 +202,13 @@  discard block
 block discarded – undo
202 202
         'edit' => 'product.edit',
203 203
         'update' => 'product.update',
204 204
         'destroy' => 'product.destroy'
205
-        ]]);
205
+        ] ]);
206 206
     
207 207
     /**
208 208
      * Settings
209 209
      */
210 210
     Route::resource('settings', 'Admin\SettingsController', [
211
-        'except' => ['delete', 'show'],
211
+        'except' => [ 'delete', 'show' ],
212 212
         'names' => [
213 213
         'index' => 'settings.index',
214 214
         'create' => 'settings.create',
@@ -217,13 +217,13 @@  discard block
 block discarded – undo
217 217
         'edit' => 'settings.edit',
218 218
         'update' => 'settings.update',
219 219
         'destroy' => 'settings.destroy'
220
-        ]]);
220
+        ] ]);
221 221
     
222 222
     /**
223 223
      * Users
224 224
      */
225 225
     Route::resource('user', 'Admin\UserController', [
226
-        'except' => ['show'],
226
+        'except' => [ 'show' ],
227 227
         'names' => [
228 228
         'index' => 'user.index',
229 229
         'create' => 'user.create',
@@ -232,14 +232,14 @@  discard block
 block discarded – undo
232 232
         'edit' => 'user.edit',
233 233
         'update' => 'user.update',
234 234
         'destroy' => 'user.destroy'
235
-        ]]);
235
+        ] ]);
236 236
     
237 237
 });
238 238
 
239 239
 /**
240 240
  * Authentication
241 241
  */
242
-Route::group(['middleware' => 'web'], function () {
242
+Route::group([ 'middleware' => 'web' ], function() {
243 243
 
244 244
     Route::get('login', 'Auth\LoginController@showLoginForm')->name('login');
245 245
     Route::post('login', 'Auth\LoginController@login')->name('authPostLogin');
Please login to merge, or discard this patch.
app/Http/Helpers.php 1 patch
Spacing   +17 added lines, -17 removed lines patch added patch discarded remove patch
@@ -44,16 +44,16 @@  discard block
 block discarded – undo
44 44
                  */
45 45
                 if (is_numeric($fieldName) == TRUE) {
46 46
                     $fieldName = $fieldAttributes;
47
-                    $fieldAttributes = ['operator' => '=', 'prefix' => '', 'sufix' => ''];
47
+                    $fieldAttributes = [ 'operator' => '=', 'prefix' => '', 'sufix' => '' ];
48 48
                 }
49
-                if (isset($fieldAttributes['operator']) == FALSE) {
50
-                    $fieldAttributes['operator'] = '=';
49
+                if (isset($fieldAttributes[ 'operator' ]) == FALSE) {
50
+                    $fieldAttributes[ 'operator' ] = '=';
51 51
                 }
52
-                if (isset($fieldAttributes['prefix']) == FALSE) {
53
-                    $fieldAttributes['prefix'] = '';
52
+                if (isset($fieldAttributes[ 'prefix' ]) == FALSE) {
53
+                    $fieldAttributes[ 'prefix' ] = '';
54 54
                 }
55
-                if (isset($fieldAttributes['sufix']) == FALSE) {
56
-                    $fieldAttributes['sufix'] = '';
55
+                if (isset($fieldAttributes[ 'sufix' ]) == FALSE) {
56
+                    $fieldAttributes[ 'sufix' ] = '';
57 57
                 }
58 58
 
59 59
                 /**
@@ -61,13 +61,13 @@  discard block
 block discarded – undo
61 61
                  */
62 62
                 if ($first == TRUE) {
63 63
 
64
-                    $query->where($fieldName, $fieldAttributes['operator'], $fieldAttributes['prefix'] . $word
65
-                        . $fieldAttributes['sufix']);
64
+                    $query->where($fieldName, $fieldAttributes[ 'operator' ], $fieldAttributes[ 'prefix' ] . $word
65
+                        . $fieldAttributes[ 'sufix' ]);
66 66
 
67 67
                     $first = FALSE;
68 68
                 } else {
69
-                    $query->orWhere($fieldName, $fieldAttributes['operator'], $fieldAttributes['prefix'] . $word
70
-                        . $fieldAttributes['sufix']);
69
+                    $query->orWhere($fieldName, $fieldAttributes[ 'operator' ], $fieldAttributes[ 'prefix' ] . $word
70
+                        . $fieldAttributes[ 'sufix' ]);
71 71
                 }
72 72
             }
73 73
         }
@@ -104,7 +104,7 @@  discard block
 block discarded – undo
104 104
      * @param array $possibleParameters
105 105
      * @return boolean
106 106
      */
107
-    public static function resetSaveIndexParameters($module, $possibleParameters = ['search', 'orderbycolumn', 'orderbytype', 'relation'])
107
+    public static function resetSaveIndexParameters($module, $possibleParameters = [ 'search', 'orderbycolumn', 'orderbytype', 'relation' ])
108 108
     {
109 109
 
110 110
         /**
@@ -117,7 +117,7 @@  discard block
 block discarded – undo
117 117
          */
118 118
         foreach ($allParameters as $parameter => $value) {
119 119
 
120
-            $cacheKey = implode('.', [$module, Auth::user()->id, $parameter]);
120
+            $cacheKey = implode('.', [ $module, Auth::user()->id, $parameter ]);
121 121
 
122 122
             /**
123 123
              * Reset
@@ -125,7 +125,7 @@  discard block
 block discarded – undo
125 125
             if (empty($value) == TRUE) {
126 126
 
127 127
                 Cache::forget($cacheKey);
128
-                unset($allParameters[$parameter]);
128
+                unset($allParameters[ $parameter ]);
129 129
             } /**
130 130
              * Save
131 131
              */ else {
@@ -139,9 +139,9 @@  discard block
 block discarded – undo
139 139
          */
140 140
         foreach ($possibleParameters as $parameter => $value) {
141 141
 
142
-            $cacheKey = implode('.', [$module, Auth::user()->id, $value]);
142
+            $cacheKey = implode('.', [ $module, Auth::user()->id, $value ]);
143 143
 
144
-            $allParameters[$value] = Cache::get($cacheKey);
144
+            $allParameters[ $value ] = Cache::get($cacheKey);
145 145
         }
146 146
 
147 147
         /**
@@ -249,7 +249,7 @@  discard block
 block discarded – undo
249 249
 
250 250
             if (preg_match('/content: \$fa-var-(.*)\;/', $row, $matches) == TRUE) {
251 251
 
252
-                $icons[] = "fa-" . $matches[1];
252
+                $icons[ ] = "fa-" . $matches[ 1 ];
253 253
             }
254 254
 
255 255
         }
Please login to merge, or discard this patch.