@@ -8,7 +8,7 @@ |
||
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]; |
@@ -2,7 +2,7 @@ discard block |
||
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 |
||
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); |
@@ -26,7 +26,7 @@ |
||
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']}} |
@@ -1,6 +1,6 @@ |
||
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']) { |
@@ -1,5 +1,5 @@ |
||
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']); |
@@ -15,7 +15,7 @@ |
||
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', |
@@ -1,5 +1,5 @@ |
||
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 |
@@ -1,4 +1,4 @@ |
||
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 () { |
@@ -43,16 +43,16 @@ |
||
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 | }); |