Passed
Push — master ( f98398...2def83 )
by Daniel
02:32
created
source/CommonCode.php 1 patch
Spacing   +11 added lines, -11 removed lines patch added patch discarded remove patch
@@ -57,7 +57,7 @@  discard block
 block discarded – undo
57 57
             return $this->setArrayToJson($aReturn);
58 58
         }
59 59
         $aReturn = $this->getContentFromUrlThroughCurlRawArray($fullURL, $features);
60
-        return '{ ' . $this->packIntoJson($aReturn, 'info') . ', ' . $this->packIntoJson($aReturn, 'response') . ' }';
60
+        return '{ '.$this->packIntoJson($aReturn, 'info').', '.$this->packIntoJson($aReturn, 'response').' }';
61 61
     }
62 62
 
63 63
     /**
@@ -117,7 +117,7 @@  discard block
 block discarded – undo
117 117
             return '<div>No MySQL connection detected</div>';
118 118
         }
119 119
         $afRows = $this->mySQLconnection->affected_rows;
120
-        return '<div>' . sprintf($this->lclMsgCmnNumber('i18n_Record', 'i18n_Records', $afRows), $afRows) . '</div>';
120
+        return '<div>'.sprintf($this->lclMsgCmnNumber('i18n_Record', 'i18n_Records', $afRows), $afRows).'</div>';
121 121
     }
122 122
 
123 123
     /**
@@ -189,9 +189,9 @@  discard block
 block discarded – undo
189 189
     private function packIntoJson($aReturn, $keyToWorkWith)
190 190
     {
191 191
         if ($this->isJsonByDanielGP($aReturn[$keyToWorkWith])) {
192
-            return '"' . $keyToWorkWith . '": ' . $aReturn[$keyToWorkWith];
192
+            return '"'.$keyToWorkWith.'": '.$aReturn[$keyToWorkWith];
193 193
         }
194
-        return '"' . $keyToWorkWith . '": {' . $aReturn[$keyToWorkWith] . ' }';
194
+        return '"'.$keyToWorkWith.'": {'.$aReturn[$keyToWorkWith].' }';
195 195
     }
196 196
 
197 197
     /**
@@ -205,7 +205,7 @@  discard block
 block discarded – undo
205 205
     {
206 206
         $postingUrl = filter_var($urlToSendTo, FILTER_VALIDATE_URL);
207 207
         if ($postingUrl === false) {
208
-            throw new \Exception('Invalid URL in ' . __FUNCTION__);
208
+            throw new \Exception('Invalid URL in '.__FUNCTION__);
209 209
         }
210 210
         if (is_array($params)) {
211 211
             $cntFailErrMsg = $this->lclMsgCmn('i18n_Error_FailedToConnect');
@@ -225,7 +225,7 @@  discard block
 block discarded – undo
225 225
         }
226 226
         $flPointer = fsockopen($pUrlParts['host'], $postingPort, $erN, $erM, 30);
227 227
         if ($flPointer === false) {
228
-            throw new \Exception($cntFailErrMsg . ': ' . $erN . ' (' . $erM . ')');
228
+            throw new \Exception($cntFailErrMsg.': '.$erN.' ('.$erM.')');
229 229
         }
230 230
         fwrite($flPointer, $this->sendBackgroundPrepareData($pUrlParts, $postingString));
231 231
         fclose($flPointer);
@@ -235,12 +235,12 @@  discard block
 block discarded – undo
235 235
     {
236 236
         $this->initializeSprGlbAndSession();
237 237
         $out   = [];
238
-        $out[] = 'POST ' . $pUrlParts['path'] . ' ' . $this->tCmnSuperGlobals->server->get['SERVER_PROTOCOL'];
239
-        $out[] = 'Host: ' . $pUrlParts['host'];
240
-        $out[] = 'User-Agent: ' . $this->getUserAgentByCommonLib();
238
+        $out[] = 'POST '.$pUrlParts['path'].' '.$this->tCmnSuperGlobals->server->get['SERVER_PROTOCOL'];
239
+        $out[] = 'Host: '.$pUrlParts['host'];
240
+        $out[] = 'User-Agent: '.$this->getUserAgentByCommonLib();
241 241
         $out[] = 'Content-Type: application/x-www-form-urlencoded';
242
-        $out[] = 'Content-Length: ' . strlen($postingString);
243
-        $out[] = 'Connection: Close' . "\r\n";
242
+        $out[] = 'Content-Length: '.strlen($postingString);
243
+        $out[] = 'Connection: Close'."\r\n";
244 244
         $out[] = $postingString;
245 245
         return implode("\r\n", $out);
246 246
     }
Please login to merge, or discard this patch.
source/DomCssAndJavascriptByDanielGP.php 1 patch
Spacing   +21 added lines, -21 removed lines patch added patch discarded remove patch
@@ -75,8 +75,8 @@  discard block
 block discarded – undo
75 75
                 }
76 76
             }
77 77
         }
78
-        return '<style type="text/css" media="' . $attr['media'] . '">'
79
-                . $cssContent . '</style>';
78
+        return '<style type="text/css" media="'.$attr['media'].'">'
79
+                . $cssContent.'</style>';
80 80
     }
81 81
 
82 82
     /**
@@ -92,11 +92,11 @@  discard block
 block discarded – undo
92 92
         }
93 93
         if (in_array($this->getClientRealIpAddress(), $hostsWithoutCDNrq)) {
94 94
             return '<link rel="stylesheet" type="text/css" href="'
95
-                    . filter_var($cssFileName, FILTER_SANITIZE_STRING) . '" />';
95
+                    . filter_var($cssFileName, FILTER_SANITIZE_STRING).'" />';
96 96
         }
97 97
         $patternFound = $this->setCssFileCDN($cssFileName);
98 98
         return '<link rel="stylesheet" type="text/css" href="'
99
-                . filter_var($patternFound[1], FILTER_SANITIZE_STRING) . '" />';
99
+                . filter_var($patternFound[1], FILTER_SANITIZE_STRING).'" />';
100 100
     }
101 101
 
102 102
     /**
@@ -109,19 +109,19 @@  discard block
 block discarded – undo
109 109
     {
110 110
         $cnt = implode(PHP_EOL, [
111 111
             '$(document).ready(function(){',
112
-            '$("form#' . $frmId . '").submit(function(){',
113
-            '$("form#' . $frmId . ' input[type=checkbox]").attr("readonly", true);',
114
-            '$("form#' . $frmId . ' input[type=password]").attr("readonly", true);',
115
-            '$("form#' . $frmId . ' input[type=radio]").attr("readonly", true);',
116
-            '$("form#' . $frmId . ' input[type=text]").attr("readonly", true);',
117
-            '$("form#' . $frmId . ' textarea").attr("readonly", true);',
118
-            '$("form#' . $frmId . ' select").attr("readonly", true);',
112
+            '$("form#'.$frmId.'").submit(function(){',
113
+            '$("form#'.$frmId.' input[type=checkbox]").attr("readonly", true);',
114
+            '$("form#'.$frmId.' input[type=password]").attr("readonly", true);',
115
+            '$("form#'.$frmId.' input[type=radio]").attr("readonly", true);',
116
+            '$("form#'.$frmId.' input[type=text]").attr("readonly", true);',
117
+            '$("form#'.$frmId.' textarea").attr("readonly", true);',
118
+            '$("form#'.$frmId.' select").attr("readonly", true);',
119 119
             '$("input[type=submit]").attr("disabled", "disabled");',
120
-            '$("input[type=submit]").attr("value", "' . $this->lclMsgCmn('i18n_Form_ButtonSaving') . '");',
120
+            '$("input[type=submit]").attr("value", "'.$this->lclMsgCmn('i18n_Form_ButtonSaving').'");',
121 121
             '});',
122 122
             '});',
123 123
         ]);
124
-        return $this->setJavascriptContent(PHP_EOL . $cnt . PHP_EOL);
124
+        return $this->setJavascriptContent(PHP_EOL.$cnt.PHP_EOL);
125 125
     }
126 126
 
127 127
     /**
@@ -133,7 +133,7 @@  discard block
 block discarded – undo
133 133
     {
134 134
         return $this->setJavascriptContent(implode('', [
135 135
                     'function loadAE(action) {',
136
-                    'document.getElementById("' . $tabName . '").tabber.tabShow(1);',
136
+                    'document.getElementById("'.$tabName.'").tabber.tabShow(1);',
137 137
                     '$("#DynamicAddEditSpacer").load(action',
138 138
                     '+"&specialHook[]=noHeader"',
139 139
                     '+"&specialHook[]=noMenu"',
@@ -152,7 +152,7 @@  discard block
 block discarded – undo
152 152
      */
153 153
     protected function setJavascriptContent($javascriptContent)
154 154
     {
155
-        return '<script type="text/javascript">' . $javascriptContent . '</script>';
155
+        return '<script type="text/javascript">'.$javascriptContent.'</script>';
156 156
     }
157 157
 
158 158
     /**
@@ -165,7 +165,7 @@  discard block
 block discarded – undo
165 165
         return $this->setJavascriptContent('function setQuest(a, b) { '
166 166
                         . 'c = a.indexOf("_"); switch(a.slice(0, c)) { '
167 167
                         . 'case \'delete\': '
168
-                        . 'if (confirm(\'' . $this->lclMsgCmn('i18n_ActionDelete_ConfirmationQuestion') . '\')) { '
168
+                        . 'if (confirm(\''.$this->lclMsgCmn('i18n_ActionDelete_ConfirmationQuestion').'\')) { '
169 169
                         . 'window.location = document.location.protocol + "//" + '
170 170
                         . 'document.location.host + document.location.pathname + '
171 171
                         . '"?view=" + a + "&" + b; } break; } }');
@@ -183,10 +183,10 @@  discard block
 block discarded – undo
183 183
             $hostsWithoutCDNrq = [];
184 184
         }
185 185
         if (in_array($this->getClientRealIpAddress(), $hostsWithoutCDNrq)) {
186
-            return '<script type="text/javascript" src="' . $jsFileName . '"></script>';
186
+            return '<script type="text/javascript" src="'.$jsFileName.'"></script>';
187 187
         }
188 188
         $patternFound = $this->setJavascriptFileCDN($jsFileName);
189
-        return '<script type="text/javascript" src="' . $patternFound[1] . '"></script>' . $patternFound[2];
189
+        return '<script type="text/javascript" src="'.$patternFound[1].'"></script>'.$patternFound[2];
190 190
     }
191 191
 
192 192
     /**
@@ -197,14 +197,14 @@  discard block
 block discarded – undo
197 197
      */
198 198
     protected function setJavascriptFileContent($jsFileName)
199 199
     {
200
-        return '<script type="text/javascript">' . file_get_contents($jsFileName, true) . '</script>';
200
+        return '<script type="text/javascript">'.file_get_contents($jsFileName, true).'</script>';
201 201
     }
202 202
 
203 203
     protected function updateDivTitleName($rememberGroupVal, $groupCounter)
204 204
     {
205 205
         $jsContent = '$(document).ready(function() { $("#tab_'
206
-                . $this->cleanStringForId($rememberGroupVal) . '").attr("title", "'
207
-                . $rememberGroupVal . ' (' . $groupCounter . ')"); });';
206
+                . $this->cleanStringForId($rememberGroupVal).'").attr("title", "'
207
+                . $rememberGroupVal.' ('.$groupCounter.')"); });';
208 208
         return $this->setJavascriptContent($jsContent);
209 209
     }
210 210
 }
Please login to merge, or discard this patch.
source/DomDynamicSelectByDanielGP.php 1 patch
Spacing   +11 added lines, -11 removed lines patch added patch discarded remove patch
@@ -82,7 +82,7 @@  discard block
 block discarded – undo
82 82
             $sReturn[] = 'submit();';
83 83
         }
84 84
         if (is_array($sReturn)) {
85
-            return ' onchange="javascript:' . implode('', $sReturn) . '"';
85
+            return ' onchange="javascript:'.implode('', $sReturn).'"';
86 86
         }
87 87
         return $sReturn;
88 88
     }
@@ -99,7 +99,7 @@  discard block
 block discarded – undo
99 99
         ];
100 100
         if (array_key_exists($identifier, $featArray)) {
101 101
             if (is_null($translation[$identifier])) {
102
-                return ' ' . $identifier . '="' . $featArray[$identifier] . '"';
102
+                return ' '.$identifier.'="'.$featArray[$identifier].'"';
103 103
             }
104 104
             return $translation[$identifier];
105 105
         }
@@ -124,15 +124,15 @@  discard block
 block discarded – undo
124 124
             $ftArray = [];
125 125
         }
126 126
         $featArray = $this->normalizeFeatureArray($ftArray);
127
-        return '<select name="' . $selectName . '" '
128
-                . 'id="' . $this->buildSelectId($selectName, $featArray) . '" '
129
-                . 'size="' . $this->calculateSelectOptionsSize($aElements, $featArray) . '"'
127
+        return '<select name="'.$selectName.'" '
128
+                . 'id="'.$this->buildSelectId($selectName, $featArray).'" '
129
+                . 'size="'.$this->calculateSelectOptionsSize($aElements, $featArray).'"'
130 130
                 . $this->eventOnChange($featArray)
131 131
                 . $this->featureArraySimpleTranslated($featArray, 'disabled')
132 132
                 . $this->featureArraySimpleTranslated($featArray, 'hidden')
133 133
                 . $this->featureArraySimpleTranslated($featArray, 'multiselect')
134 134
                 . $this->featureArraySimpleTranslated($featArray, 'style')
135
-                . '>' . $this->setOptionsForSelect($aElements, $sDefaultValue, $featArray) . '</select>';
135
+                . '>'.$this->setOptionsForSelect($aElements, $sDefaultValue, $featArray).'</select>';
136 136
     }
137 137
 
138 138
     private function setOptionGroupEnd($crtGroup, $featArray)
@@ -153,7 +153,7 @@  discard block
 block discarded – undo
153 153
             if ($crtGroup != $tempString) {
154 154
                 $sReturn[] = $this->setOptionGroupEnd($crtGroup, $featArray);
155 155
                 $crtGroup  = $tempString;
156
-                $sReturn[] = '<optgroup label="' . str_replace($featArray['grouping'], '', $crtGroup) . '">';
156
+                $sReturn[] = '<optgroup label="'.str_replace($featArray['grouping'], '', $crtGroup).'">';
157 157
             }
158 158
         }
159 159
         return ['crtGroup' => $crtGroup, 'groupFooterHeader' => implode('', $sReturn)];
@@ -190,11 +190,11 @@  discard block
 block discarded – undo
190 190
             $aFH       = $this->setOptionGroupFooterHeader($featArray, $value, $crtGroup);
191 191
             $crtGroup  = $aFH['crtGroup'];
192 192
             $sReturn[] = $aFH['groupFooterHeader']
193
-                    . '<option value="' . $key . '"' . $this->setOptionSelected($key, $sDefaultValue)
194
-                    . $this->featureArraySimpleTranslated($featArray, 'styleForOption') . '>'
195
-                    . str_replace(['&', $crtGroup], ['&amp;', ''], $value) . '</option>';
193
+                    . '<option value="'.$key.'"'.$this->setOptionSelected($key, $sDefaultValue)
194
+                    . $this->featureArraySimpleTranslated($featArray, 'styleForOption').'>'
195
+                    . str_replace(['&', $crtGroup], ['&amp;', ''], $value).'</option>';
196 196
         }
197 197
         $sReturn[] = $this->setOptionGroupEnd($crtGroup, $featArray);
198
-        return $this->featureArraySimpleTranslated($featArray, 'include_null') . implode('', $sReturn);
198
+        return $this->featureArraySimpleTranslated($featArray, 'include_null').implode('', $sReturn);
199 199
     }
200 200
 }
Please login to merge, or discard this patch.
source/CommonViews.php 1 patch
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -52,8 +52,8 @@  discard block
 block discarded – undo
52 52
         if ($dtl['COLUMN_NAME'] == 'host') {
53 53
             $inVl = gethostbyaddr($this->tCmnRequest->server->get('REMOTE_ADDR'));
54 54
             return [
55
-                'label' => '<label for="' . $dtl['COLUMN_NAME'] . '">Numele calculatorului</label>',
56
-                'input' => '<input type="text" name="host" size="15" readonly value="' . $inVl . '" />',
55
+                'label' => '<label for="'.$dtl['COLUMN_NAME'].'">Numele calculatorului</label>',
56
+                'input' => '<input type="text" name="host" size="15" readonly value="'.$inVl.'" />',
57 57
             ];
58 58
         }
59 59
         $result = $this->setFieldInput($tableSource, $dtl, $features);
@@ -72,7 +72,7 @@  discard block
 block discarded – undo
72 72
     {
73 73
         if ($dtl['COLUMN_NAME'] == 'ChoiceId') {
74 74
             return '<input type="text" name="ChoiceId" value="'
75
-                    . $this->tCmnRequest->request->get($dtl['COLUMN_NAME']) . '" />';
75
+                    . $this->tCmnRequest->request->get($dtl['COLUMN_NAME']).'" />';
76 76
         }
77 77
         return $this->setNeededFieldByType($tableSource, $dtl, $features);
78 78
     }
@@ -100,7 +100,7 @@  discard block
 block discarded – undo
100 100
             }
101 101
         }
102 102
         $frmFtrs = ['id' => $feat['id'], 'action' => $feat['action'], 'method' => $feat['method']];
103
-        return $this->setStringIntoTag(implode('', $sReturn) . $this->setFormButtons($feat, $hdnInf), 'form', $frmFtrs)
103
+        return $this->setStringIntoTag(implode('', $sReturn).$this->setFormButtons($feat, $hdnInf), 'form', $frmFtrs)
104 104
                 . $this->setFormJavascriptFinal($feat['id']);
105 105
     }
106 106
 
@@ -147,10 +147,10 @@  discard block
 block discarded – undo
147 147
     {
148 148
         $sReturn = $this->setField($tableSource, $details, $features, $fieldLabel);
149 149
         $lmts    = $this->setFieldNumbers($details);
150
-        return '<div>' . $sReturn['label']
150
+        return '<div>'.$sReturn['label']
151 151
                 . $this->setStringIntoTag($sReturn['input'], 'span', ['class' => 'labell'])
152 152
                 . '<span style="font-size:x-small;font-style:italic;">&nbsp;(max. '
153
-                . $lmts['M'] . (isset($lmts['d']) ? ' w. ' . $lmts['d'] . ' decimals' : '') . ')</span>'
153
+                . $lmts['M'].(isset($lmts['d']) ? ' w. '.$lmts['d'].' decimals' : '').')</span>'
154 154
                 . '</div>';
155 155
     }
156 156
 
@@ -176,7 +176,7 @@  discard block
 block discarded – undo
176 176
             '$(this).remove();',
177 177
             '});',
178 178
         ]));
179
-        return '<div id="DeleteFeedback">' . $sReturn . '</div>' . $finalJavascript;
179
+        return '<div id="DeleteFeedback">'.$sReturn.'</div>'.$finalJavascript;
180 180
     }
181 181
 
182 182
     /**
@@ -196,7 +196,7 @@  discard block
 block discarded – undo
196 196
             $idFldVal = $this->tCmnSuperGlobals->query->get($idn);
197 197
             $this->setMySQLquery2Server($this->sQueryToDeleteSingleIdentifier([$tbl, $idn, $idFldVal]));
198 198
             $sReturn  = $this->setFeedbackModern('error', $tMsg['Confirmation'], $tMsg['Failed'])
199
-                    . '(' . $this->mySQLconnection->error . ')';
199
+                    . '('.$this->mySQLconnection->error.')';
200 200
             if ($this->mySQLconnection->affected_rows > 0) {
201 201
                 $sReturn = $this->setFeedbackModern('check', $tMsg['Confirmation'], $tMsg['Success']);
202 202
             }
Please login to merge, or discard this patch.
source/MySQLiAdvancedOutput.php 1 patch
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -65,7 +65,7 @@  discard block
 block discarded – undo
65 65
      */
66 66
     protected function getFieldNameForDisplay($details)
67 67
     {
68
-        $tableUniqueId = $details['TABLE_SCHEMA'] . '.' . $details['TABLE_NAME'];
68
+        $tableUniqueId = $details['TABLE_SCHEMA'].'.'.$details['TABLE_NAME'];
69 69
         if ($details['COLUMN_COMMENT'] != '') {
70 70
             return $details['COLUMN_COMMENT'];
71 71
         } elseif (isset($this->advCache['tableStructureLocales'][$tableUniqueId][$details['COLUMN_NAME']])) {
@@ -95,7 +95,7 @@  discard block
 block discarded – undo
95 95
         }
96 96
         $vlSlct    = explode(',', $this->getFieldValue($val));
97 97
         $slctOptns = $this->getSetOrEnum2Array($tblSrc, $val['COLUMN_NAME']);
98
-        return $this->setArrayToSelect($slctOptns, $vlSlct, $val['COLUMN_NAME'] . $adnlThings['suffix'], $inAdtnl);
98
+        return $this->setArrayToSelect($slctOptns, $vlSlct, $val['COLUMN_NAME'].$adnlThings['suffix'], $inAdtnl);
99 99
     }
100 100
 
101 101
     /**
@@ -141,7 +141,7 @@  discard block
 block discarded – undo
141 141
         if ($iar !== []) {
142 142
             $inAdtnl = array_merge($inAdtnl, $iar);
143 143
         }
144
-        return '<b>' . $this->getFieldValue($value) . '</b>' . $this->setStringIntoShortTag('input', $inAdtnl);
144
+        return '<b>'.$this->getFieldValue($value).'</b>'.$this->setStringIntoShortTag('input', $inAdtnl);
145 145
     }
146 146
 
147 147
     /**
@@ -154,8 +154,8 @@  discard block
 block discarded – undo
154 154
      */
155 155
     private function getFieldOutputNumericNonFK($fkArray, $value, $iar = [])
156 156
     {
157
-        $query         = $this->sQueryGenericSelectKeyValue([
158
-            '`' . $value['COLUMN_NAME'] . '`',
157
+        $query = $this->sQueryGenericSelectKeyValue([
158
+            '`'.$value['COLUMN_NAME'].'`',
159 159
             $fkArray[$value['COLUMN_NAME']][2],
160 160
             $fkArray[$value['COLUMN_NAME']][0],
161 161
         ]);
@@ -296,7 +296,7 @@  discard block
 block discarded – undo
296 296
                 if ($val[$cnm[0]] == $oCol) {
297 297
                     $vlQ        = array_merge($val, ['LIMIT' => 2]);
298 298
                     $tFd        = $this->setMySQLquery2Server($this->getForeignKeysQuery($vlQ), $cnm[1])['result'];
299
-                    $tgtFld     = '`' . ($tFd[0][$cnm[0]] == $val[$cnm[0]] ? $tFd[1][$cnm[0]] : $tFd[0][$cnm[0]]) . '`';
299
+                    $tgtFld     = '`'.($tFd[0][$cnm[0]] == $val[$cnm[0]] ? $tFd[1][$cnm[0]] : $tFd[0][$cnm[0]]).'`';
300 300
                     $aRt[$oCol] = [$this->glueDbTb($val[$cnm[2]], $val[$cnm[3]]), $val[$cnm[2]], $tgtFld];
301 301
                 }
302 302
             }
@@ -347,7 +347,7 @@  discard block
 block discarded – undo
347 347
                 $inM = $this->setStringIntoTag($mCN[$dtl['COLUMN_NAME']], 'span', ['style' => 'font-style:italic;']);
348 348
             }
349 349
         }
350
-        $lbl = '<span class="fake_label">' . $this->getFieldNameForDisplay($dtl) . '</span>';
350
+        $lbl = '<span class="fake_label">'.$this->getFieldNameForDisplay($dtl).'</span>';
351 351
         return ['label' => $lbl, 'input' => $inM];
352 352
     }
353 353
 
@@ -363,7 +363,7 @@  discard block
 block discarded – undo
363 363
         } elseif (in_array($dtls['DATA_TYPE'], ['date', 'datetime', 'time', 'timestamp', 'year'])) {
364 364
             $sReturn = $this->setNeededFieldSingleType($tblName, $dtls, $iar);
365 365
         }
366
-        return $this->getFieldCompletionType($dtls) . $sReturn;
366
+        return $this->getFieldCompletionType($dtls).$sReturn;
367 367
     }
368 368
 
369 369
     private function setNeededFieldSingleType($tblName, $dtls, $iar)
Please login to merge, or discard this patch.
source/MySQLiMultipleExecution.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -123,7 +123,7 @@  discard block
 block discarded – undo
123 123
      */
124 124
     protected function glueDbTb($dbName, $tbName)
125 125
     {
126
-        return '`' . $dbName . '`.`' . $tbName . '`';
126
+        return '`'.$dbName.'`.`'.$tbName.'`';
127 127
     }
128 128
 
129 129
     /**
@@ -154,7 +154,7 @@  discard block
 block discarded – undo
154 154
      */
155 155
     private function handleFeaturesSingle($fieldName, $features, $featureKey)
156 156
     {
157
-        $fMap    = [
157
+        $fMap = [
158 158
             'readonly' => ['readonly', 'class', 'input_readonly'],
159 159
             'disabled' => ['disabled']
160 160
         ];
Please login to merge, or discard this patch.
source/MySQLiByDanielGPtypes.php 1 patch
Spacing   +3 added lines, -3 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,7 +97,7 @@  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
         $fJson       = fopen($fName, 'r');
102 102
         $jSonContent = fread($fJson, filesize($fName));
103 103
         fclose($fJson);
Please login to merge, or discard this patch.
source/CommonBasic.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -73,14 +73,14 @@  discard block
 block discarded – undo
73 73
             'File Group'             => $info->getGroup(),
74 74
             'File Inode'             => $info->getInode(),
75 75
             'File Link Target'       => ($info->isLink() ? $info->getLinkTarget() : '-'),
76
-            'File Name'              => $info->getBasename('.' . $info->getExtension()),
76
+            'File Name'              => $info->getBasename('.'.$info->getExtension()),
77 77
             'File Name w. Extension' => $info->getFilename(),
78 78
             'File Owner'             => $info->getOwner(),
79 79
             'File Path'              => $info->getPath(),
80 80
             'Name'                   => $info->getRealPath(),
81 81
             'Type'                   => $info->getType(),
82 82
         ];
83
-        $aDetails          = array_merge($aFileBasicDetails, $this->getFileDetailsRawStatistic($info, $fileGiven));
83
+        $aDetails = array_merge($aFileBasicDetails, $this->getFileDetailsRawStatistic($info, $fileGiven));
84 84
         ksort($aDetails);
85 85
         return $aDetails;
86 86
     }
@@ -127,8 +127,8 @@  discard block
 block discarded – undo
127 127
         $sFiles     = [];
128 128
         foreach ($iterator as $file) {
129 129
             $relativePathFile = str_replace($sourcePath, '', $file->getRealPath());
130
-            if (!file_exists($targetPath . $relativePathFile)) {
131
-                $sFiles[$relativePathFile] = $targetPath . $relativePathFile;
130
+            if (!file_exists($targetPath.$relativePathFile)) {
131
+                $sFiles[$relativePathFile] = $targetPath.$relativePathFile;
132 132
             }
133 133
         }
134 134
         return $this->setArrayToJson($sFiles);
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
     protected function setMySQLqueryValidateInputs($prm)
@@ -232,17 +232,17 @@  discard block
 block discarded – undo
232 232
         if (array_key_exists($prm['returnType'], $rMap)) {
233 233
             $elC = [$prm['NoOfRows'], $rMap[$prm['returnType']]['r'][0], $rMap[$prm['returnType']]['r'][1]];
234 234
             if (filter_var($elC[0], FILTER_VALIDATE_INT, ['min_range' => $elC[1], 'max_range' => $elC[2]]) === false) {
235
-                $msg = $this->lclMsgCmn('i18n_MySQL_QueryResultExpected' . $rMap[$prm['returnType']][2]);
235
+                $msg = $this->lclMsgCmn('i18n_MySQL_QueryResultExpected'.$rMap[$prm['returnType']][2]);
236 236
                 return [false, sprintf($msg, $prm['NoOfColumns'])];
237 237
             }
238 238
             $elR = [$prm['NoOfColumns'], $rMap[$prm['returnType']]['c'][0], $rMap[$prm['returnType']]['c'][1]];
239 239
             if (filter_var($elR[0], FILTER_VALIDATE_INT, ['min_range' => $elR[1], 'max_range' => $elR[2]])) {
240 240
                 return [true, ''];
241 241
             }
242
-            $msg = $this->lclMsgCmn('i18n_MySQL_QueryResultExpected' . $rMap[$prm['returnType']][1]);
242
+            $msg = $this->lclMsgCmn('i18n_MySQL_QueryResultExpected'.$rMap[$prm['returnType']][1]);
243 243
             return [false, sprintf($msg, $prm['NoOfColumns'])];
244 244
         }
245
-        return [false, $prm['returnType'] . ' is not defined!'];
245
+        return [false, $prm['returnType'].' is not defined!'];
246 246
     }
247 247
 
248 248
     private function setMySQLqueryValidationMap()
Please login to merge, or discard this patch.