Passed
Branch master (d49f3b)
by Ferry
08:59
created
src/localization/en/crudbooster.php 2 patches
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -236,5 +236,5 @@
 block discarded – undo
236 236
     'please_complete_the_form' =>'Please complete the form !',
237 237
     'this_field_is_required'   =>'This field is required',
238 238
     'text_form'                => 'Form',
239
-     "your_file_extension_is_not_allowed "=>"Your file extension is not allowed !",
239
+        "your_file_extension_is_not_allowed "=>"Your file extension is not allowed !",
240 240
 ];
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -225,8 +225,8 @@
 block discarded – undo
225 225
     'datamodal_select'=>'Select',
226 226
     'datamodal_search_and_enter'=>'Search and enter...',
227 227
     'datamodal_enter_to_search'=>'Enter to search',
228
-    'datamodal_browse_data'=>'Browse Data' ,
229
-    'datamodal_browse_file'=>'Browse File' ,
228
+    'datamodal_browse_data'=>'Browse Data',
229
+    'datamodal_browse_file'=>'Browse File',
230 230
     
231 231
 
232 232
     //child 
Please login to merge, or discard this patch.
src/localization/ar/crudbooster.php 2 patches
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -207,7 +207,7 @@  discard block
 block discarded – undo
207 207
     'chose_an_image'               => 'اختر صورة ',
208 208
     'chose_an_file'                => 'اختر ملف ',
209 209
 
210
-     //datamodal 
210
+        //datamodal 
211 211
     'datamodal_select'=>'Select',
212 212
     'datamodal_search_and_enter'=>'Search and enter...',
213 213
     'datamodal_enter_to_search'=>'Enter to search',
@@ -222,5 +222,5 @@  discard block
 block discarded – undo
222 222
     'please_complete_the_form' =>'Please complete the form !',
223 223
     'this_field_is_required'   =>'This field is required',
224 224
     'text_form'                => 'Form',
225
-     "your_file_extension_is_not_allowed "=>"Your file extension is not allowed !",
225
+        "your_file_extension_is_not_allowed "=>"Your file extension is not allowed !",
226 226
 ];
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -211,8 +211,8 @@
 block discarded – undo
211 211
     'datamodal_select'=>'Select',
212 212
     'datamodal_search_and_enter'=>'Search and enter...',
213 213
     'datamodal_enter_to_search'=>'Enter to search',
214
-    'datamodal_browse_data'=>'Browse Data' ,
215
-    'datamodal_browse_file'=>'Browse File' ,
214
+    'datamodal_browse_data'=>'Browse Data',
215
+    'datamodal_browse_file'=>'Browse File',
216 216
     
217 217
 
218 218
     //child 
Please login to merge, or discard this patch.
src/CBCoreModule/Index/ValueCalculator.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -46,7 +46,7 @@
 block discarded – undo
46 46
     private function download($value)
47 47
     {
48 48
         $url = (strpos($value, 'http://')) ? $value : asset($value).'?download=1';
49
-        if (! $value) {
49
+        if (!$value) {
50 50
             return " - ";
51 51
         }
52 52
         return "<a class='btn btn-xs btn-primary' href='$url' target='_blank' title='Download File'><i class='fa fa-download'>".cbTrans('button_download_file')."</i></a>";
Please login to merge, or discard this patch.
src/CBCoreModule/Index/Order.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -12,7 +12,7 @@
 block discarded – undo
12 12
     function handle($result, $table, $index)
13 13
     {
14 14
         $orderby = $this->cb->orderby;
15
-        if (! $orderby) {
15
+        if (!$orderby) {
16 16
             $result->orderby($index->table.'.'.$index->cb->primary_key, 'desc');
17 17
             return;
18 18
         }
Please login to merge, or discard this patch.
src/CBCoreModule/Index/FilterIndexRows.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -12,7 +12,7 @@
 block discarded – undo
12 12
     function filterIndexRows($result, $filterColumn)
13 13
     {
14 14
         $filter_is_orderby = false;
15
-        $result->where(function ($query) use ($filterColumn) {
15
+        $result->where(function($query) use ($filterColumn) {
16 16
             foreach ($filterColumn as $key => $fc) {
17 17
 
18 18
                 $value = @$fc['value'];
Please login to merge, or discard this patch.
src/CBCoreModule/RelationHandler.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -18,7 +18,7 @@  discard block
 block discarded – undo
18 18
         //Looping Data Input Again After Insert
19 19
         foreach ($data as $row) {
20 20
             $name = $row['name'];
21
-            if (! $name) {
21
+            if (!$name) {
22 22
                 continue;
23 23
             }
24 24
 
@@ -54,7 +54,7 @@  discard block
 block discarded – undo
54 54
     {
55 55
         list($pivotTable, $foreignKey2, $foreignKey) = $this->deleteFromPivot($row, $id);
56 56
 
57
-        if (! $inputData) {
57
+        if (!$inputData) {
58 58
             return null;
59 59
         }
60 60
 
Please login to merge, or discard this patch.
src/CBCoreModule/Index.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -107,7 +107,7 @@  discard block
 block discarded – undo
107 107
             $data['parent_field'] = CB::getTableForeignKey(request('parent_table'), $this->table);
108 108
         }
109 109
 
110
-        if (! $data['parent_field']) {
110
+        if (!$data['parent_field']) {
111 111
             return $data;
112 112
         }
113 113
 
@@ -125,7 +125,7 @@  discard block
 block discarded – undo
125 125
      */
126 126
     private function _filterForParent($result)
127 127
     {
128
-        if (! request('parent_id')) {
128
+        if (!request('parent_id')) {
129 129
             return null;
130 130
         }
131 131
 
@@ -139,7 +139,7 @@  discard block
 block discarded – undo
139 139
      */
140 140
     private function _filterOutSoftDeleted($table_columns, $result)
141 141
     {
142
-        if (! in_array('deleted_at', $table_columns)) {
142
+        if (!in_array('deleted_at', $table_columns)) {
143 143
             return;
144 144
         }
145 145
         $result->where($this->table.'.deleted_at', '=', null);
@@ -198,9 +198,9 @@  discard block
 block discarded – undo
198 198
     private function _applyWhereAndQfilters($result, $columns_table, $table)
199 199
     {
200 200
         if (request('q')) {
201
-            $result->where(function ($query) use ($columns_table) {
201
+            $result->where(function($query) use ($columns_table) {
202 202
                 foreach ($columns_table as $col) {
203
-                    if (! $col['field_with']) {
203
+                    if (!$col['field_with']) {
204 204
                         continue;
205 205
                     }
206 206
                     $query->orwhere($col['field_with'], "like", "%".request("q")."%");
@@ -293,7 +293,7 @@  discard block
 block discarded – undo
293 293
         return CRUDBooster::adminPath($module['path']).'?parent_table='.$table_parent.'&parent_columns='
294 294
             .$module['parent_columns'].'&parent_columns_alias='
295 295
             .$module['parent_columns_alias'].'&parent_id=['
296
-            .(! isset($module['custom_parent_id']) ? "id" : $module['custom_parent_id'])
296
+            .(!isset($module['custom_parent_id']) ? "id" : $module['custom_parent_id'])
297 297
             .']&return_url='.urlencode(Request::fullUrl()).'&foreign_key='
298 298
             .$module['foreign_key'].'&label='.urlencode($module['label']);
299 299
     }
Please login to merge, or discard this patch.
src/CBCoreModule/FileUploader.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -9,7 +9,7 @@  discard block
 block discarded – undo
9 9
 {
10 10
     function uploadFile($name)
11 11
     {
12
-        if (! Request::hasFile($name)) {
12
+        if (!Request::hasFile($name)) {
13 13
             return null;
14 14
         }
15 15
         $file = Request::file($name);
@@ -32,7 +32,7 @@  discard block
 block discarded – undo
32 32
      */
33 33
     private function validateExtension($ext)
34 34
     {
35
-        if (! in_array($ext, explode(',', cbConfig('UPLOAD_TYPES')))) {
35
+        if (!in_array($ext, explode(',', cbConfig('UPLOAD_TYPES')))) {
36 36
             echo "The filetype is not allowed!";
37 37
             exit;
38 38
         }
Please login to merge, or discard this patch.
src/CBCoreModule/DataRemover.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -15,7 +15,7 @@
 block discarded – undo
15 15
      */
16 16
     public function __construct($ctrl)
17 17
     {
18
-        $this->ctrl =  $ctrl;
18
+        $this->ctrl = $ctrl;
19 19
     }
20 20
 
21 21
     /**
Please login to merge, or discard this patch.