Passed
Pull Request — master (#1092)
by Iman
07:45 queued 01:54
created
src/views/default/type_components/child/partials/dataenum.blade.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -8,7 +8,7 @@
 block discarded – undo
8 8
 array_walk($dataEnum, 'trim');
9 9
 
10 10
 $radios = [];
11
-foreach ($dataEnum as $e=>$enum){
11
+foreach ($dataEnum as $e=>$enum) {
12 12
     $enum = explode('|', $enum);
13 13
     if (count($enum) == 1) {
14 14
         $enum[1] = $enum[0];
Please login to merge, or discard this patch.
src/views/default/type_components/child/partials/select.blade.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -2,7 +2,7 @@  discard block
 block discarded – undo
2 2
 if ($col['datatable']) {
3 3
     $tableJoin = explode(',', $col['datatable'])[0];
4 4
     $titleField = explode(',', $col['datatable'])[1];
5
-    if (! $col['datatable_where']) {
5
+    if (!$col['datatable_where']) {
6 6
         $data = CRUDBooster::get($tableJoin, NULL, "$titleField ASC");
7 7
     } else {
8 8
         $data = CRUDBooster::get($tableJoin, $col['datatable_where'], "$titleField ASC");
@@ -13,7 +13,7 @@  discard block
 block discarded – undo
13 13
     }
14 14
 } else {
15 15
     $data = $col['dataenum'];
16
-    $data = (is_array($data))?$data:explode(";",$data);
16
+    $data = (is_array($data)) ? $data : explode(";", $data);
17 17
     $options = [];
18 18
     foreach ($data as $i => $d) {
19 19
         $enum = explode('|', $d);
Please login to merge, or discard this patch.
src/views/default/type_components/child/component.blade.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -26,7 +26,7 @@
 block discarded – undo
26 26
                                     <i class="fa fa-pencil-square-o"></i> {{cbTrans("text_form")}}</div>
27 27
                                 <div class="panel-body child-form-area">
28 28
                                     @foreach($formInput['columns'] as $col)
29
-                                        <?php $name_column = $name.$col['name'];?>
29
+                                        <?php $name_column = $name.$col['name']; ?>
30 30
                                         <div class='form-group'>
31 31
                                             @if($col['type']!='hidden')
32 32
                                                 <label class="control-label col-sm-2">{{$col['label']}}
Please login to merge, or discard this patch.
views/default/type_components/select_dataquery/partials/select.blade.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@
 block discarded – undo
1 1
 <?php
2 2
 $options = [];
3
-if (! $formInput['options']['parent_select'] && @$formInput['options']['query']):
3
+if (!$formInput['options']['parent_select'] && @$formInput['options']['query']):
4 4
     foreach (DB::select(DB::raw($formInput['options']['query'])) as $index => $d) {
5 5
         $options[$i]['select'] = ($value == $d->{$formInput['options']['field_value']}) ? "selected" : "";
6 6
         if ($formInput['options']['format']) {
Please login to merge, or discard this patch.
src/views/default/type_components/select_dataquery/component.blade.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
-$default = ! empty($formInput['placeholder']) ? $formInput['placeholder'] : cbTrans('text_prefix_option')." ".$label;
2
+$default = !empty($formInput['placeholder']) ? $formInput['placeholder'] : cbTrans('text_prefix_option')." ".$label;
3 3
 $query = str_random(5);
4 4
 \Cache::forget($query);
5 5
 \Cache::forever($query, $formInput['options']['query']);
Please login to merge, or discard this patch.
src/views/default/type_components/upload/hookInputAssignment.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
         sendAndTerminate($redir);
16 16
     }
17 17
 
18
-    if ($ro['options']['allowed_filetype'] && ! in_array($ext, $ro['options']['allowed_filetype'])) {
18
+    if ($ro['options']['allowed_filetype'] && !in_array($ext, $ro['options']['allowed_filetype'])) {
19 19
         $redir = redirect()->back()->with([
20 20
             'message_type' => 'warning',
21 21
             'message' => 'The filetype for '.$name.' is not allowed',
Please login to merge, or discard this patch.
default/type_components/select_datatable/partials/select_options.blade.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
-if (! $formInput['options']['parent_select']) {
2
+if (!$formInput['options']['parent_select']) {
3 3
 
4 4
     if (@$formInput['options']['table']):
5 5
 
Please login to merge, or discard this patch.
src/views/default/type_components/select_datatable/component.blade.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,4 +1,4 @@
 block discarded – undo
1
-<?php $default = ! empty($formInput['placeholder']) ? $formInput['placeholder'] : cbTrans('text_prefix_option')." ".$label;?>
1
+<?php $default = !empty($formInput['placeholder']) ? $formInput['placeholder'] : cbTrans('text_prefix_option')." ".$label; ?>
2 2
 @if($formInput['options']['parent_select'])
3 3
     <script type="text/javascript">
4 4
         $(function () {
Please login to merge, or discard this patch.
src/views/default/type_components/googlemaps/component_detail.blade.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -43,16 +43,16 @@
 block discarded – undo
43 43
                     @if($row->{$formInput['options']['latitude']} && $row->{$formInput['options']['longitude']})
44 44
             var map = new google.maps.Map(document.getElementById('map-{{$name}}'), {
45 45
                     center: {
46
-                        lat: <?php echo $row->{$formInput['options']['latitude']} ?: 0;?>,
47
-                        lng: <?php echo $row->{$formInput['options']['longitude']} ?: 0;?> },
46
+                        lat: <?php echo $row->{$formInput['options']['latitude']} ?: 0; ?>,
47
+                        lng: <?php echo $row->{$formInput['options']['longitude']} ?: 0; ?> },
48 48
                     zoom: 12
49 49
                 });
50 50
             var infoWindow = new google.maps.InfoWindow();
51 51
 
52 52
             var marker = new google.maps.Marker({
53 53
                 position: {
54
-                    lat: <?php echo $row->{$formInput['options']['latitude']} ?: 0;?>,
55
-                    lng: <?php echo $row->{$formInput['options']['longitude']} ?: 0;?> },
54
+                    lat: <?php echo $row->{$formInput['options']['latitude']} ?: 0; ?>,
55
+                    lng: <?php echo $row->{$formInput['options']['longitude']} ?: 0; ?> },
56 56
                 map: map,
57 57
                 title: '{{$value}}'
58 58
             });
Please login to merge, or discard this patch.