Passed
Push — main ( 6a63fe...cd781c )
by Thierry
07:05
created
templates/views/bootstrap4/table/select/results.php 1 patch
Braces   +5 added lines, -2 removed lines patch added patch discarded remove patch
@@ -2,12 +2,15 @@
 block discarded – undo
2 2
     <thead>
3 3
         <tr>
4 4
 <?php foreach($this->headers as $header): ?>
5
-            <th><?php if(is_array($header)) echo $header['key'] ?></th>
5
+            <th><?php if(is_array($header)) {
6
+    echo $header['key'] ?></th>
6 7
 <?php endforeach ?>
7 8
         </tr>
8 9
     </thead>
9 10
     <tbody>
10
-<?php $rowId = 0; foreach($this->rows as $row): ?>
11
+<?php $rowId = 0;
12
+}
13
+foreach($this->rows as $row): ?>
11 14
         <tr>
12 15
             <th>
13 16
                 <div class="btn-group" role="group" data-row-id="<?php echo $rowId++ ?>">
Please login to merge, or discard this patch.
templates/views/bootstrap4/table/edit.php 1 patch
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.
src/Db/Util.php 1 patch
Braces   +2 added lines, -4 removed lines patch added patch discarded remove patch
@@ -913,11 +913,9 @@
 block discarded – undo
913 913
         if ($link === null) {
914 914
             if ($this->isMail($value)) {
915 915
                 $link = "mailto:$value";
916
-            }
917
-            elseif ($this->isUrl($value)) {
916
+            } elseif ($this->isUrl($value)) {
918 917
                 $link = $value; // IE 11 and all modern browsers hide referrer
919
-            }
920
-            else {
918
+            } else {
921 919
                 $link = '';
922 920
             }
923 921
         }
Please login to merge, or discard this patch.
templates/views/bootstrap3/table/select/results.php 1 patch
Braces   +5 added lines, -2 removed lines patch added patch discarded remove patch
@@ -2,12 +2,15 @@
 block discarded – undo
2 2
     <thead>
3 3
         <tr>
4 4
 <?php foreach($this->headers as $header): ?>
5
-            <th><?php if(is_array($header)) echo $header['key'] ?></th>
5
+            <th><?php if(is_array($header)) {
6
+    echo $header['key'] ?></th>
6 7
 <?php endforeach ?>
7 8
         </tr>
8 9
     </thead>
9 10
     <tbody>
10
-<?php $rowId = 0; foreach($this->rows as $row): ?>
11
+<?php $rowId = 0;
12
+}
13
+foreach($this->rows as $row): ?>
11 14
         <tr>
12 15
             <th>
13 16
                 <div class="btn-group" role="group" data-row-id="<?php echo $rowId++ ?>">
Please login to merge, or discard this patch.
templates/views/bootstrap3/table/edit.php 1 patch
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.
src/DbAdmin/ExportAdmin.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -526,8 +526,7 @@
 block discarded – undo
526 526
                 }
527 527
 
528 528
                 $this->dumpTablesAndViews($database);
529
-            }
530
-            catch (\Exception $e) {}
529
+            } catch (\Exception $e) {}
531 530
         }
532 531
 
533 532
         if ($this->options['is_sql']) {
Please login to merge, or discard this patch.
src/DbAdmin/CommandAdmin.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -157,8 +157,7 @@
 block discarded – undo
157 157
             try {
158 158
                 \ini_set("memory_limit", \max($this->util->iniBytes("memory_limit"),
159 159
                     2 * \strlen($queries) + \memory_get_usage() + 8e6));
160
-            }
161
-            catch(\Excpetion $e){}
160
+            } catch(\Excpetion $e){}
162 161
         }
163 162
 
164 163
         // if($queries != "" && \strlen($queries) < 1e6) { // don't add big queries
Please login to merge, or discard this patch.