Passed
Push — master ( f1aad3...85aeb8 )
by Ferry
05:16 queued 02:22
created
src/views/api_documentation.blade.php 2 patches
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -83,16 +83,16 @@  discard block
 block discarded – undo
83 83
                 </tr>
84 84
                 </thead>
85 85
                 <tbody>
86
-                <?php $no = 0;?>
86
+                <?php $no = 0; ?>
87 87
                 @foreach($apis as $api)
88 88
                     <?php
89 89
                     $parameters = ($api->parameters) ? unserialize($api->parameters) : array();
90 90
                     $responses = ($api->responses) ? unserialize($api->responses) : array();
91 91
                     ?>
92 92
                     <tr>
93
-                        <td><?= ++$no;?></td>
93
+                        <td><?= ++$no; ?></td>
94 94
                         <td>
95
-                            <a href='javascript:void(0)' title='API {{$ac->nama}}' style='color:#009fe3' class='link_name_api'><?=$api->nama;?></a> &nbsp;
95
+                            <a href='javascript:void(0)' title='API {{$ac->nama}}' style='color:#009fe3' class='link_name_api'><?=$api->nama; ?></a> &nbsp;
96 96
                             <sup>
97 97
                                 <a title='Delete this API' onclick="deleteApi({{$api->id}})" href="javascript:void(0)"><i class='fa fa-trash'></i></a>
98 98
                                 &nbsp; <a title='Edit This API' href="{{url(config('crudbooster.ADMIN_PATH').'/api_generator/edit-api').'/'.$api->id}}"><i
@@ -124,12 +124,12 @@  discard block
 block discarded – undo
124 124
                                                 </tr>
125 125
                                                 </thead>
126 126
                                                 <tbody>
127
-                                                <?php $i = 0;?>
127
+                                                <?php $i = 0; ?>
128 128
                                                 @foreach($parameters as $param)
129 129
                                                     @if($param['used'])
130 130
                                                         <?php
131 131
                                                         $param_exception = ['in', 'not_in', 'digits_between'];
132
-                                                        if ($param['config'] && substr($param['config'], 0, 1) != '*' && ! in_array($param['type'], $param_exception)) continue;?>
132
+                                                        if ($param['config'] && substr($param['config'], 0, 1) != '*' && !in_array($param['type'], $param_exception)) continue; ?>
133 133
                                                         <tr>
134 134
                                                             <td>{{++$i}}</td>
135 135
                                                             <td width="5%"><em>{{$param['type']}}</em></td>
@@ -168,7 +168,7 @@  discard block
 block discarded – undo
168 168
                                                 </tr>
169 169
                                                 </thead>
170 170
                                                 <tbody>
171
-                                                <?php $i = 1;?>
171
+                                                <?php $i = 1; ?>
172 172
                                                 <tr>
173 173
                                                     <td>{{$i++}}</td>
174 174
                                                     <td><em>integer</em></td>
Please login to merge, or discard this patch.
Braces   +4 added lines, -1 removed lines patch added patch discarded remove patch
@@ -117,7 +117,10 @@
 block discarded – undo
117 117
                                                     @if($param['used'])
118 118
                                                         <?php
119 119
                                                         $param_exception = ['in', 'not_in', 'digits_between'];
120
-                                                        if ($param['config'] && substr($param['config'], 0, 1) != '*' && ! in_array($param['type'], $param_exception)) continue;?>
120
+                                                        if ($param['config'] && substr($param['config'], 0, 1) != '*' && ! in_array($param['type'], $param_exception)) {
121
+                                                            continue;
122
+                                                        }
123
+                                                        ?>
121 124
                                                         <tr>
122 125
                                                             <td>{{++$i}}</td>
123 126
                                                             <td width="5%"><em>{{$param['type']}}</em></td>
Please login to merge, or discard this patch.
src/views/default/type_components/datamodal/component.blade.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -19,7 +19,7 @@
 block discarded – undo
19 19
             <input type="text" class="form-control input-label {{$required?"required":""}}" {{$required?"required":""}} value="{{$datamodal_value}}" readonly>
20 20
             <span class="input-group-btn">
21 21
         <button class="btn btn-primary" onclick="showModal{{$name}}()" type="button"><i class='fa fa-search'></i> {{trans('crudbooster.datamodal_browse_data')}}</button>
22
-                <?php if(strlen($form['datamodal_module_path']) > 1){ ?>
22
+                <?php if (strlen($form['datamodal_module_path']) > 1) { ?>
23 23
                 <a class="btn btn-info" href="{{CRUDBooster::adminPath()}}/{{$form['datamodal_module_path']}}" target="_blank"><i
24 24
                             class='fa fa-edit'></i> {{$form['label']}}</a>
25 25
                 <?php } ?>
Please login to merge, or discard this patch.
src/views/default/type_components/child/component.blade.php 1 patch
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -25,7 +25,7 @@  discard block
 block discarded – undo
25 25
                                 <div class="panel-heading"><i class="fa fa-pencil-square-o"></i> {{trans("crudbooster.text_form")}}</div>
26 26
                                 <div class="panel-body child-form-area">
27 27
                                     @foreach($form['columns'] as $col)
28
-                                        <?php $name_column = $name.$col['name'];?>
28
+                                        <?php $name_column = $name.$col['name']; ?>
29 29
                                         <div class='form-group'>
30 30
                                             @if($col['type']!='hidden')
31 31
                                                 <label class="control-label col-sm-2">{{$col['label']}}
@@ -42,7 +42,7 @@  discard block
 block discarded – undo
42 42
                                                     />
43 43
                                                 @elseif($col['type']=='radio')
44 44
                                                     <?php
45
-                                                    if($col['dataenum']):
45
+                                                    if ($col['dataenum']):
46 46
                                                     $dataenum = $col['dataenum'];
47 47
                                                     if (strpos($dataenum, ';') !== false) {
48 48
                                                         $dataenum = explode(";", $dataenum);
@@ -50,7 +50,7 @@  discard block
 block discarded – undo
50 50
                                                         $dataenum = [$dataenum];
51 51
                                                     }
52 52
                                                     array_walk($dataenum, 'trim');
53
-                                                    foreach($dataenum as $e=>$enum):
53
+                                                    foreach ($dataenum as $e=>$enum):
54 54
                                                     $enum = explode('|', $enum);
55 55
                                                     if (count($enum) == 2) {
56 56
                                                         $radio_value = $enum[0];
@@ -64,8 +64,8 @@  discard block
 block discarded – undo
64 64
                                                                class='{{ ($e==0 && $col['required'])?"required":""}} {{$name_column}}'
65 65
                                                                value="{{$radio_value}}"{{ ($e==0 && $col['required'])?" checked":""}}> {{$radio_label}}
66 66
                                                     </label>
67
-                                                    <?php endforeach;?>
68
-                                                    <?php endif;?>
67
+                                                    <?php endforeach; ?>
68
+                                                    <?php endif; ?>
69 69
                                                 @elseif($col['type']=='datamodal')
70 70
 
71 71
                                                     <div id='{{$name_column}}' class="input-group">
@@ -311,7 +311,7 @@  discard block
 block discarded – undo
311 311
                                                         if ($col['datatable']) {
312 312
                                                             $tableJoin = explode(',', $col['datatable'])[0];
313 313
                                                             $titleField = explode(',', $col['datatable'])[1];
314
-                                                            if (! $col['datatable_where']) {
314
+                                                            if (!$col['datatable_where']) {
315 315
                                                                 $data = CRUDBooster::get($tableJoin, NULL, "$titleField ASC");
316 316
                                                             } else {
317 317
                                                                 $data = CRUDBooster::get($tableJoin, $col['datatable_where'], "$titleField ASC");
@@ -546,7 +546,7 @@  discard block
 block discarded – undo
546 546
                                 }
547 547
 
548 548
                                 $data_child = $data_child->orderby($form['table'].'.id', 'desc')->get();
549
-                                foreach($data_child as $d):
549
+                                foreach ($data_child as $d):
550 550
                                 ?>
551 551
                                 <tr>
552 552
                                     @foreach($form['columns'] as $col)
@@ -600,7 +600,7 @@  discard block
 block discarded – undo
600 600
                                     </td>
601 601
                                 </tr>
602 602
 
603
-                                <?php endforeach;?>
603
+                                <?php endforeach; ?>
604 604
 
605 605
                                 @if(count($data_child)==0)
606 606
                                     <tr class="trNull">
Please login to merge, or discard this patch.
src/views/default/type_components/child/component_detail.blade.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -39,7 +39,7 @@  discard block
 block discarded – undo
39 39
                     }
40 40
 
41 41
                     $data_child = $data_child->orderby($form['table'].'.id', 'desc')->get();
42
-                    foreach($data_child as $d):
42
+                    foreach ($data_child as $d):
43 43
                     ?>
44 44
                     <tr>
45 45
                         @foreach($form['columns'] as $col)
@@ -88,7 +88,7 @@  discard block
 block discarded – undo
88 88
 
89 89
                     </tr>
90 90
 
91
-                    <?php endforeach;?>
91
+                    <?php endforeach; ?>
92 92
 
93 93
                     @if(count($data_child)==0)
94 94
                         <tr class="trNull">
Please login to merge, or discard this patch.
src/views/default/type_components/select2/component.blade.php 2 patches
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -164,9 +164,9 @@
 block discarded – undo
164 164
                     }
165 165
                     $result = $result->orderby($select_title, 'asc')->get();
166 166
 
167
-                    if($form['datatable_orig'] != ''){
167
+                    if ($form['datatable_orig'] != '') {
168 168
                         $params = explode("|", $form['datatable_orig']);
169
-                        if(!isset($params[2])) $params[2] = "id";
169
+                        if (!isset($params[2])) $params[2] = "id";
170 170
                         $value = DB::table($params[0])->where($params[2], $id)->first()->{$params[1]};
171 171
                         $value = explode(",", $value);
172 172
                     } else {
Please login to merge, or discard this patch.
Braces   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -166,7 +166,9 @@
 block discarded – undo
166 166
 
167 167
                     if($form['datatable_orig'] != ''){
168 168
                         $params = explode("|", $form['datatable_orig']);
169
-                        if(!isset($params[2])) $params[2] = "id";
169
+                        if(!isset($params[2])) {
170
+                            $params[2] = "id";
171
+                        }
170 172
                         $value = DB::table($params[0])->where($params[2], $id)->first()->{$params[1]};
171 173
                         $value = explode(",", $value);
172 174
                     } else {
Please login to merge, or discard this patch.
src/views/default/type_components/select2/component_detail.blade.php 2 patches
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 $datatable = $form['datatable'];
3
-if ($datatable && ! $form['relationship_table']) {
3
+if ($datatable && !$form['relationship_table']) {
4 4
     $datatable = explode(',', $datatable);
5 5
     $table = $datatable[0];
6 6
     $field = $datatable[1];
@@ -10,9 +10,9 @@  discard block
 block discarded – undo
10 10
 if ($datatable && $form['relationship_table']) {
11 11
     $datatable_table = explode(',', $datatable)[0];
12 12
     $datatable_field = explode(',', $datatable)[1];
13
-    if($form['datatable_orig'] != ''){
13
+    if ($form['datatable_orig'] != '') {
14 14
         $params = explode("|", $form['datatable_orig']);
15
-        if(!isset($params[2])) $params[2] = "id";
15
+        if (!isset($params[2])) $params[2] = "id";
16 16
         $values = explode(",", DB::table($params[0])->where($params[2], $id)->first()->{$params[1]});
17 17
         $tableData = DB::table($datatable_table)->whereIn("id", $values)->select($datatable_field)->pluck($datatable_field)->toArray();
18 18
     } else {
Please login to merge, or discard this patch.
Braces   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -12,7 +12,9 @@
 block discarded – undo
12 12
     $datatable_field = explode(',', $datatable)[1];
13 13
     if($form['datatable_orig'] != ''){
14 14
         $params = explode("|", $form['datatable_orig']);
15
-        if(!isset($params[2])) $params[2] = "id";
15
+        if(!isset($params[2])) {
16
+            $params[2] = "id";
17
+        }
16 18
         $values = explode(",", DB::table($params[0])->where($params[2], $id)->first()->{$params[1]});
17 19
         $tableData = DB::table($datatable_table)->whereIn("id", $values)->select($datatable_field)->pluck($datatable_field)->toArray();
18 20
     } else {
Please login to merge, or discard this patch.
src/views/default/type_components/select/component.blade.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -1,4 +1,4 @@  discard block
 block discarded – undo
1
-<?php $default = ! empty($form['default']) ? $form['default'] : trans('crudbooster.text_prefix_option')." ".$form['label'];?>
1
+<?php $default = !empty($form['default']) ? $form['default'] : trans('crudbooster.text_prefix_option')." ".$form['label']; ?>
2 2
 @if($form['parent_select'])
3 3
     <?php
4 4
     $parent_select = (count(explode(",", $form['parent_select'])) > 1) ? explode(",", $form['parent_select']) : $form['parent_select'];
@@ -69,7 +69,7 @@  discard block
 block discarded – undo
69 69
         <select class='form-control' id="{{$name}}" data-value='{{$value}}' {{$required}} {!!$placeholder!!} {{$readonly}} {{$disabled}} name="{{$name}}">
70 70
             <option value=''>{{$default}}</option>
71 71
             <?php
72
-            if (! $form['parent_select']) {
72
+            if (!$form['parent_select']) {
73 73
                 if (@$form['dataquery']):
74 74
 
75 75
                     $query = DB::select(DB::raw($form['dataquery']));
Please login to merge, or discard this patch.
src/views/default/type_components/googlemaps/component.blade.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -102,7 +102,7 @@
 block discarded – undo
102 102
             geocoder = new google.maps.Geocoder();
103 103
             var map = new google.maps.Map(document.getElementById('map-{{$name}}'), {
104 104
                 @if($row->{$form['latitude']} && $row->{$form['longitude']})
105
-                center: {lat: <?php echo $row->{$form['latitude']} ?: 0;?>, lng: <?php echo $row->{$form['longitude']} ?: 0;?> },
105
+                center: {lat: <?php echo $row->{$form['latitude']} ?: 0; ?>, lng: <?php echo $row->{$form['longitude']} ?: 0; ?> },
106 106
                 @endif
107 107
                 zoom: 12
108 108
             });
Please login to merge, or discard this patch.
src/views/default/type_components/googlemaps/component_detail.blade.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -41,13 +41,13 @@
 block discarded – undo
41 41
         function initMap{{$name}}() {
42 42
                     @if($row->{$form['latitude']} && $row->{$form['longitude']})
43 43
             var map = new google.maps.Map(document.getElementById('map-{{$name}}'), {
44
-                    center: {lat: <?php echo $row->{$form['latitude']} ?: 0;?>, lng: <?php echo $row->{$form['longitude']} ?: 0;?> },
44
+                    center: {lat: <?php echo $row->{$form['latitude']} ?: 0; ?>, lng: <?php echo $row->{$form['longitude']} ?: 0; ?> },
45 45
                     zoom: 12
46 46
                 });
47 47
             var infoWindow = new google.maps.InfoWindow();
48 48
 
49 49
             var marker = new google.maps.Marker({
50
-                position: {lat: <?php echo $row->{$form['latitude']} ?: 0;?>, lng: <?php echo $row->{$form['longitude']} ?: 0;?> },
50
+                position: {lat: <?php echo $row->{$form['latitude']} ?: 0; ?>, lng: <?php echo $row->{$form['longitude']} ?: 0; ?> },
51 51
                 map: map,
52 52
                 title: '{{$value}}'
53 53
             });
Please login to merge, or discard this patch.