Completed
Push — master ( 21732b...5af230 )
by Daniel
02:34
created
source/CommonViews.php 2 patches
Doc Comments   +9 added lines, -2 removed lines patch added patch discarded remove patch
@@ -127,7 +127,7 @@  discard block
 block discarded – undo
127 127
      * @param string $tableSource
128 128
      * @param array $details
129 129
      * @param array $features
130
-     * @return string|array
130
+     * @return null|string
131 131
      */
132 132
     private function setNeededField($tableSource, $details, $features)
133 133
     {
@@ -149,7 +149,7 @@  discard block
 block discarded – undo
149 149
      * @param string $tblName
150 150
      * @param array $dtls
151 151
      * @param array $features
152
-     * @return string|array
152
+     * @return string
153 153
      */
154 154
     private function setNeededFieldByType($tblName, $dtls, $features)
155 155
     {
@@ -160,6 +160,10 @@  discard block
 block discarded – undo
160 160
         return $this->setNeededFieldKnown($tblName, $dtls, $features);
161 161
     }
162 162
 
163
+    /**
164
+     * @param string $tableSource
165
+     * @param string $fieldLabel
166
+     */
163 167
     private function setNeededFieldFinal($tableSource, $details, $features, $fieldLabel)
164 168
     {
165 169
         $sReturn = $this->setField($tableSource, $details, $features, $fieldLabel);
@@ -186,6 +190,9 @@  discard block
 block discarded – undo
186 190
         ];
187 191
     }
188 192
 
193
+    /**
194
+     * @param string $sReturn
195
+     */
189 196
     private function setViewDeletePackedFinal($sReturn)
190 197
     {
191 198
         $finalJavascript = $this->setJavascriptContent(implode('', [
Please login to merge, or discard this 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/DomBasicComponentsByDanielGP.php 1 patch
Spacing   +21 added lines, -21 removed lines patch added patch discarded remove patch
@@ -46,7 +46,7 @@  discard block
 block discarded – undo
46 46
         $attributes = '';
47 47
         foreach ($features as $key => $value) {
48 48
             $val = $this->buildAttributesForTagValueArray($value);
49
-            $attributes .= ' ' . $key . '="' . $val . '"';
49
+            $attributes .= ' '.$key.'="'.$val.'"';
50 50
         }
51 51
         return $attributes;
52 52
     }
@@ -57,9 +57,9 @@  discard block
 block discarded – undo
57 57
         if (is_array($value)) {
58 58
             $valA = [];
59 59
             foreach ($value as $key2 => $value2) {
60
-                $valA[] = $key2 . ':' . $value2;
60
+                $valA[] = $key2.':'.$value2;
61 61
             }
62
-            $val = implode(';', $valA) . ';';
62
+            $val = implode(';', $valA).';';
63 63
         }
64 64
         return $val;
65 65
     }
@@ -103,8 +103,8 @@  discard block
 block discarded – undo
103 103
     protected function setClearBoth1px($height = 1)
104 104
     {
105 105
         $divStyle = implode('', [
106
-            'height:' . $height . 'px;',
107
-            'line-height:' . $height . 'px;',
106
+            'height:'.$height.'px;',
107
+            'line-height:'.$height.'px;',
108 108
             'float:none;',
109 109
             'clear:both;',
110 110
             'margin:0px;'
@@ -128,7 +128,7 @@  discard block
 block discarded – undo
128 128
         $legend = $this->setStringIntoTag($sTitle, 'legend', ['style' => $this->setFeedbackStyle($sType)]);
129 129
         return implode('', [
130 130
             ($skipBr ? '' : '<br/>'),
131
-            $this->setStringIntoTag($legend . $sMsg, 'fieldset', ['style' => $this->setFeedbackStyle($sType)]),
131
+            $this->setStringIntoTag($legend.$sMsg, 'fieldset', ['style' => $this->setFeedbackStyle($sType)]),
132 132
         ]);
133 133
     }
134 134
 
@@ -146,10 +146,10 @@  discard block
 block discarded – undo
146 146
     private function setFeedbackStyleArray($color1, $color2)
147 147
     {
148 148
         return [
149
-            'Title' => 'margin-top:-5px;margin-right:20px;padding:5px;background-color:' . $color1
150
-            . ';color:' . $color2 . 'border:medium solid ' . $color1 . ';',
151
-            'Msg'   => 'display:inline;padding-right:5px;padding-bottom:5px;background-color:' . $color2
152
-            . ';color:' . $color1 . ';border:medium solid ' . $color1 . ';',
149
+            'Title' => 'margin-top:-5px;margin-right:20px;padding:5px;background-color:'.$color1
150
+            . ';color:'.$color2.'border:medium solid '.$color1.';',
151
+            'Msg'   => 'display:inline;padding-right:5px;padding-bottom:5px;background-color:'.$color2
152
+            . ';color:'.$color1.';border:medium solid '.$color1.';',
153 153
         ];
154 154
     }
155 155
 
@@ -180,8 +180,8 @@  discard block
 block discarded – undo
180 180
             $gzipCntntOriginal = ob_get_contents();
181 181
             ob_end_clean();
182 182
             $gzipCntnt         = gzcompress($gzipCntntOriginal, 9);
183
-            echo "\x1f\x8b\x08\x00\x00\x00\x00\x00" . substr($gzipCntnt, 0, strlen($gzipCntnt) - 4)
184
-            . pack('V', crc32($gzipCntntOriginal)) . pack('V', strlen($gzipCntntOriginal));
183
+            echo "\x1f\x8b\x08\x00\x00\x00\x00\x00".substr($gzipCntnt, 0, strlen($gzipCntnt) - 4)
184
+            . pack('V', crc32($gzipCntntOriginal)).pack('V', strlen($gzipCntntOriginal));
185 185
         } elseif ($outputType === 'Header') {
186 186
             ob_start();
187 187
             ob_implicit_flush(0);
@@ -205,8 +205,8 @@  discard block
 block discarded – undo
205 205
      */
206 206
     protected function setHeaderNoCache($contentType = 'application/json')
207 207
     {
208
-        header("Content-Type: " . $contentType . "; charset=utf-8");
209
-        header("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT");
208
+        header("Content-Type: ".$contentType."; charset=utf-8");
209
+        header("Last-Modified: ".gmdate("D, d M Y H:i:s")." GMT");
210 210
         header("Cache-Control: no-store, no-cache, must-revalidate");
211 211
         header("Cache-Control: post-check=0, pre-check=0", false);
212 212
         header("Pragma: no-cache");
@@ -221,8 +221,8 @@  discard block
 block discarded – undo
221 221
      */
222 222
     protected function setStringIntoShortTag($sTag, $features = null)
223 223
     {
224
-        return '<' . $sTag . $this->buildAttributesForTag($features)
225
-                . (isset($features['dont_close']) ? '' : '/') . '>';
224
+        return '<'.$sTag.$this->buildAttributesForTag($features)
225
+                . (isset($features['dont_close']) ? '' : '/').'>';
226 226
     }
227 227
 
228 228
     /**
@@ -235,12 +235,12 @@  discard block
 block discarded – undo
235 235
      */
236 236
     protected function setStringIntoTag($sString, $sTag, $features = null)
237 237
     {
238
-        return '<' . $sTag . $this->buildAttributesForTag($features) . '>' . $sString . '</' . $sTag . '>';
238
+        return '<'.$sTag.$this->buildAttributesForTag($features).'>'.$sString.'</'.$sTag.'>';
239 239
     }
240 240
 
241 241
     protected function setViewModernLinkAdd($identifier, $ftrs = null)
242 242
     {
243
-        $btnText     = '<i class="fa fa-plus-square">&nbsp;</i>' . '&nbsp;' . $this->lclMsgCmn('i18n_AddNewRecord');
243
+        $btnText     = '<i class="fa fa-plus-square">&nbsp;</i>'.'&nbsp;'.$this->lclMsgCmn('i18n_AddNewRecord');
244 244
         $tagFeatures = [
245 245
             'href'  => $this->setViewModernLinkAddUrl($identifier, $ftrs),
246 246
             'style' => 'margin: 5px 0px 10px 0px; display: inline-block;',
@@ -253,7 +253,7 @@  discard block
 block discarded – undo
253 253
         $sArgmnts = '';
254 254
         if (isset($ftrs['injectAddArguments'])) {
255 255
             foreach ($ftrs['injectAddArguments'] as $key => $value) {
256
-                $sArgmnts .= '&amp;' . $key . '=' . $value;
256
+                $sArgmnts .= '&amp;'.$key.'='.$value;
257 257
             }
258 258
         }
259 259
         return $sArgmnts;
@@ -263,9 +263,9 @@  discard block
 block discarded – undo
263 263
     {
264 264
         $sArgmnts  = $this->setViewModernLinkAddInjectedArguments($ftrs);
265 265
         $this->initializeSprGlbAndSession();
266
-        $addingUrl = $this->tCmnRequest->server->get('PHP_SELF') . '?view=add_' . $identifier . $sArgmnts;
266
+        $addingUrl = $this->tCmnRequest->server->get('PHP_SELF').'?view=add_'.$identifier.$sArgmnts;
267 267
         if (!isset($ftrs['NoAjax'])) {
268
-            $addingUrl = 'javascript:loadAE(\'' . $addingUrl . '\');';
268
+            $addingUrl = 'javascript:loadAE(\''.$addingUrl.'\');';
269 269
         }
270 270
         return $addingUrl;
271 271
     }
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($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.
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/DomComponentsByDanielGP.php 1 patch
Spacing   +82 added lines, -82 removed lines patch added patch discarded remove patch
@@ -76,7 +76,7 @@  discard block
 block discarded – undo
76 76
                 'class'    => 'input_readonly',
77 77
                 'value'    => $sDefaultValue,
78 78
             ];
79
-            return $this->setStringIntoShortTag('input', $inputFeatures) . $aElements[$sDefaultValue];
79
+            return $this->setStringIntoShortTag('input', $inputFeatures).$aElements[$sDefaultValue];
80 80
         }
81 81
         return $this->setArrayToSelectNotReadOnly($aElements, $sDefaultValue, $selectName, $featArray);
82 82
     }
@@ -122,13 +122,13 @@  discard block
 block discarded – undo
122 122
                         $ditTitle .= ' (0)';
123 123
                     }
124 124
                     $divTab = [
125
-                        'start' => '<div class="tabbertab tabbertabdefault" id="tab_NoData" title="' . $ditTitle . '">',
125
+                        'start' => '<div class="tabbertab tabbertabdefault" id="tab_NoData" title="'.$ditTitle.'">',
126 126
                         'end'   => '</div><!-- from tab_NoData -->',
127 127
                     ];
128 128
                     if (!isset($ftrs['noGlobalTab'])) {
129 129
                         $divTab = [
130
-                            'start' => '<div class="tabber" id="tab">' . $divTab['start'],
131
-                            'end'   => $divTab['end'] . '</div><!-- from global Tab -->',
130
+                            'start' => '<div class="tabber" id="tab">'.$divTab['start'],
131
+                            'end'   => $divTab['end'].'</div><!-- from global Tab -->',
132 132
                         ];
133 133
                     }
134 134
                 }
@@ -151,14 +151,14 @@  discard block
 block discarded – undo
151 151
         }
152 152
         $checkboxFormId = '';
153 153
         if ((isset($ftrs['actions']['checkbox_inlineEdit'])) || (isset($ftrs['actions']['checkbox']))) {
154
-            $checkboxFormId = 'frm' . date('YmdHis');
155
-            $sReturn .= '<form id="' . $checkboxFormId . '" ' . 'name="' . $checkboxFormId
156
-                    . '" method="post" ' . ' action="' . $this->tCmnRequest->server->get('PHP_SELF') . '" >';
154
+            $checkboxFormId = 'frm'.date('YmdHis');
155
+            $sReturn .= '<form id="'.$checkboxFormId.'" '.'name="'.$checkboxFormId
156
+                    . '" method="post" '.' action="'.$this->tCmnRequest->server->get('PHP_SELF').'" >';
157 157
         }
158 158
         $tbl        = [];
159 159
         $tbl['Def'] = '<table'
160
-                . (isset($ftrs['table_style']) ? ' style="' . $ftrs['table_style'] . '"' : '')
161
-                . (isset($ftrs['table_class']) ? ' class="' . $ftrs['table_class'] . '"' : '')
160
+                . (isset($ftrs['table_style']) ? ' style="'.$ftrs['table_style'].'"' : '')
161
+                . (isset($ftrs['table_class']) ? ' class="'.$ftrs['table_class'].'"' : '')
162 162
                 . '>';
163 163
         if (!isset($ftrs['grouping_cell_type'])) {
164 164
             $ftrs['grouping_cell_type'] = 'row';
@@ -240,22 +240,22 @@  discard block
 block discarded – undo
240 240
                     }
241 241
                     $remebered_value = $color_column_value;
242 242
                 }
243
-                $color = ' style="background-color: ' . $ftrs['row_colored_alternated'][$color_no] . ';"';
243
+                $color = ' style="background-color: '.$ftrs['row_colored_alternated'][$color_no].';"';
244 244
             } else {
245 245
                 if (isset($ftrs['RowStyle'])) {
246
-                    $color = ' style="' . $aElements[$rCntr][$ftrs['RowStyle']] . '"';
246
+                    $color = ' style="'.$aElements[$rCntr][$ftrs['RowStyle']].'"';
247 247
                 } else {
248 248
                     $color = '';
249 249
                 }
250 250
             }
251
-            $tbl['tr_Color'] = '<tr' . $color . '>';
251
+            $tbl['tr_Color'] = '<tr'.$color.'>';
252 252
 // Grouping column
253 253
             if (isset($ftrs['grouping_cell'])) {
254 254
                 foreach ($aElements[$rCntr] as $key => $value) {
255 255
                     if (($ftrs['grouping_cell'] == $key) && ($remindGroupValue != $value)) {
256 256
                         switch ($ftrs['grouping_cell_type']) {
257 257
                             case 'row':
258
-                                $sReturn .= $tbl['tr_Color'] . '<td ' . 'colspan="' . $iTableColumns . '">'
258
+                                $sReturn .= $tbl['tr_Color'].'<td '.'colspan="'.$iTableColumns.'">'
259 259
                                         . $this->setStringIntoTag($value, 'div', ['class' => 'rowGroup rounded'])
260 260
                                         . '</td></tr>';
261 261
                                 break;
@@ -276,9 +276,9 @@  discard block
 block discarded – undo
276 276
                                 if (isset($ftrs['grouping_default_tab'])) {
277 277
                                     $sReturn .= ($ftrs['grouping_default_tab'] == $value ? ' tabbertabdefault' : '');
278 278
                                 }
279
-                                $sReturn .= '" id="tab_' . $this->cleanStringForId($value) . '" '
280
-                                        . 'title="' . $value . '">'
281
-                                        . $tbl['Def'] . $tbl['Head'] . $tbl['Header'];
279
+                                $sReturn .= '" id="tab_'.$this->cleanStringForId($value).'" '
280
+                                        . 'title="'.$value.'">'
281
+                                        . $tbl['Def'].$tbl['Head'].$tbl['Header'];
282 282
                                 break;
283 283
                         }
284 284
                         $remindGroupValue = $value;
@@ -305,7 +305,7 @@  discard block
 block discarded – undo
305 305
                     $actionKey = 'view';
306 306
                 }
307 307
                 if (isset($ftrs['action_prefix'])) {
308
-                    $actPrfx   = $ftrs['action_prefix'] . '&amp;';
308
+                    $actPrfx   = $ftrs['action_prefix'].'&amp;';
309 309
                     $actionKey = 'view2';
310 310
                 } else {
311 311
                     $actPrfx = '';
@@ -316,11 +316,11 @@  discard block
 block discarded – undo
316 316
                     }
317 317
                     switch ($key) {
318 318
                         case 'checkbox':
319
-                            $checkboxName  = $value . '[]';
319
+                            $checkboxName  = $value.'[]';
320 320
                             $checkboxNameS = $value;
321
-                            $sReturn .= '&nbsp;<input type="checkbox" name="' . $checkboxName
322
-                                    . '" id="n' . $aElements[$rCntr][$value]
323
-                                    . '" value="' . $aElements[$rCntr][$value] . '" ';
321
+                            $sReturn .= '&nbsp;<input type="checkbox" name="'.$checkboxName
322
+                                    . '" id="n'.$aElements[$rCntr][$value]
323
+                                    . '" value="'.$aElements[$rCntr][$value].'" ';
324 324
                             if (isset($_REQUEST[$checkboxNameS])) {
325 325
                                 if (is_array($_REQUEST[$checkboxNameS])) {
326 326
                                     if (in_array($aElements[$rCntr][$value], $_REQUEST[$checkboxNameS])) {
@@ -338,17 +338,17 @@  discard block
 block discarded – undo
338 338
                             $sReturn .= '/>';
339 339
                             break;
340 340
                         case 'checkbox_inlineEdit':
341
-                            $checkboxName  = $value . '[]';
341
+                            $checkboxName  = $value.'[]';
342 342
                             $checkboxNameS = $value;
343
-                            $sReturn .= '&nbsp;<input type="checkbox" name="' . $checkboxName
344
-                                    . '" id="n' . $aElements[$rCntr][$value] . '" value="'
345
-                                    . $aElements[$rCntr][$value] . '"/>';
343
+                            $sReturn .= '&nbsp;<input type="checkbox" name="'.$checkboxName
344
+                                    . '" id="n'.$aElements[$rCntr][$value].'" value="'
345
+                                    . $aElements[$rCntr][$value].'"/>';
346 346
                             break;
347 347
                         case 'delete':
348
-                            $sReturn .= '<a href="javascript:setQuest(\'' . $value[0] . '\',\'';
349
-                            $iActArgs      = count($value[1]);
348
+                            $sReturn .= '<a href="javascript:setQuest(\''.$value[0].'\',\'';
349
+                            $iActArgs = count($value[1]);
350 350
                             for ($cntr2 = 0; $cntr2 < $iActArgs; $cntr2++) {
351
-                                $sReturn .= $value[1][$cntr2] . '=' . $aElements[$rCntr][$value[1][$cntr2]];
351
+                                $sReturn .= $value[1][$cntr2].'='.$aElements[$rCntr][$value[1][$cntr2]];
352 352
                             }
353 353
                             $sReturn .= '\');"><i class="fa fa-times">&nbsp;</i></a>';
354 354
                             break;
@@ -357,7 +357,7 @@  discard block
 block discarded – undo
357 357
                         case 'schedule':
358 358
                             $vIc = ($key == 'edit' ? 'pencil' : ($key == 'list2' ? 'list' : 'hourglass-half'));
359 359
                             $sReturn .= $this->setDynamicActionToSpecialCell($value, $aElements, [
360
-                                'vIcon'    => 'fa fa-' . $vIc,
360
+                                'vIcon'    => 'fa fa-'.$vIc,
361 361
                                 'aPrefix'  => $actPrfx,
362 362
                                 'aKey'     => $actionKey,
363 363
                                 'rCounter' => $rCntr,
@@ -384,7 +384,7 @@  discard block
 block discarded – undo
384 384
                     switch ($value[1]) {
385 385
                         case '/':
386 386
                             // next variable is only to avoid a long line
387
-                            $shorter                 = [
387
+                            $shorter = [
388 388
                                 $aElements[$rCntr][$value[3]],
389 389
                                 $aElements[$rCntr][$value[4]],
390 390
                             ];
@@ -392,7 +392,7 @@  discard block
 block discarded – undo
392 392
                             break;
393 393
                         case '+':
394 394
                             // next variable is only to avoid a long line
395
-                            $iTemp                   = $this->setArrayValuesAsKey([
395
+                            $iTemp = $this->setArrayValuesAsKey([
396 396
                                 $value[0],
397 397
                                 $value[1],
398 398
                                 $value[2]
@@ -422,58 +422,58 @@  discard block
 block discarded – undo
422 422
         }
423 423
         if (isset($iStartingPageRecord)) {
424 424
             $pgn = $this->setPagination($ftrs['limits'][0], $ftrs['limits'][1], $ftrs['limits'][2]);
425
-            $sReturn .= '<tr>' . $this->setStringIntoTag($pgn, 'th', ['colspan' => $iTableColumns]) . '</tr>';
425
+            $sReturn .= '<tr>'.$this->setStringIntoTag($pgn, 'th', ['colspan' => $iTableColumns]).'</tr>';
426 426
         }
427 427
         $sReturn .= '</tbody></table>';
428 428
         if ($ftrs['grouping_cell_type'] == 'tab') {
429 429
             if (isset($ftrs['showGroupingCounter'])) {
430 430
                 $sReturn .= $this->updateDivTitleName($remindGroupValue, $groupCounter);
431 431
             }
432
-            $sReturn .= '</div><!-- from ' . $remindGroupValue . ' -->';
432
+            $sReturn .= '</div><!-- from '.$remindGroupValue.' -->';
433 433
             if (!isset($ftrs['noGlobalTab'])) {
434 434
                 $sReturn .= '</div><!-- from global tab -->';
435 435
             }
436 436
         }
437 437
         if (isset($ftrs['actions']['checkbox'])) {
438 438
             if (strpos($_REQUEST['view'], 'multiEdit') === false) {
439
-                $sReturn .= '<a href="#" onclick="javascript:checking(\'' . $checkboxFormId
440
-                        . '\',\'' . $checkboxName . '\',true);">Check All</a>&nbsp;&nbsp;'
441
-                        . '<a href="#" onclick="javascript:checking(\'' . $checkboxFormId
442
-                        . '\',\'' . $checkboxName . '\',false);">Uncheck All</a>&nbsp;&nbsp;'
443
-                        . '<input type="hidden" name="action" value="multiEdit_' . $checkboxNameS . '" />';
439
+                $sReturn .= '<a href="#" onclick="javascript:checking(\''.$checkboxFormId
440
+                        . '\',\''.$checkboxName.'\',true);">Check All</a>&nbsp;&nbsp;'
441
+                        . '<a href="#" onclick="javascript:checking(\''.$checkboxFormId
442
+                        . '\',\''.$checkboxName.'\',false);">Uncheck All</a>&nbsp;&nbsp;'
443
+                        . '<input type="hidden" name="action" value="multiEdit_'.$checkboxNameS.'" />';
444 444
                 if (isset($ftrs['hiddenInput'])) {
445 445
                     if (is_array($ftrs['hiddenInput'])) {
446 446
                         foreach ($ftrs['hiddenInput'] as $valueF) {
447
-                            $sReturn .= '<input type="hidden" name="' . $valueF
448
-                                    . '" value="' . $_REQUEST[$valueF] . '" />';
447
+                            $sReturn .= '<input type="hidden" name="'.$valueF
448
+                                    . '" value="'.$_REQUEST[$valueF].'" />';
449 449
                         }
450 450
                     } else {
451
-                        $sReturn .= '<input type="hidden" name="' . $ftrs['hiddenInput']
452
-                                . '" value="' . $_REQUEST[$ftrs['hiddenInput']] . '" />';
451
+                        $sReturn .= '<input type="hidden" name="'.$ftrs['hiddenInput']
452
+                                . '" value="'.$_REQUEST[$ftrs['hiddenInput']].'" />';
453 453
                     }
454 454
                 }
455
-                $sReturn .= '<input style="margin: 0 3em 0 3em;" type="submit" ' . 'value="Edit selected" />';
455
+                $sReturn .= '<input style="margin: 0 3em 0 3em;" type="submit" '.'value="Edit selected" />';
456 456
             }
457 457
             $sReturn .= '</form>';
458 458
         }
459 459
         if (isset($ftrs['actions']['checkbox_inlineEdit'])) {
460
-            $sReturn .= '<a href="#" onclick="javascript:checking(\'' . $checkboxFormId
461
-                    . '\',\'' . $checkboxName . '\',true);">Check All</a>&nbsp;&nbsp;'
462
-                    . '<a href="#" onclick="javascript:checking(\'' . $checkboxFormId
463
-                    . '\',\'' . $checkboxName . '\',false);">Uncheck All</a>&nbsp;&nbsp;';
460
+            $sReturn .= '<a href="#" onclick="javascript:checking(\''.$checkboxFormId
461
+                    . '\',\''.$checkboxName.'\',true);">Check All</a>&nbsp;&nbsp;'
462
+                    . '<a href="#" onclick="javascript:checking(\''.$checkboxFormId
463
+                    . '\',\''.$checkboxName.'\',false);">Uncheck All</a>&nbsp;&nbsp;';
464 464
             if (isset($ftrs['visibleInput'])) {
465 465
                 $sReturn .= $ftrs['visibleInput'];
466 466
             }
467
-            $sReturn .= '<input type="hidden" name="view" value="save_' . $checkboxNameS . '" />';
467
+            $sReturn .= '<input type="hidden" name="view" value="save_'.$checkboxNameS.'" />';
468 468
             if (isset($ftrs['hiddenInput'])) {
469 469
                 if (is_array($ftrs['hiddenInput'])) {
470 470
                     foreach ($ftrs['hiddenInput'] as $valueF) {
471
-                        $sReturn .= '<input type="hidden" name="' . $valueF
472
-                                . '" value="' . $_REQUEST[$valueF] . '" />';
471
+                        $sReturn .= '<input type="hidden" name="'.$valueF
472
+                                . '" value="'.$_REQUEST[$valueF].'" />';
473 473
                     }
474 474
                 } else {
475
-                    $sReturn .= '<input type="hidden" name="' . $ftrs['hiddenInput']
476
-                            . '" value="' . $_REQUEST[$ftrs['hiddenInput']] . '" />';
475
+                    $sReturn .= '<input type="hidden" name="'.$ftrs['hiddenInput']
476
+                            . '" value="'.$_REQUEST[$ftrs['hiddenInput']].'" />';
477 477
                 }
478 478
             }
479 479
             $sReturn .= '<input style="margin: 0 3em 0 3em;" type="submit" value="Store the modification" />';
@@ -493,12 +493,12 @@  discard block
 block discarded – undo
493 493
     {
494 494
         return $this->setStringIntoTag('&nbsp;', 'span', [
495 495
                     'onclick' => implode('', [
496
-                        'javascript:NewCssCal(\'' . $controlName,
496
+                        'javascript:NewCssCal(\''.$controlName,
497 497
                         '\',\'yyyyMMdd\',\'dropdown\',false,\'24\',false);',
498 498
                     ]),
499 499
                     'class'   => 'fa fa-calendar',
500
-                    'id'      => $controlName . '_picker',
501
-                    'style'   => 'cursor:pointer;' . $additionalStyle,
500
+                    'id'      => $controlName.'_picker',
501
+                    'style'   => 'cursor:pointer;'.$additionalStyle,
502 502
         ]);
503 503
     }
504 504
 
@@ -513,12 +513,12 @@  discard block
 block discarded – undo
513 513
     {
514 514
         return $this->setStringIntoTag('&nbsp;', 'span', [
515 515
                     'onclick' => implode('', [
516
-                        'javascript:NewCssCal(\'' . $controlName,
516
+                        'javascript:NewCssCal(\''.$controlName,
517 517
                         '\',\'yyyyMMdd\',\'dropdown\',true,\'24\',true);',
518 518
                     ]),
519 519
                     'class'   => 'fa fa-calendar',
520
-                    'id'      => $controlName . '_picker',
521
-                    'style'   => 'cursor:pointer;' . $additionalStyle,
520
+                    'id'      => $controlName.'_picker',
521
+                    'style'   => 'cursor:pointer;'.$additionalStyle,
522 522
         ]);
523 523
     }
524 524
 
@@ -526,16 +526,16 @@  discard block
 block discarded – undo
526 526
     {
527 527
         $aArgumemts   = [];
528 528
         $aArgumemts[] = $this->tCmnRequest->server->get('PHP_SELF')
529
-                . '?' . $inP['aPrefix'] . $inP['aKey'] . '=' . $value[0];
529
+                . '?'.$inP['aPrefix'].$inP['aKey'].'='.$value[0];
530 530
         $iActArgs     = count($value[1]);
531 531
         for ($counter = 0; $counter < $iActArgs; $counter++) {
532
-            $aArgumemts[] = $value[1][$counter] . '=' . $aElements[$inP['rCounter']][$value[1][$counter]];
532
+            $aArgumemts[] = $value[1][$counter].'='.$aElements[$inP['rCounter']][$value[1][$counter]];
533 533
         }
534 534
         if (isset($inP['Features']['NoAjaxEditing'])) {
535
-            return '<a href="' . implode('&amp;', $aArgumemts) . '"><i class="' . $inP['vIcon'] . '">&nbsp;</i></a>';
535
+            return '<a href="'.implode('&amp;', $aArgumemts).'"><i class="'.$inP['vIcon'].'">&nbsp;</i></a>';
536 536
         }
537
-        return '<a href="#" onclick="javascript:loadAE(\'' . implode('&amp;', $aArgumemts) . '\');">'
538
-                . '<i class="' . $inP['vIcon'] . '">&nbsp;</i></a>';
537
+        return '<a href="#" onclick="javascript:loadAE(\''.implode('&amp;', $aArgumemts).'\');">'
538
+                . '<i class="'.$inP['vIcon'].'">&nbsp;</i></a>';
539 539
     }
540 540
 
541 541
     /**
@@ -549,7 +549,7 @@  discard block
 block discarded – undo
549 549
         if (isset($_REQUEST['specialHook']) && (in_array('noFooter', $_REQUEST['specialHook']))) {
550 550
             return '';
551 551
         }
552
-        return $this->setFooterCommonInjected($footerInjected) . '</body></html>';
552
+        return $this->setFooterCommonInjected($footerInjected).'</body></html>';
553 553
     }
554 554
 
555 555
     protected function setFooterCommonInjected($footerInjected = null)
@@ -581,11 +581,11 @@  discard block
 block discarded – undo
581 581
                 'lang'     => '<html lang="en-US">',
582 582
                 'head'     => '<head>',
583 583
                 'charset'  => '<meta charset="utf-8" />',
584
-                'viewport' => '<meta name="viewport" content="' . implode(', ', [
584
+                'viewport' => '<meta name="viewport" content="'.implode(', ', [
585 585
                     'width=device-width',
586 586
                     'height=device-height',
587 587
                     'initial-scale=1',
588
-                ]) . '" />',
588
+                ]).'" />',
589 589
             ];
590 590
             if (!is_null($headerFeatures)) {
591 591
                 if (is_array($headerFeatures)) {
@@ -613,11 +613,11 @@  discard block
 block discarded – undo
613 613
                                 break;
614 614
                             case 'lang':
615 615
                                 $fixedHeaderElements['lang'] = '<html lang="'
616
-                                        . filter_var($value, FILTER_SANITIZE_STRING) . '">';
616
+                                        . filter_var($value, FILTER_SANITIZE_STRING).'">';
617 617
                                 break;
618 618
                             case 'title':
619
-                                $aFeatures[]                 = '<title>'
620
-                                        . filter_var($value, FILTER_SANITIZE_STRING) . '</title>';
619
+                                $aFeatures[] = '<title>'
620
+                                        . filter_var($value, FILTER_SANITIZE_STRING).'</title>';
621 621
                                 break;
622 622
                         }
623 623
                     }
@@ -630,7 +630,7 @@  discard block
 block discarded – undo
630 630
                             . '</head>'
631 631
                             . '<body>'
632 632
                             . '<p style="background-color:red;color:#FFF;">The parameter sent to '
633
-                            . __FUNCTION__ . ' must be an array</p>'
633
+                            . __FUNCTION__.' must be an array</p>'
634 634
                             . $this->setFooterCommon();
635 635
                     throw new \Exception($sReturn);
636 636
                 }
@@ -658,10 +658,10 @@  discard block
 block discarded – undo
658 658
                 if (isset($features['column_formatting'][$key])) {
659 659
                     switch ($features['column_formatting'][$key]) {
660 660
                         case '@':
661
-                            $sReturn .= 'style="text-align:left;">' . $value;
661
+                            $sReturn .= 'style="text-align:left;">'.$value;
662 662
                             break;
663 663
                         case 'right':
664
-                            $sReturn .= 'style="text-align:right;">' . $value;
664
+                            $sReturn .= 'style="text-align:right;">'.$value;
665 665
                             break;
666 666
                         default:
667 667
                             $sReturn .= '???';
@@ -676,11 +676,11 @@  discard block
 block discarded – undo
676 676
                             if (preg_match("([0-9]{4})-([0-9]{1,2})-([0-9]{1,2})", $value, $regs)) {
677 677
                                 $outputet = true;
678 678
                                 $sReturn .= 'style="text-align:right;width: 10px;">'
679
-                                        . $regs[3] . '.' . $regs[2] . '.' . $regs[1];
679
+                                        . $regs[3].'.'.$regs[2].'.'.$regs[1];
680 680
                             }
681 681
                         }
682 682
                         if (!$outputet) {
683
-                            $sReturn .= 'style="text-align:left;">' . $value;
683
+                            $sReturn .= 'style="text-align:left;">'.$value;
684 684
                         }
685 685
                     }
686 686
                 }
@@ -706,11 +706,11 @@  discard block
 block discarded – undo
706 706
     {
707 707
         $styleToReturn = 'style="text-align: right;">';
708 708
         if (substr($value, 0, 1) === '0') {
709
-            return $styleToReturn . $value;
709
+            return $styleToReturn.$value;
710 710
         }
711 711
         $decimals = $this->setTableCellDecimals($key, $features);
712 712
         $nDc      = ['MinFractionDigits' => $decimals, 'MaxFractionDigits' => $decimals];
713
-        return $styleToReturn . $this->setNumberFormat($value, $nDc);
713
+        return $styleToReturn.$this->setNumberFormat($value, $nDc);
714 714
     }
715 715
 
716 716
     /**
@@ -746,7 +746,7 @@  discard block
 block discarded – undo
746 746
         $this->handleLanguageIntoSession();
747 747
         return '<div class="upperRightBox">'
748 748
                 . '<div style="text-align:right;">'
749
-                . '<span class="flag-icon flag-icon-' . strtolower(substr($this->tCmnSession->get('lang'), -2))
749
+                . '<span class="flag-icon flag-icon-'.strtolower(substr($this->tCmnSession->get('lang'), -2))
750 750
                 . '" style="margin-right:2px;">&nbsp;</span>'
751 751
                 . $aAvailableLanguages[$this->tCmnSession->get('lang')]
752 752
                 . '</div><!-- default Language -->'
@@ -759,16 +759,16 @@  discard block
 block discarded – undo
759 759
         $linkWithoutLanguage = '';
760 760
         $alR                 = $this->tCmnSuperGlobals->query->all();
761 761
         if (count($alR) > 0) {
762
-            $linkWithoutLanguage = $this->setArrayToStringForUrl('&amp;', $alR, ['lang']) . '&amp;';
762
+            $linkWithoutLanguage = $this->setArrayToStringForUrl('&amp;', $alR, ['lang']).'&amp;';
763 763
         }
764 764
         $sReturn = [];
765 765
         foreach ($aAvailableLanguages as $key => $value) {
766 766
             if ($this->tCmnSession->get('lang') !== $key) {
767
-                $sReturn[] = '<a href="?' . $linkWithoutLanguage . 'lang=' . $key . '" style="display:block;">'
768
-                        . '<span class="flag-icon flag-icon-' . strtolower(substr($key, -2))
769
-                        . '" style="margin-right:2px;">&nbsp;</span>' . $value . '</a>';
767
+                $sReturn[] = '<a href="?'.$linkWithoutLanguage.'lang='.$key.'" style="display:block;">'
768
+                        . '<span class="flag-icon flag-icon-'.strtolower(substr($key, -2))
769
+                        . '" style="margin-right:2px;">&nbsp;</span>'.$value.'</a>';
770 770
             }
771 771
         }
772
-        return '<div id="visibleOnHover">' . implode('', $sReturn) . '</div><!-- visibleOnHover end -->';
772
+        return '<div id="visibleOnHover">'.implode('', $sReturn).'</div><!-- visibleOnHover end -->';
773 773
     }
774 774
 }
Please login to merge, or discard this patch.
source/MySQLiByDanielGPstructures.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -49,7 +49,7 @@  discard block
 block discarded – undo
49 49
     private function correctTableWithQuotesAsFieldPrefix($referenceTable)
50 50
     {
51 51
         if ($referenceTable != '') {
52
-            return '`' . str_replace('`', '', $referenceTable) . '`.';
52
+            return '`'.str_replace('`', '', $referenceTable).'`.';
53 53
         }
54 54
         return '';
55 55
     }
@@ -64,7 +64,7 @@  discard block
 block discarded – undo
64 64
      */
65 65
     protected function getFieldOutputTextFK($foreignKeysArray, $value, $iar)
66 66
     {
67
-        $query   = $this->sQueryGenericSelectKeyValue([
67
+        $query = $this->sQueryGenericSelectKeyValue([
68 68
             $foreignKeysArray[$value['COLUMN_NAME']][1],
69 69
             $foreignKeysArray[$value['COLUMN_NAME']][2],
70 70
             $foreignKeysArray[$value['COLUMN_NAME']][0]
@@ -277,8 +277,8 @@  discard block
 block discarded – undo
277 277
     {
278 278
         $filters2 = implode(', ', array_diff($value, ['']));
279 279
         if ($filters2 != '') {
280
-            return '(' . $referenceTable . '`' . $key . '` IN ("'
281
-                    . str_replace(',', '","', str_replace(["'", '"'], '', $filters2)) . '"))';
280
+            return '('.$referenceTable.'`'.$key.'` IN ("'
281
+                    . str_replace(',', '","', str_replace(["'", '"'], '', $filters2)).'"))';
282 282
         }
283 283
         return '';
284 284
     }
@@ -296,7 +296,7 @@  discard block
 block discarded – undo
296 296
         if ((substr($value, 0, 1) == '%') && (substr($value, -1) == '%')) {
297 297
             $fTemp = 'LIKE';
298 298
         }
299
-        return '(`' . $key . '` ' . $fTemp . '"' . $value . '")';
299
+        return '(`'.$key.'` '.$fTemp.'"'.$value.'")';
300 300
     }
301 301
 
302 302
     /**
Please login to merge, or discard this patch.
source/CommonLibLocale.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -67,7 +67,7 @@  discard block
 block discarded – undo
67 67
 
68 68
     protected function getTimestampRaw($returnType)
69 69
     {
70
-        return call_user_func([$this, 'getTimestamp' . ucfirst($returnType)], gettimeofday());
70
+        return call_user_func([$this, 'getTimestamp'.ucfirst($returnType)], gettimeofday());
71 71
     }
72 72
 
73 73
     private function getTimestampString($crtTime)
@@ -108,8 +108,8 @@  discard block
 block discarded – undo
108 108
     private function handleLocalizationCommon()
109 109
     {
110 110
         $this->handleLanguageIntoSession();
111
-        $localizationFile = $this->getCommonLocaleFolder() . '/locale/'
112
-                . $this->tCmnSession->get('lang') . '/LC_MESSAGES/'
111
+        $localizationFile = $this->getCommonLocaleFolder().'/locale/'
112
+                . $this->tCmnSession->get('lang').'/LC_MESSAGES/'
113 113
                 . $this->commonLibFlags['localization_domain']
114 114
                 . '.mo';
115 115
         $extrClass        = new \Gettext\Extractors\Mo();
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/MySQLiByDanielGPqueriesBasic.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -54,13 +54,13 @@  discard block
 block discarded – undo
54 54
         $this->sCleanParameters($parameters);
55 55
         return implode(' ', [
56 56
             'SELECT',
57
-            $parameters[0] . ', ' . $parameters[1],
57
+            $parameters[0].', '.$parameters[1],
58 58
             'FROM',
59 59
             $parameters[2],
60 60
             'GROUP BY',
61 61
             $parameters[0],
62 62
             'ORDER BY',
63
-            $parameters[1] . ';'
63
+            $parameters[1].';'
64 64
         ]);
65 65
     }
66 66
 
@@ -74,7 +74,7 @@  discard block
 block discarded – undo
74 74
     {
75 75
         $sDBs = 'WHERE '
76 76
                 . '`SCHEMA_NAME` NOT IN ("'
77
-                . implode('", "', ['information_schema', 'mysql', 'performance_schema', 'sys']) . '") ';
77
+                . implode('", "', ['information_schema', 'mysql', 'performance_schema', 'sys']).'") ';
78 78
         return 'SELECT '
79 79
                 . '`SCHEMA_NAME` As `Db`, `DEFAULT_CHARACTER_SET_NAME` AS `DbCharset`, '
80 80
                 . '`DEFAULT_COLLATION_NAME` AS `DbCollation` '
@@ -128,15 +128,15 @@  discard block
 block discarded – undo
128 128
     {
129 129
         $this->sCleanParameters($parameters);
130 130
         return 'SELECT * '
131
-                . 'FROM `' . $parameters[0] . '` '
132
-                . 'WHERE ' . $parameters[1] . ';';
131
+                . 'FROM `'.$parameters[0].'` '
132
+                . 'WHERE '.$parameters[1].';';
133 133
     }
134 134
 
135 135
     protected function sQueryToDeleteSingleIdentifier($parameters)
136 136
     {
137 137
         $this->sCleanParameters($parameters);
138 138
         return 'DELETE '
139
-                . 'FROM `' . $parameters[0] . '` '
140
-                . 'WHERE `' . $parameters[1] . '` = "' . $parameters[2] . '";';
139
+                . 'FROM `'.$parameters[0].'` '
140
+                . 'WHERE `'.$parameters[1].'` = "'.$parameters[2].'";';
141 141
     }
142 142
 }
Please login to merge, or discard this patch.