Passed
Push — master ( 580df1...6894ed )
by Daniel
02:27
created
source/MySQLiByDanielGPstructures.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -51,7 +51,7 @@  discard block
 block discarded – undo
51 51
     private function correctTableWithQuotesAsFieldPrefix($referenceTable)
52 52
     {
53 53
         if ($referenceTable != '') {
54
-            return '`' . str_replace('`', '', $referenceTable) . '`.';
54
+            return '`'.str_replace('`', '', $referenceTable).'`.';
55 55
         }
56 56
         return '';
57 57
     }
@@ -81,7 +81,7 @@  discard block
 block discarded – undo
81 81
      */
82 82
     protected function getFieldNameForDisplay($details)
83 83
     {
84
-        $tableUniqueId = $details['TABLE_SCHEMA'] . '.' . $details['TABLE_NAME'];
84
+        $tableUniqueId = $details['TABLE_SCHEMA'].'.'.$details['TABLE_NAME'];
85 85
         if ($details['COLUMN_COMMENT'] != '') {
86 86
             return $details['COLUMN_COMMENT'];
87 87
         } elseif (isset($this->advCache['tableStructureLocales'][$tableUniqueId][$details['COLUMN_NAME']])) {
@@ -100,8 +100,8 @@  discard block
 block discarded – undo
100 100
      */
101 101
     protected function getFieldOutputTextFK($foreignKeysArray, $value, $iar)
102 102
     {
103
-        $query   = $this->sQueryGenericSelectKeyValue([
104
-            '`' . $value['COLUMN_NAME'] . '`',
103
+        $query = $this->sQueryGenericSelectKeyValue([
104
+            '`'.$value['COLUMN_NAME'].'`',
105 105
             $foreignKeysArray[$value['COLUMN_NAME']][2],
106 106
             $foreignKeysArray[$value['COLUMN_NAME']][0]
107 107
         ]);
@@ -316,8 +316,8 @@  discard block
 block discarded – undo
316 316
     {
317 317
         $filters2 = implode(', ', array_diff($value, ['']));
318 318
         if ($filters2 != '') {
319
-            return '(' . $referenceTable . '`' . $key . '` IN ("'
320
-                . str_replace(',', '","', str_replace(["'", '"'], '', $filters2)) . '"))';
319
+            return '('.$referenceTable.'`'.$key.'` IN ("'
320
+                . str_replace(',', '","', str_replace(["'", '"'], '', $filters2)).'"))';
321 321
         }
322 322
         return '';
323 323
     }
@@ -335,7 +335,7 @@  discard block
 block discarded – undo
335 335
         if ((substr($value, 0, 1) == '%') && (substr($value, -1) == '%')) {
336 336
             $fTemp = 'LIKE';
337 337
         }
338
-        return '(`' . $key . '` ' . $fTemp . '"' . $value . '")';
338
+        return '(`'.$key.'` '.$fTemp.'"'.$value.'")';
339 339
     }
340 340
 
341 341
     /**
Please login to merge, or discard this patch.
source/MySQLiAdvancedOutput.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -59,7 +59,7 @@  discard block
 block discarded – undo
59 59
         }
60 60
         $vlSlct    = explode(',', $this->getFieldValue($val));
61 61
         $slctOptns = $this->getSetOrEnum2Array($tblSrc, $val['COLUMN_NAME']);
62
-        return $this->setArrayToSelect($slctOptns, $vlSlct, $val['COLUMN_NAME'] . $adnlThings['suffix'], $inAdtnl);
62
+        return $this->setArrayToSelect($slctOptns, $vlSlct, $val['COLUMN_NAME'].$adnlThings['suffix'], $inAdtnl);
63 63
     }
64 64
 
65 65
     /**
@@ -105,7 +105,7 @@  discard block
 block discarded – undo
105 105
         if ($iar !== []) {
106 106
             $inAdtnl = array_merge($inAdtnl, $iar);
107 107
         }
108
-        return '<b>' . $this->getFieldValue($value) . '</b>' . $this->setStringIntoShortTag('input', $inAdtnl);
108
+        return '<b>'.$this->getFieldValue($value).'</b>'.$this->setStringIntoShortTag('input', $inAdtnl);
109 109
     }
110 110
 
111 111
     /**
@@ -118,8 +118,8 @@  discard block
 block discarded – undo
118 118
      */
119 119
     private function getFieldOutputNumericNonFK($fkArray, $value, $iar = [])
120 120
     {
121
-        $query         = $this->sQueryGenericSelectKeyValue([
122
-            '`' . $value['COLUMN_NAME'] . '`',
121
+        $query = $this->sQueryGenericSelectKeyValue([
122
+            '`'.$value['COLUMN_NAME'].'`',
123 123
             $fkArray[$value['COLUMN_NAME']][2],
124 124
             $fkArray[$value['COLUMN_NAME']][0],
125 125
         ]);
@@ -260,7 +260,7 @@  discard block
 block discarded – undo
260 260
                 if ($val[$cnm[0]] == $oCol) {
261 261
                     $vlQ        = array_merge($val, ['LIMIT' => 2]);
262 262
                     $tFd        = $this->setMySQLquery2Server($this->getForeignKeysQuery($vlQ), $cnm[1])['result'];
263
-                    $tgtFld     = '`' . ($tFd[0][$cnm[0]] == $val[$cnm[0]] ? $tFd[1][$cnm[0]] : $tFd[0][$cnm[0]]) . '`';
263
+                    $tgtFld     = '`'.($tFd[0][$cnm[0]] == $val[$cnm[0]] ? $tFd[1][$cnm[0]] : $tFd[0][$cnm[0]]).'`';
264 264
                     $aRt[$oCol] = [$this->glueDbTb($val[$cnm[2]], $val[$cnm[3]]), $val[$cnm[2]], $tgtFld];
265 265
                 }
266 266
             }
@@ -311,7 +311,7 @@  discard block
 block discarded – undo
311 311
                 $inM = $this->setStringIntoTag($mCN[$dtl['COLUMN_NAME']], 'span', ['style' => 'font-style:italic;']);
312 312
             }
313 313
         }
314
-        $lbl = '<span class="fake_label">' . $this->getFieldNameForDisplay($dtl) . '</span>';
314
+        $lbl = '<span class="fake_label">'.$this->getFieldNameForDisplay($dtl).'</span>';
315 315
         return ['label' => $lbl, 'input' => $inM];
316 316
     }
317 317
 
@@ -327,7 +327,7 @@  discard block
 block discarded – undo
327 327
         } elseif (in_array($dtls['DATA_TYPE'], ['date', 'datetime', 'time', 'timestamp', 'year'])) {
328 328
             $sReturn = $this->setNeededFieldSingleType($tblName, $dtls, $iar);
329 329
         }
330
-        return $this->getFieldCompletionType($dtls) . $sReturn;
330
+        return $this->getFieldCompletionType($dtls).$sReturn;
331 331
     }
332 332
 
333 333
     private function setNeededFieldSingleType($tblName, $dtls, $iar)
Please login to merge, or discard this patch.