Passed
Push — master ( ec79a0...7495bb )
by Daniel
02:30
created
source/MySQLiByDanielGPtypes.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -68,11 +68,11 @@  discard block
 block discarded – undo
68 68
      */
69 69
     private function listOfMySQLqueryLanguageType($qType)
70 70
     {
71
-        $keyForReturn = 'Type ' . $qType . ' stands for';
71
+        $keyForReturn = 'Type '.$qType.' stands for';
72 72
         $vMap         = ['DCL', 'DDL', 'DML', 'DQL', 'DTL'];
73 73
         if (in_array($qType, $vMap)) {
74 74
             $valForReturn = $this->readTypeFromJsonFile('MySQLiLanguageTypes')[$qType];
75
-            return [$keyForReturn => $valForReturn[0] . ' (' . $valForReturn[1] . ')'];
75
+            return [$keyForReturn => $valForReturn[0].' ('.$valForReturn[1].')'];
76 76
         }
77 77
         return [$keyForReturn => 'unknown'];
78 78
     }
@@ -97,14 +97,14 @@  discard block
 block discarded – undo
97 97
 
98 98
     private function readTypeFromJsonFile($fileBaseName)
99 99
     {
100
-        $fName = __DIR__ . DIRECTORY_SEPARATOR . 'json' . DIRECTORY_SEPARATOR . $fileBaseName . '.min.json';
100
+        $fName = __DIR__.DIRECTORY_SEPARATOR.'json'.DIRECTORY_SEPARATOR.$fileBaseName.'.min.json';
101 101
         try {
102 102
             $fJson       = fopen($fName, 'r');
103 103
             $jSonContent = fread($fJson, filesize($fName));
104 104
             fclose($fJson);
105 105
             return json_decode($jSonContent, true);
106 106
         } catch (Exception $error) {
107
-            echo "\n" . $error->getMessage() . "\n";
107
+            echo "\n".$error->getMessage()."\n";
108 108
             return '';
109 109
         }
110 110
     }
Please login to merge, or discard this patch.
source/MySQLiByDanielGPnumbers.php 1 patch
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -48,7 +48,7 @@  discard block
 block discarded – undo
48 48
     protected function getFieldOutputEnumSetReadOnly($val, $adnlThings)
49 49
     {
50 50
         $inputFeatures = [
51
-            'name'     => $val['COLUMN_NAME'] . $adnlThings['suffix'],
51
+            'name'     => $val['COLUMN_NAME'].$adnlThings['suffix'],
52 52
             'id'       => $val['COLUMN_NAME'],
53 53
             'readonly' => 'readonly',
54 54
             'class'    => 'input_readonly',
@@ -128,7 +128,7 @@  discard block
 block discarded – undo
128 128
      */
129 129
     protected function setFieldLabel($details, $features, $fieldLabel)
130 130
     {
131
-        $aLabel = ['for' => $details['COLUMN_NAME'], 'id' => $details['COLUMN_NAME'] . '_label'];
131
+        $aLabel = ['for' => $details['COLUMN_NAME'], 'id' => $details['COLUMN_NAME'].'_label'];
132 132
         if (isset($features['disabled'])) {
133 133
             if (in_array($details['COLUMN_NAME'], $features['disabled'])) {
134 134
                 $aLabel = array_merge($aLabel, ['style' => 'color: grey;']);
@@ -186,7 +186,7 @@  discard block
 block discarded – undo
186 186
 
187 187
     private function setFldLmtsExact($dTp, $cTp)
188 188
     {
189
-        $xct     = [
189
+        $xct = [
190 190
             'bigint'    => ['l' => -9223372036854775808, 'L' => 999999999999, 's' => 21, 'sUS' => 20],
191 191
             'int'       => ['l' => -2147483648, 'L' => 2147483647, 's' => 11, 'sUS' => 10],
192 192
             'mediumint' => ['l' => -8388608, 'L' => 8388607, 's' => 9, 'sUS' => 8],
@@ -214,16 +214,16 @@  discard block
 block discarded – undo
214 214
     {
215 215
         $btn   = [];
216 216
         $btn[] = '<input type="submit" id="submit" style="margin-left:220px;" value="'
217
-            . $this->lclMsgCmn('i18n_Form_ButtonSave') . '" />';
217
+            . $this->lclMsgCmn('i18n_Form_ButtonSave').'" />';
218 218
         if (isset($feat['insertAndUpdate'])) {
219 219
             $btn[] = '<input type="hidden" id="insertAndUpdate" name="insertAndUpdate" value="insertAndUpdate" />';
220 220
         }
221 221
         if ($hiddenInfo != []) {
222 222
             foreach ($hiddenInfo as $key => $value) {
223
-                $btn[] = '<input type="hidden" id="' . $key . '" name="' . $key . '" value="' . $value . '" />';
223
+                $btn[] = '<input type="hidden" id="'.$key.'" name="'.$key.'" value="'.$value.'" />';
224 224
             }
225 225
         }
226
-        return '<div>' . implode('', $btn) . '</div>';
226
+        return '<div>'.implode('', $btn).'</div>';
227 227
     }
228 228
 
229 229
     /**
@@ -238,17 +238,17 @@  discard block
 block discarded – undo
238 238
         if (array_key_exists($strReturnType, $rMap)) {
239 239
             $elC = [$prm['NoOfRows'], $rMap[$strReturnType]['r'][0], $rMap[$strReturnType]['r'][1]];
240 240
             if (filter_var($elC[0], FILTER_VALIDATE_INT, ['min_range' => $elC[1], 'max_range' => $elC[2]]) === false) {
241
-                $msg = $this->lclMsgCmn('i18n_MySQL_QueryResultExpected' . $rMap[$strReturnType][2]);
241
+                $msg = $this->lclMsgCmn('i18n_MySQL_QueryResultExpected'.$rMap[$strReturnType][2]);
242 242
                 return [false, sprintf($msg, $prm['NoOfColumns'])];
243 243
             }
244 244
             $elR = [$prm['NoOfColumns'], $rMap[$strReturnType]['c'][0], $rMap[$strReturnType]['c'][1]];
245 245
             if (filter_var($elR[0], FILTER_VALIDATE_INT, ['min_range' => $elR[1], 'max_range' => $elR[2]])) {
246 246
                 return [true, ''];
247 247
             }
248
-            $msg = $this->lclMsgCmn('i18n_MySQL_QueryResultExpected' . $rMap[$strReturnType][1]);
248
+            $msg = $this->lclMsgCmn('i18n_MySQL_QueryResultExpected'.$rMap[$strReturnType][1]);
249 249
             return [false, sprintf($msg, $prm['NoOfColumns'])];
250 250
         }
251
-        return [false, $strReturnType . ' is not defined!'];
251
+        return [false, $strReturnType.' is not defined!'];
252 252
     }
253 253
 
254 254
     private function setMySQLqueryValidationMap()
Please login to merge, or discard this patch.