Passed
Push — main ( 893379...c57f14 )
by Thierry
02:07
created
templates/views/bootstrap4/view/add.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
                         <label class="col-form-label" for="select">SQL query</label>
9 9
                         <textarea name="select" class="form-control" rows="10" spellcheck="false" wrap="on"></textarea>
10 10
                     </div>
11
-<?php if($this->materializedview): ?>
11
+<?php if ($this->materializedview): ?>
12 12
                     <div class="form-group">
13 13
                         <label class="col-form-label" for="materialized">Materialized</label>
14 14
                         <input type="checkbox" name="materialized" />
Please login to merge, or discard this patch.
templates/views/bootstrap4/view/edit.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -10,11 +10,11 @@
 block discarded – undo
10 10
                         <textarea name="select" class="form-control" rows="10" spellcheck="false" wrap="on"><?php
11 11
                             echo $this->view['select'] ?></textarea>
12 12
                     </div>
13
-<?php if($this->materializedview): ?>
13
+<?php if ($this->materializedview): ?>
14 14
                     <div class="form-group">
15 15
                         <label class="col-form-label" for="materialized">Materialized</label>
16 16
                         <input type="checkbox" name="materialized" <?php
17
-                            if($this->view['materialized']): ?>checked <?php endif ?>/>
17
+                            if ($this->view['materialized']): ?>checked <?php endif ?>/>
18 18
                     </div>
19 19
 <?php endif ?>
20 20
                 </form>
Please login to merge, or discard this patch.
templates/views/bootstrap4/sql/import.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -6,7 +6,7 @@  discard block
 block discarded – undo
6 6
             <div class="col-md-6">
7 7
                 <div class="form-group row">
8 8
                     <label class="col-md-4"><?php echo $this->labels['file_upload'] ?></label>
9
-<?php if(isset($this->contents['upload'])): ?>
9
+<?php if (isset($this->contents['upload'])): ?>
10 10
                     <div class="col-md-8">
11 11
                         <?php echo $this->contents['upload'] ?>
12 12
                     </div>
@@ -17,7 +17,7 @@  discard block
 block discarded – undo
17 17
 <?php endif ?>
18 18
                 </div>
19 19
                 <div class="form-group row">
20
-<?php if(isset($this->contents['upload'])): ?>
20
+<?php if (isset($this->contents['upload'])): ?>
21 21
                     <label for="sql_files" class="col-md-2">&nbsp;</label>
22 22
                     <div class="col-md-10">
23 23
                         <div class="input-group mb-3" id="<?php echo $this->sqlFilesDivId ?>">
@@ -40,7 +40,7 @@  discard block
 block discarded – undo
40 40
                     </div>
41 41
                 </div>
42 42
             </div>
43
-<?php if(isset($this->contents['path'])): ?>
43
+<?php if (isset($this->contents['path'])): ?>
44 44
             <div class="col-md-6">
45 45
                 <div class="form-group row">
46 46
                     <label class="col-md-4"><?php echo $this->labels['from_server'] ?></label>
Please login to merge, or discard this patch.
templates/views/bootstrap4/sql/export.php 1 patch
Spacing   +23 added lines, -23 removed lines patch added patch discarded remove patch
@@ -6,10 +6,10 @@  discard block
 block discarded – undo
6 6
                     <label for="output" class="col-md-3 col-form-label"><?php
7 7
                         echo $this->options['output']['label'] ?></label>
8 8
                     <div class="col-md-8">
9
-<?php foreach($this->options['output']['options'] as $value => $label): ?>
9
+<?php foreach ($this->options['output']['options'] as $value => $label): ?>
10 10
                         <label class="radio-inline">
11 11
                             <input type="radio" name="output" value="<?php echo $value ?>" <?php
12
-                                if($this->options['output']['value'] === $value): ?>checked <?php
12
+                                if ($this->options['output']['value'] === $value): ?>checked <?php
13 13
                                 endif ?>/> <?php echo $label ?>
14 14
                         </label>
15 15
 <?php endforeach ?>
@@ -19,48 +19,48 @@  discard block
 block discarded – undo
19 19
                     <label for="format" class="col-md-3 col-form-label"><?php
20 20
                         echo $this->options['format']['label'] ?></label>
21 21
                     <div class="col-md-8">
22
-<?php foreach($this->options['format']['options'] as $value => $label): ?>
22
+<?php foreach ($this->options['format']['options'] as $value => $label): ?>
23 23
                         <label class="radio-inline">
24 24
                             <input type="radio" name="format" value="<?php echo $value ?>" <?php
25
-                                if($this->options['format']['value'] === $value): ?>checked <?php
25
+                                if ($this->options['format']['value'] === $value): ?>checked <?php
26 26
                                 endif ?>/> <?php echo $label ?>
27 27
                         </label>
28 28
 <?php endforeach ?>
29 29
                     </div>
30 30
                 </div>
31
-<?php if(array_key_exists('db_style', $this->options)): ?>
31
+<?php if (array_key_exists('db_style', $this->options)): ?>
32 32
                 <div class="form-group row">
33 33
                     <label for="db_style" class="col-md-3 col-form-label"><?php
34 34
                         echo $this->options['db_style']['label'] ?></label>
35 35
                     <div class="col-md-8">
36 36
                         <select name="db_style" class="form-control">
37
-<?php foreach($this->options['db_style']['options'] as $label): ?>
37
+<?php foreach ($this->options['db_style']['options'] as $label): ?>
38 38
                             <option <?php
39
-                                if($this->options['db_style']['value'] == $label): ?>selected<?php
39
+                                if ($this->options['db_style']['value'] == $label): ?>selected<?php
40 40
                                 endif ?>> <?php echo $label ?></option>
41 41
 <?php endforeach ?>
42 42
                         </select>
43 43
                     </div>
44 44
                 </div>
45
-<?php if(array_key_exists('routines', $this->options) || array_key_exists('events', $this->options)): ?>
45
+<?php if (array_key_exists('routines', $this->options) || array_key_exists('events', $this->options)): ?>
46 46
                 <div class="form-group row">
47 47
                     <label class="col-md-3 col-form-label">&nbsp;</label>
48
-<?php if(array_key_exists('routines', $this->options)): ?>
48
+<?php if (array_key_exists('routines', $this->options)): ?>
49 49
                     <div class="col-md-4">
50 50
                         <div class="checkbox">
51 51
                             <label><input type="checkbox" name="routines" value="<?php
52 52
                                 echo $this->options['routines']['value'] ?>" <?php
53
-                                if($this->options['routines']['checked']): ?>checked <?php
53
+                                if ($this->options['routines']['checked']): ?>checked <?php
54 54
                                 endif ?>/> <?php echo $this->options['routines']['label'] ?></label>
55 55
                         </div>
56 56
                     </div>
57 57
 <?php endif ?>
58
-<?php if(array_key_exists('events', $this->options)): ?>
58
+<?php if (array_key_exists('events', $this->options)): ?>
59 59
                     <div class="col-md-4">
60 60
                         <div class="checkbox">
61 61
                             <label><input type="checkbox" name="events" value="<?php
62 62
                                 echo $this->options['events']['value'] ?>" <?php
63
-                                if($this->options['events']['checked']): ?>checked <?php
63
+                                if ($this->options['events']['checked']): ?>checked <?php
64 64
                                 endif ?>/> <?php echo $this->options['events']['label'] ?></label>
65 65
                         </div>
66 66
                     </div>
@@ -73,9 +73,9 @@  discard block
 block discarded – undo
73 73
                         echo $this->options['table_style']['label'] ?></label>
74 74
                     <div class="col-md-8">
75 75
                         <select name="table_style" class="form-control">
76
-<?php foreach($this->options['table_style']['options'] as $label): ?>
76
+<?php foreach ($this->options['table_style']['options'] as $label): ?>
77 77
                             <option <?php
78
-                                if($this->options['table_style']['value'] == $label): ?>selected<?php
78
+                                if ($this->options['table_style']['value'] == $label): ?>selected<?php
79 79
                                 endif ?>> <?php echo $label ?></option>
80 80
 <?php endforeach ?>
81 81
                         </select>
@@ -87,16 +87,16 @@  discard block
 block discarded – undo
87 87
                         <div class="checkbox">
88 88
                             <label><input type="checkbox" name="auto_increment" value="<?php
89 89
                                 echo $this->options['auto_increment']['value'] ?>" <?php
90
-                                if($this->options['auto_increment']['checked']): ?>checked <?php
90
+                                if ($this->options['auto_increment']['checked']): ?>checked <?php
91 91
                                 endif ?>/> <?php echo $this->options['auto_increment']['label'] ?></label>
92 92
                         </div>
93 93
                     </div>
94
-<?php if(array_key_exists('triggers', $this->options)): ?>
94
+<?php if (array_key_exists('triggers', $this->options)): ?>
95 95
                     <div class="col-md-4">
96 96
                         <div class="checkbox">
97 97
                             <label><input type="checkbox" name="triggers" value="<?php
98 98
                                 echo $this->options['triggers']['value'] ?>" <?php
99
-                                if($this->options['triggers']['checked']): ?>checked <?php
99
+                                if ($this->options['triggers']['checked']): ?>checked <?php
100 100
                                 endif ?>/> <?php echo $this->options['triggers']['label'] ?></label>
101 101
                         </div>
102 102
                     </div>
@@ -107,9 +107,9 @@  discard block
 block discarded – undo
107 107
                         echo $this->options['data_style']['label'] ?></label>
108 108
                     <div class="col-md-8">
109 109
                         <select name="data_style" class="form-control">
110
-<?php foreach($this->options['data_style']['options'] as $label): ?>
110
+<?php foreach ($this->options['data_style']['options'] as $label): ?>
111 111
                             <option <?php
112
-                                if($this->options['data_style']['value'] == $label): ?>selected<?php
112
+                                if ($this->options['data_style']['value'] == $label): ?>selected<?php
113 113
                                 endif ?>> <?php echo $label ?></option>
114 114
 <?php endforeach ?>
115 115
                         </select>
@@ -125,7 +125,7 @@  discard block
 block discarded – undo
125 125
             </div>
126 126
             <div class="col-md-4">
127 127
                 <div class="table-responsive">
128
-<?php if(isset($this->databases)): ?>
128
+<?php if (isset($this->databases)): ?>
129 129
                     <table class="table table-bordered">
130 130
                         <thead>
131 131
                             <tr>
@@ -142,7 +142,7 @@  discard block
 block discarded – undo
142 142
                             </tr>
143 143
                         </thead>
144 144
                         <tbody>
145
-<?php foreach($this->databases['details'] as $database): ?>
145
+<?php foreach ($this->databases['details'] as $database): ?>
146 146
                             <tr>
147 147
                                 <td>
148 148
                                     <input type="checkbox" name="database_list[]" class="<?php
@@ -160,7 +160,7 @@  discard block
 block discarded – undo
160 160
                         </tbody>
161 161
                     </table>
162 162
 <?php endif ?>
163
-<?php if(isset($this->tables)): ?>
163
+<?php if (isset($this->tables)): ?>
164 164
                     <table class="table table-bordered">
165 165
                         <thead>
166 166
                             <tr>
@@ -177,7 +177,7 @@  discard block
 block discarded – undo
177 177
                             </tr>
178 178
                         </thead>
179 179
                         <tbody>
180
-<?php foreach($this->tables['details'] as $table): ?>
180
+<?php foreach ($this->tables['details'] as $table): ?>
181 181
                             <tr>
182 182
                                 <td>
183 183
                                     <input type="checkbox" name="table_list[]" class="<?php
Please login to merge, or discard this patch.
templates/views/bootstrap4/sql/dump.sql.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -1,18 +1,18 @@
 block discarded – undo
1
-<?php if(is_array($this->headers)): ?>
1
+<?php if (is_array($this->headers)): ?>
2 2
 -- Adminer <?php echo $this->headers['version'], ' ',
3 3
                     $this->headers['driver'], ' ',
4 4
                     $this->headers['server'] ?> dump
5 5
 
6
-<?php if(($this->headers['sql'])): ?>
6
+<?php if (($this->headers['sql'])): ?>
7 7
 SET NAMES utf8;
8 8
 SET time_zone = '+00:00';
9 9
 SET foreign_key_checks = 0;
10
-<?php if(($this->headers['data_style'])): ?>
10
+<?php if (($this->headers['data_style'])): ?>
11 11
 SET sql_mode = 'NO_AUTO_VALUE_ON_ZERO';
12 12
 <?php endif ?>
13 13
 <?php endif ?>
14 14
 
15 15
 <?php endif ?>
16
-<?php foreach($this->queries as $query): ?>
16
+<?php foreach ($this->queries as $query): ?>
17 17
 <?php echo $query, "\n" ?>
18 18
 <?php endforeach ?>
Please login to merge, or discard this patch.
templates/views/bootstrap4/sql/results.php 1 patch
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -1,44 +1,44 @@
 block discarded – undo
1
-<?php foreach($this->results as $result): ?>
1
+<?php foreach ($this->results as $result): ?>
2 2
             <div class="row">
3
-<?php if(count($result['errors']) > 0): ?>
3
+<?php if (count($result['errors']) > 0): ?>
4 4
                 <div class="card border-danger w-100">
5 5
                     <div class="card-header border-danger">
6 6
                         <?php echo $result['query'] ?>
7 7
                     </div>
8 8
                     <div class="card-body text-danger" style="padding:5px 15px">
9
-<?php foreach($result['errors'] as $error): ?>
9
+<?php foreach ($result['errors'] as $error): ?>
10 10
                         <p style="margin:0"><?php echo $error ?></p>
11 11
 <?php endforeach ?>
12 12
                     </div>
13 13
                 </div>
14 14
 <?php endif ?>
15
-<?php if(count($result['messages']) > 0): ?>
15
+<?php if (count($result['messages']) > 0): ?>
16 16
                 <div class="card border-success w-100">
17 17
                     <div class="card-header border-success">
18 18
                         <?php echo $result['query'] ?>
19 19
                     </div>
20 20
                     <div class="card-body text-success" style="padding:5px 15px">
21
-<?php foreach($result['messages'] as $message): ?>
21
+<?php foreach ($result['messages'] as $message): ?>
22 22
                         <p style="margin:0"><?php echo $message ?></p>
23 23
 <?php endforeach ?>
24 24
                     </div>
25 25
                 </div>
26 26
 <?php endif ?>
27 27
 
28
-<?php if(($result['select'])): ?>
28
+<?php if (($result['select'])): ?>
29 29
                 <div class="table-responsive" style="padding-top:5px">
30 30
                     <table class="table table-bordered">
31 31
                         <thead>
32 32
                             <tr>
33
-<?php foreach($result['select']['headers'] as $header): ?>
33
+<?php foreach ($result['select']['headers'] as $header): ?>
34 34
                                 <th><?php echo $header ?></th>
35 35
 <?php endforeach ?>
36 36
                             </tr>
37 37
                         </thead>
38 38
                         <tbody>
39
-<?php foreach($result['select']['details'] as $details): ?>
39
+<?php foreach ($result['select']['details'] as $details): ?>
40 40
                             <tr>
41
-<?php foreach($details as $detail): ?>
41
+<?php foreach ($details as $detail): ?>
42 42
                                 <td><?php echo $detail ?></td>
43 43
 <?php endforeach ?>
44 44
                             </tr>
Please login to merge, or discard this patch.
templates/views/bootstrap4/html/select-key.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
 <select class="form-control">
2
-<?php foreach($this->options as $value => $label): ?>
2
+<?php foreach ($this->options as $value => $label): ?>
3 3
     <option value="<?php echo htmlentities($value) ?>"><?php echo $label ?></option>
4 4
 <?php endforeach ?>
5 5
 </select>
Please login to merge, or discard this patch.
templates/views/bootstrap4/html/select.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
 <select class="form-control">
2
-<?php foreach($this->options as $option): ?>
2
+<?php foreach ($this->options as $option): ?>
3 3
     <option class="<?php echo $this->optionClass ?>" value="<?php
4 4
         echo htmlentities($option) ?>"><?php echo $option ?></option>
5 5
 <?php endforeach ?>
Please login to merge, or discard this patch.
templates/views/bootstrap3/menu/actions.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="list-group">
2
-<?php foreach($this->menuActions as $id => $title): ?>
2
+<?php foreach ($this->menuActions as $id => $title): ?>
3 3
                     <a href="javascript:void(0)" class="adminer-menu-item list-group-item menu-action-<?php
4 4
                         echo $id ?>" id="adminer-menu-action-<?php echo $id ?>"><?php echo $title ?></a>
5 5
 <?php endforeach ?>
Please login to merge, or discard this patch.