Passed
Push — main ( c57f14...b113cb )
by Thierry
02:36
created
templates/views/bootstrap4/table/select/columns-edit.php 1 patch
Spacing   +11 added lines, -11 removed lines patch added patch discarded remove patch
@@ -14,20 +14,20 @@  discard block
 block discarded – undo
14 14
                 </button>
15 15
             </div>
16 16
         </div>
17
-<?php $i = 0; foreach($this->options['values'] as $value): ?>
17
+<?php $i = 0; foreach ($this->options['values'] as $value): ?>
18 18
         <div class="form-group row" id="<?php echo $this->formId ?>-item-<?php echo $i ?>">
19 19
             <div class="col-md-6">
20 20
                 <select name="columns[<?php echo $i ?>][fun]" class="form-control">
21
-                    <option value="" <?php if($value['fun'] == ''): ?>selected<?php endif ?>></option>
21
+                    <option value="" <?php if ($value['fun'] == ''): ?>selected<?php endif ?>></option>
22 22
                     <optgroup label="<?php echo $this->trans->lang('Functions') ?>">
23
-<?php foreach($this->options['functions'] as $function): ?>
24
-                        <option <?php if($value['fun'] == $function): ?>selected<?php
23
+<?php foreach ($this->options['functions'] as $function): ?>
24
+                        <option <?php if ($value['fun'] == $function): ?>selected<?php
25 25
                             endif ?>><?php echo $function ?></option>
26 26
 <?php endforeach ?>
27 27
                     </optgroup>
28 28
                     <optgroup label="<?php echo $this->trans->lang('Aggregation') ?>">
29
-<?php foreach($this->options['grouping'] as $grouping): ?>
30
-                        <option <?php if($value['fun'] == $grouping): ?>selected<?php
29
+<?php foreach ($this->options['grouping'] as $grouping): ?>
30
+                        <option <?php if ($value['fun'] == $grouping): ?>selected<?php
31 31
                             endif ?>><?php echo $grouping ?></option>
32 32
 <?php endforeach ?>
33 33
                     </optgroup>
@@ -35,8 +35,8 @@  discard block
 block discarded – undo
35 35
             </div>
36 36
             <div class="col-md-5">
37 37
                 <select name="columns[<?php echo $i ?>][col]" class="form-control">
38
-<?php foreach($this->options['columns'] as $column): ?>
39
-                    <option <?php if($value['col'] == $column): ?>selected<?php
38
+<?php foreach ($this->options['columns'] as $column): ?>
39
+                    <option <?php if ($value['col'] == $column): ?>selected<?php
40 40
                             endif ?>><?php echo $column ?></option>
41 41
 <?php endforeach ?>
42 42
                 </select>
@@ -55,12 +55,12 @@  discard block
 block discarded – undo
55 55
                 <select name="columns[__index__][fun]" class="form-control">
56 56
                     <option value="" selected></option>
57 57
                     <optgroup label="<?php echo $this->trans->lang('Functions') ?>">
58
-<?php foreach($this->options['functions'] as $function): ?>
58
+<?php foreach ($this->options['functions'] as $function): ?>
59 59
                         <option><?php echo $function ?></option>
60 60
 <?php endforeach ?>
61 61
                     </optgroup>
62 62
                     <optgroup label="<?php echo $this->trans->lang('Aggregation') ?>">
63
-<?php foreach($this->options['grouping'] as $grouping): ?>
63
+<?php foreach ($this->options['grouping'] as $grouping): ?>
64 64
                         <option><?php echo $grouping ?></option>
65 65
 <?php endforeach ?>
66 66
                     </optgroup>
@@ -68,7 +68,7 @@  discard block
 block discarded – undo
68 68
             </div>
69 69
             <div class="col-md-5">
70 70
                 <select name="columns[__index__][col]" class="form-control">
71
-<?php foreach($this->options['columns'] as $column): ?>
71
+<?php foreach ($this->options['columns'] as $column): ?>
72 72
                     <option><?php echo $column ?></option>
73 73
 <?php endforeach ?>
74 74
                 </select>
Please login to merge, or discard this patch.
templates/views/bootstrap4/table/select/sorting-show.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
         <div class="row row-no-gutters">
2
-<?php $i = 0; foreach($this->options['values'] as $value): ?>
2
+<?php $i = 0; foreach ($this->options['values'] as $value): ?>
3 3
             <div class="col-md-6">
4 4
                 <input class="form-control" name="order[<?php
5 5
                     echo $i ?>]" value="<?php echo $value['col'] ?>" />
Please login to merge, or discard this patch.
templates/views/bootstrap4/table/add.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -6,23 +6,23 @@  discard block
 block discarded – undo
6 6
             <div class="col-md-3 adminer-edit-table-name">
7 7
                 <input type="text" name="name" class="form-control" placeholder="Name" />
8 8
             </div>
9
-<?php if($this->engines): ?>
9
+<?php if ($this->engines): ?>
10 10
             <div class="col-md-2 adminer-edit-table-engine">
11 11
                 <select name="engine" class="form-control">
12 12
                     <option value="">(engine)</option>
13
-<?php foreach($this->engines as $group => $engine): ?>
13
+<?php foreach ($this->engines as $group => $engine): ?>
14 14
                     <option><?php echo $engine ?></option>
15 15
 <?php endforeach ?>
16 16
                 </select>
17 17
             </div>
18 18
 <?php endif ?>
19
-<?php if($this->collations): ?>
19
+<?php if ($this->collations): ?>
20 20
             <div class="col-md-3 adminer-edit-table-collation">
21 21
                 <select name="collation" class="form-control">
22 22
                     <option value="" selected>(collation)</option>
23
-<?php foreach($this->collations as $group => $collations): ?>
23
+<?php foreach ($this->collations as $group => $collations): ?>
24 24
                     <optgroup label="<?php echo $group ?>">
25
-<?php foreach($collations as $collation): ?>
25
+<?php foreach ($collations as $collation): ?>
26 26
                         <option><?php echo $collation ?></option>
27 27
 <?php endforeach ?>
28 28
                     </optgroup>
@@ -30,7 +30,7 @@  discard block
 block discarded – undo
30 30
                 </select>
31 31
             </div>
32 32
 <?php endif ?>
33
-<?php if($this->support['comment']): ?>
33
+<?php if ($this->support['comment']): ?>
34 34
             <div class="col-md-4 adminer-table-column-middle">
35 35
                 <input name="comment" class="form-control" value="" placeholder="<?php
36 36
                     echo $this->trans->lang('Comment') ?>" />
@@ -44,7 +44,7 @@  discard block
 block discarded – undo
44 44
             </label>
45 45
             <label class="col-md-7 adminer-table-column-middle"><?php echo $this->trans->lang('Options') ?></label>
46 46
             <div class="col-md-1 adminer-table-column-buttons-header">
47
-<?php if($this->support['columns']): ?>
47
+<?php if ($this->support['columns']): ?>
48 48
                 <button type="button" class="btn btn-primary" id="adminer-table-column-add">
49 49
                     <i class="bi bi-plus"></i>
50 50
                 </button>
Please login to merge, or discard this patch.
templates/views/bootstrap4/table/edit.php 2 patches
Braces   +5 added lines, -2 removed lines patch added patch discarded remove patch
@@ -26,7 +26,8 @@  discard block
 block discarded – undo
26 26
 <?php if(is_string($collations)): ?>
27 27
                     <option <?php if($this->table->collation === $collations): ?>selected<?php
28 28
                         endif ?>><?php echo $collations ?></option>
29
-<?php else: ?>
29
+<?php else {
30
+    : ?>
30 31
                     <optgroup label="<?php echo $group ?>">
31 32
 <?php foreach($collations as $collation): ?>
32 33
                         <option <?php if($this->table->collation === $collation): ?>selected<?php
@@ -61,7 +62,9 @@  discard block
 block discarded – undo
61 62
 <?php endif ?>
62 63
             </div>
63 64
         </div>
64
-<?php $index = 0; foreach($this->fields as $field): ?>
65
+<?php $index = 0;
66
+}
67
+foreach($this->fields as $field): ?>
65 68
 <?php echo $this->render('adminer::views::table/column', [
66 69
     'trans' => $this->trans,
67 70
     'class' => $this->formId . '-column',
Please login to merge, or discard this patch.
Spacing   +13 added lines, -13 removed lines patch added patch discarded remove patch
@@ -7,29 +7,29 @@  discard block
 block discarded – undo
7 7
                 <input type="text" name="name" class="form-control" value="<?php
8 8
                     echo $this->table->name ?>" placeholder="Name" />
9 9
             </div>
10
-<?php if($this->engines): ?>
10
+<?php if ($this->engines): ?>
11 11
             <div class="col-md-2 adminer-edit-table-engine">
12 12
                 <select name="engine" class="form-control">
13 13
                     <option value="">(engine)</option>
14
-<?php foreach($this->engines as $group => $engine): ?>
15
-                    <option <?php if(!strcasecmp($this->table->engine, $engine)): ?>selected<?php
14
+<?php foreach ($this->engines as $group => $engine): ?>
15
+                    <option <?php if (!strcasecmp($this->table->engine, $engine)): ?>selected<?php
16 16
                         endif ?>><?php echo $engine ?></option>
17 17
 <?php endforeach ?>
18 18
                 </select>
19 19
             </div>
20 20
 <?php endif ?>
21
-<?php if($this->collations): ?>
21
+<?php if ($this->collations): ?>
22 22
             <div class="col-md-3 adminer-edit-table-collation">
23 23
                 <select name="collation" class="form-control">
24 24
                     <option value="" selected>(collation)</option>
25
-<?php foreach($this->collations as $group => $collations): ?>
26
-<?php if(is_string($collations)): ?>
27
-                    <option <?php if($this->table->collation === $collations): ?>selected<?php
25
+<?php foreach ($this->collations as $group => $collations): ?>
26
+<?php if (is_string($collations)): ?>
27
+                    <option <?php if ($this->table->collation === $collations): ?>selected<?php
28 28
                         endif ?>><?php echo $collations ?></option>
29 29
 <?php else: ?>
30 30
                     <optgroup label="<?php echo $group ?>">
31
-<?php foreach($collations as $collation): ?>
32
-                        <option <?php if($this->table->collation === $collation): ?>selected<?php
31
+<?php foreach ($collations as $collation): ?>
32
+                        <option <?php if ($this->table->collation === $collation): ?>selected<?php
33 33
                             endif ?>><?php echo $collation ?></option>
34 34
 <?php endforeach ?>
35 35
                     </optgroup>
@@ -38,7 +38,7 @@  discard block
 block discarded – undo
38 38
                 </select>
39 39
             </div>
40 40
 <?php endif ?>
41
-<?php if($this->support['comment']): ?>
41
+<?php if ($this->support['comment']): ?>
42 42
             <div class="col-md-4 adminer-table-column-middle">
43 43
                 <input name="comment" class="form-control" value="<?php
44 44
                     echo $this->table->comment ?>" placeholder="<?php
@@ -50,18 +50,18 @@  discard block
 block discarded – undo
50 50
             <label class="col-md-3 adminer-table-column-left"><?php echo $this->trans->lang('Column') ?></label>
51 51
             <label class="col-md-1 adminer-table-column-null-header" for="autoIncrementCol">
52 52
                 <input type="radio" name="autoIncrementCol" value="0" <?php
53
-                    if(!$this->options['hasAutoIncrement']): ?>checked <?php endif ?>/>AI-P
53
+                    if (!$this->options['hasAutoIncrement']): ?>checked <?php endif ?>/>AI-P
54 54
             </label>
55 55
             <label class="col-md-7 adminer-table-column-middle"><?php echo $this->trans->lang('Options') ?></label>
56 56
             <div class="col-md-1 adminer-table-column-buttons-header">
57
-<?php if($this->support['columns']): ?>
57
+<?php if ($this->support['columns']): ?>
58 58
                 <button type="button" class="btn btn-primary" id="adminer-table-column-add">
59 59
                     <i class="bi bi-plus"></i>
60 60
                 </button>
61 61
 <?php endif ?>
62 62
             </div>
63 63
         </div>
64
-<?php $index = 0; foreach($this->fields as $field): ?>
64
+<?php $index = 0; foreach ($this->fields as $field): ?>
65 65
 <?php echo $this->render('adminer::views::table/column', [
66 66
     'trans' => $this->trans,
67 67
     'class' => $this->formId . '-column',
Please login to merge, or discard this patch.
templates/views/bootstrap4/main/actions.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@
 block discarded – undo
1
-<?php if(isset($this->mainActions)): ?>
1
+<?php if (isset($this->mainActions)): ?>
2 2
 <div class="btn-group" role="group" style="padding:10px;">
3
-<?php foreach($this->mainActions as $id => $label): ?>
3
+<?php foreach ($this->mainActions as $id => $label): ?>
4 4
     <button type="button" class="btn btn-outline-secondary" id="adminer-main-action-<?php echo $id ?>"><?php echo $label ?></button>
5 5
 <?php endforeach ?>
6 6
 </div>
Please login to merge, or discard this patch.
templates/views/bootstrap4/main/content.php 1 patch
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -1,28 +1,28 @@  discard block
 block discarded – undo
1 1
             <div class="table-responsive">
2 2
                 <table class="table table-bordered">
3
-<?php if(is_array($this->headers)): ?>
3
+<?php if (is_array($this->headers)): ?>
4 4
                     <thead>
5 5
                         <tr>
6
-<?php if(isset($this->checkbox)): ?>
6
+<?php if (isset($this->checkbox)): ?>
7 7
                             <th class="adminer-table-checkbox"><input id="adminer-table-<?php
8 8
                                 echo $this->checkbox ?>-all" type="checkbox" /></th>
9 9
 <?php endif ?>
10
-<?php foreach($this->headers as $header): ?>
10
+<?php foreach ($this->headers as $header): ?>
11 11
                             <th><?php echo $header ?></th>
12 12
 <?php endforeach ?>
13 13
                         </tr>
14 14
                     </thead>
15 15
 <?php endif ?>
16 16
                     <tbody>
17
-<?php foreach($this->details as $details): ?>
17
+<?php foreach ($this->details as $details): ?>
18 18
                         <tr>
19
-<?php if(isset($this->checkbox)): ?>
19
+<?php if (isset($this->checkbox)): ?>
20 20
                             <td><input type="checkbox" class="adminer-table-<?php echo
21 21
                                 $this->checkbox ?>" name="<?php echo $this->checkbox ?>[]" /></td>
22 22
 <?php endif ?>
23
-<?php foreach($details as $detail): ?>
24
-<?php if(is_array($detail)): ?>
25
-                            <td<?php foreach($detail['props'] as $name => $value): ?> <?php
23
+<?php foreach ($details as $detail): ?>
24
+<?php if (is_array($detail)): ?>
25
+                            <td<?php foreach ($detail['props'] as $name => $value): ?> <?php
26 26
                                 echo $name ?>="<?php echo $value ?>"<?php
27 27
                                 endforeach ?>><?php echo $detail['label'] ?></td>
28 28
 <?php else: ?>
@@ -34,7 +34,7 @@  discard block
 block discarded – undo
34 34
                     </tbody>
35 35
                 </table>
36 36
             </div>
37
-<?php if(isset($this->checkbox)): ?>
37
+<?php if (isset($this->checkbox)): ?>
38 38
             <div class="card">
39 39
                 <div class="card-body">
40 40
                     Selected (<span id="adminer-table-<?php echo $this->checkbox ?>-count">0</span>)
Please login to merge, or discard this patch.
templates/views/bootstrap4/main/breadcrumbs.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
 <nav aria-label="breadcrumb">
2 2
     <ol class="breadcrumb">
3
-<?php foreach($this->breadcrumbs as $breadcrumb): ?>
3
+<?php foreach ($this->breadcrumbs as $breadcrumb): ?>
4 4
         <li class="breadcrumb-item"><?php echo $breadcrumb ?></li>
5 5
 <?php endforeach ?>
6 6
     </ol>
Please login to merge, or discard this patch.
templates/views/bootstrap4/main/user.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
                         <div class="col-md-2 checkbox">
27 27
                             <label for="hashed">
28 28
                                 <input type="checkbox" name="hashed"<?php
29
-                                    if($this->user['hashed']['value']): ?> checked="checked"<?php
29
+                                    if ($this->user['hashed']['value']): ?> checked="checked"<?php
30 30
                                     endif ?>><?php echo $this->user['hashed']['label'] ?>
31 31
                             </label>
32 32
                         </div>
Please login to merge, or discard this patch.
templates/views/bootstrap4/main/db-table.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -10,16 +10,16 @@
 block discarded – undo
10 10
             <div class="row">
11 11
                 <div class="col-md-12">
12 12
                     <ul class="nav nav-pills">
13
-<?php $first = true; foreach($this->tabs as $id => $tab): ?>
13
+<?php $first = true; foreach ($this->tabs as $id => $tab): ?>
14 14
                         <li class="nav-item" role="presentation"><a class="nav-link<?php
15
-                            if($first): ?> active<?php $first = false; endif ?>" data-toggle="tab" role="tab" href="#tab-content-<?php
15
+                            if ($first): ?> active<?php $first = false; endif ?>" data-toggle="tab" role="tab" href="#tab-content-<?php
16 16
                             echo $id ?>"><?php echo $tab ?></a></li>
17 17
 <?php endforeach ?>
18 18
                     </ul>
19 19
                     <div class="tab-content">
20
-<?php $first = true; foreach($this->tabs as $id => $tab): ?>
20
+<?php $first = true; foreach ($this->tabs as $id => $tab): ?>
21 21
                         <div id="tab-content-<?php echo $id ?>" class="tab-pane fade<?php
22
-                            if($first): ?> show active<?php $first = false; endif ?>" style="margin-top:10px;">
22
+                            if ($first): ?> show active<?php $first = false; endif ?>" style="margin-top:10px;">
23 23
                         </div>
24 24
 <?php endforeach ?>
25 25
                     </div>
Please login to merge, or discard this patch.