Passed
Branch master (d49f3b)
by Ferry
08:59
created
src/views/components/action/button_icon_text.blade.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -13,7 +13,7 @@
 block discarded – undo
13 13
 @endif
14 14
 
15 15
 @if(CRUDBooster::canDelete() && $button_delete)
16
-<?php $url = CRUDBooster::mainpath("delete/".$row->$pk);?>
16
+<?php $url = CRUDBooster::mainpath("delete/".$row->$pk); ?>
17 17
 <a class='btn btn-xs btn-warning btn-delete' title='{{cbTrans("action_delete_data")}}' href='javascript:;'
18 18
    onclick='{{CRUDBooster::deleteConfirm($url)}}'>
19 19
     {!! CB::icon('trash') !!}
Please login to merge, or discard this patch.
src/views/components/action/default.blade.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -13,7 +13,7 @@
 block discarded – undo
13 13
 @endif
14 14
 
15 15
 @if(CRUDBooster::canDelete() && $button_delete)
16
-    <?php $url = CRUDBooster::mainpath("delete/".$row->$pk);?>
16
+    <?php $url = CRUDBooster::mainpath("delete/".$row->$pk); ?>
17 17
     <a class='btn btn-xs btn-warning btn-delete' title='{{cbTrans("action_delete_data")}}' href='javascript:;'
18 18
        onclick='{{CRUDBooster::deleteConfirm($url)}}'>
19 19
         {!! CB::icon('trash') !!}
Please login to merge, or discard this patch.
src/views/components/action/dropDown.blade.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -53,7 +53,7 @@
 block discarded – undo
53 53
         @endif
54 54
 
55 55
         @if(CRUDBooster::canDelete() && $button_delete)
56
-            <?php $url = CRUDBooster::mainpath("delete/".$row->$pk);?>
56
+            <?php $url = CRUDBooster::mainpath("delete/".$row->$pk); ?>
57 57
             <li><a class='btn-delete' title='{{cbTrans("action_delete_data")}}' href='javascript:;'
58 58
                    onclick='{{CRUDBooster::deleteConfirm($url)}}'>
59 59
                     {!! CB::icon('trash') !!}
Please login to merge, or discard this patch.
src/views/components/action/button_text.blade.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -9,7 +9,7 @@
 block discarded – undo
9 9
 @endif
10 10
 
11 11
 @if(CRUDBooster::canDelete() && $button_delete)
12
-    <?php $url = CRUDBooster::mainpath("delete/".$row->$pk);?>
12
+    <?php $url = CRUDBooster::mainpath("delete/".$row->$pk); ?>
13 13
     <a class='btn btn-xs btn-warning btn-delete'
14 14
        title='{{cbTrans("action_delete_data")}}' href='javascript:;'
15 15
        onclick='{{CRUDBooster::deleteConfirm($url)}}'>{{cbTrans("action_delete_data")}}</a>
Please login to merge, or discard this patch.
src/views/components/action/add.blade.php 1 patch
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -5,15 +5,15 @@  discard block
 block discarded – undo
5 5
     }
6 6
 
7 7
     $confirm_box = '';
8
-    if (isset($a['confirmation']) && ! empty($a['confirmation']) && $a['confirmation']) {
8
+    if (isset($a['confirmation']) && !empty($a['confirmation']) && $a['confirmation']) {
9 9
 
10
-        $a['confirmation_title'] = ! empty($a['confirmation_title']) ? $a['confirmation_title'] : cbTrans('confirmation_title');
11
-        $a['confirmation_text'] = ! empty($a['confirmation_text']) ? $a['confirmation_text'] : cbTrans('confirmation_text');
12
-        $a['confirmation_type'] = ! empty($a['confirmation_type']) ? $a['confirmation_type'] : 'warning';
10
+        $a['confirmation_title'] = !empty($a['confirmation_title']) ? $a['confirmation_title'] : cbTrans('confirmation_title');
11
+        $a['confirmation_text'] = !empty($a['confirmation_text']) ? $a['confirmation_text'] : cbTrans('confirmation_text');
12
+        $a['confirmation_type'] = !empty($a['confirmation_type']) ? $a['confirmation_type'] : 'warning';
13 13
         $a['confirmation_showCancelButton'] = empty($a['confirmation_showCancelButton']) ? 'true' : 'false';
14
-        $a['confirmation_confirmButtonColor'] = ! empty($a['confirmation_confirmButtonColor']) ? $a['confirmation_confirmButtonColor'] : '#DD6B55';
15
-        $a['confirmation_confirmButtonText'] = ! empty($a['confirmation_confirmButtonText']) ? $a['confirmation_confirmButtonText'] : cbTrans('confirmation_yes');;
16
-        $a['confirmation_cancelButtonText'] = ! empty($a['confirmation_cancelButtonText']) ? $a['confirmation_cancelButtonText'] : cbTrans('confirmation_no');;
14
+        $a['confirmation_confirmButtonColor'] = !empty($a['confirmation_confirmButtonColor']) ? $a['confirmation_confirmButtonColor'] : '#DD6B55';
15
+        $a['confirmation_confirmButtonText'] = !empty($a['confirmation_confirmButtonText']) ? $a['confirmation_confirmButtonText'] : cbTrans('confirmation_yes'); ;
16
+        $a['confirmation_cancelButtonText'] = !empty($a['confirmation_cancelButtonText']) ? $a['confirmation_cancelButtonText'] : cbTrans('confirmation_no'); ;
17 17
         $a['confirmation_closeOnConfirm'] = empty($a['confirmation_closeOnConfirm']) ? 'true' : 'false';
18 18
 
19 19
         $confirm_box = '
@@ -38,7 +38,7 @@  discard block
 block discarded – undo
38 38
 
39 39
 
40 40
     $url = $a['url'];
41
-    if (isset($confirmation) && ! empty($confirmation)) {
41
+    if (isset($confirmation) && !empty($confirmation)) {
42 42
         $url = "javascript:;";
43 43
     }
44 44
 
Please login to merge, or discard this patch.
src/views/default/_index/advanced_filter_modal.blade.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -9,7 +9,7 @@
 block discarded – undo
9 9
             <form method='get' action=''>
10 10
                 <div class="modal-body">
11 11
                     @foreach($columns as $key => $col)
12
-                    <?php if (isset($col['image']) || isset($col['download']) || $col['visible'] === FALSE) continue;?>
12
+                    <?php if (isset($col['image']) || isset($col['download']) || $col['visible'] === FALSE) continue; ?>
13 13
 
14 14
                     <div class='form-group'>
15 15
 
Please login to merge, or discard this patch.
Braces   +4 added lines, -1 removed lines patch added patch discarded remove patch
@@ -9,7 +9,10 @@
 block discarded – undo
9 9
             <form method='get' action=''>
10 10
                 <div class="modal-body">
11 11
                     @foreach($columns as $key => $col)
12
-                    <?php if (isset($col['image']) || isset($col['download']) || $col['visible'] === FALSE) continue;?>
12
+                    <?php if (isset($col['image']) || isset($col['download']) || $col['visible'] === FALSE) {
13
+    continue;
14
+}
15
+?>
13 16
 
14 17
                     <div class='form-group'>
15 18
 
Please login to merge, or discard this patch.
src/views/default/_index/table.blade.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -119,7 +119,7 @@
 block discarded – undo
119 119
         @foreach($html_contents['html'] as $i=>$hc)
120 120
 
121 121
             @if($table_row_color)
122
-                <?php $tr_color = NULL;?>
122
+                <?php $tr_color = NULL; ?>
123 123
                 @foreach($table_row_color as $trc)
124 124
                     <?php
125 125
                     $query = $trc['condition'];
Please login to merge, or discard this patch.
Braces   +6 added lines, -2 removed lines patch added patch discarded remove patch
@@ -60,7 +60,9 @@  discard block
 block discarded – undo
60 60
 
61 61
             <?php
62 62
             foreach ($columns as $col) {
63
-                if ($col['visible'] === FALSE) continue;
63
+                if ($col['visible'] === FALSE) {
64
+                    continue;
65
+                }
64 66
 
65 67
                 $sort_column = Request::get('filter_column');
66 68
                 $colname = $col['label'];
@@ -159,7 +161,9 @@  discard block
 block discarded – undo
159 161
 
160 162
             <?php
161 163
             foreach ($columns as $col) {
162
-                if ($col['visible'] === FALSE) continue;
164
+                if ($col['visible'] === FALSE) {
165
+                    continue;
166
+                }
163 167
                 $colname = $col['label'];
164 168
                 $width = ($col['width']) ?: "auto";
165 169
                 echo "<th width='$width'>$colname</th>";
Please login to merge, or discard this patch.
src/views/default/type_components/select_dataenum/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
 
3 3
 <?php
4 4
 $options = [];
Please login to merge, or discard this patch.
src/views/default/type_components/checkbox_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
-if(@$formInput['options']['query']){
2
+if (@$formInput['options']['query']) {
3 3
     $field_label = $formInput['options']['field_label'];
4 4
     $field_value = $formInput['options']['field_value'];
5 5
 
Please login to merge, or discard this patch.