Passed
Push — master ( 439e54...d87366 )
by Daniel
02:41
created
source/DomBasicComponentsByDanielGP.php 1 patch
Spacing   +22 added lines, -22 removed lines patch added patch discarded remove patch
@@ -45,8 +45,8 @@  discard block
 block discarded – undo
45 45
         }
46 46
         $attributes = '';
47 47
         foreach ($features as $key => $value) {
48
-            $val        = $this->buildAttributesForTagValueArray($value);
49
-            $attributes .= ' ' . $key . '="' . $val . '"';
48
+            $val = $this->buildAttributesForTagValueArray($value);
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/CommonLibLocale.php 1 patch
Spacing   +4 added lines, -4 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)
@@ -106,9 +106,9 @@  discard block
 block discarded – undo
106 106
     private function handleLocalizationCommon()
107 107
     {
108 108
         $this->handleLanguageIntoSession();
109
-        $localizationFile = $this->getCommonLocaleFolder() . '/locale/'
110
-            . $this->tCmnSession->get('lang') . '/LC_MESSAGES/'
111
-            . $this->commonLibFlags['localization_domain'] . '.mo';
109
+        $localizationFile = $this->getCommonLocaleFolder().'/locale/'
110
+            . $this->tCmnSession->get('lang').'/LC_MESSAGES/'
111
+            . $this->commonLibFlags['localization_domain'].'.mo';
112 112
         $translations     = new \Gettext\Translations;
113 113
         $translations->addFromMoFile($localizationFile);
114 114
         $this->tCmnLb     = new \Gettext\Translator();
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/DomPaginationByDanielGP.php 1 patch
Spacing   +11 added lines, -11 removed lines patch added patch discarded remove patch
@@ -85,7 +85,7 @@  discard block
 block discarded – undo
85 85
                 'class'    => 'input_readonly',
86 86
                 'value'    => $sDefaultValue,
87 87
             ];
88
-            return $this->setStringIntoShortTag('input', $inputFeatures) . $aElements[$sDefaultValue];
88
+            return $this->setStringIntoShortTag('input', $inputFeatures).$aElements[$sDefaultValue];
89 89
         }
90 90
         return $this->setArrayToSelectNotReadOnly($aElements, $sDefaultValue, $selectName, $featArray);
91 91
     }
@@ -122,21 +122,21 @@  discard block
 block discarded – undo
122 122
         $sReturn             = null;
123 123
         $iRecPrPg            = min($iRecPrPg, $iAllRec);
124 124
         $iStartingPageRecord = $this->setStartingPageRecord($iCrtPgNo, $iRecPrPg, $iAllRec, $bKpFlPg);
125
-        $sReturn             .= '<span style="float:left;font-size:smaller;margin-top:1px; margin-right:1px;">'
125
+        $sReturn .= '<span style="float:left;font-size:smaller;margin-top:1px; margin-right:1px;">'
126 126
             . $this->setStringIntoTag($iAllRec, 'b')
127 127
             . $this->lclMsgCmn('i18n_RecordsAvailableNowDisplaying')
128 128
             . $this->setStringIntoTag(($iStartingPageRecord + 1), 'b')
129
-            . ' - ' . $this->setStringIntoTag(min($iAllRec, ($iStartingPageRecord + $iRecPrPg)), 'b')
129
+            . ' - '.$this->setStringIntoTag(min($iAllRec, ($iStartingPageRecord + $iRecPrPg)), 'b')
130 130
             . ' </span>';
131 131
         switch ($iCrtPgNo) {
132 132
             case 'first':
133
-                $iCrtPgNo = ceil(($iStartingPageRecord + 1 ) / $iRecPrPg);
133
+                $iCrtPgNo = ceil(($iStartingPageRecord + 1) / $iRecPrPg);
134 134
                 break;
135 135
             case 'last':
136 136
                 $iCrtPgNo = ceil($iAllRec / $iRecPrPg);
137 137
                 break;
138 138
         }
139
-        $sReturn              .= '<span style="float:right;font-size:smaller;margin-top:1px; margin-right:1px;">';
139
+        $sReturn .= '<span style="float:right;font-size:smaller;margin-top:1px; margin-right:1px;">';
140 140
         $iNumberOfPages       = ceil($iAllRec / $iRecPrPg);
141 141
         $sAdditionalArguments = '';
142 142
         if (isset($_GET)) {
@@ -150,7 +150,7 @@  discard block
 block discarded – undo
150 150
         }
151 151
         if ($iCrtPgNo != 1) {
152 152
             $sReturn .= $this->setStringIntoTag($this->lclMsgCmn('i18n_Previous'), 'a', [
153
-                'href'  => ('?page=' . ($iCrtPgNo - 1 ) . $sAdditionalArguments ),
153
+                'href'  => ('?page='.($iCrtPgNo - 1).$sAdditionalArguments),
154 154
                 'class' => 'pagination'
155 155
             ]);
156 156
         } else {
@@ -162,7 +162,7 @@  discard block
 block discarded – undo
162 162
         for ($counter = 1; $counter <= $iNumberOfPages; $counter++) {
163 163
             $pages2display[$counter] = $counter;
164 164
         }
165
-        $sReturn .= '<span class="pagination"><form method="get" action="' . $_SERVER['SCRIPT_NAME'] . '">';
165
+        $sReturn .= '<span class="pagination"><form method="get" action="'.$_SERVER['SCRIPT_NAME'].'">';
166 166
         $sReturn .= $this->setArrayToSelect($pages2display, @$_REQUEST['page']
167 167
             , 'page', ['size' => 1, 'autosubmit', 'id_no' => mt_rand()]);
168 168
         if (isset($_GET)) {
@@ -172,7 +172,7 @@  discard block
 block discarded – undo
172 172
                         foreach ($value as $value2) {
173 173
                             $sReturn .= $this->setStringIntoShortTag('input', [
174 174
                                 'type'  => 'hidden',
175
-                                'name'  => $key . '[]',
175
+                                'name'  => $key.'[]',
176 176
                                 'value' => $value2,
177 177
                             ]);
178 178
                         }
@@ -189,7 +189,7 @@  discard block
 block discarded – undo
189 189
         $sReturn .= '</form></span>';
190 190
         if ($iCrtPgNo != $iNumberOfPages) {
191 191
             $sReturn .= $this->setStringIntoTag($this->lclMsgCmn('i18n_Next'), 'a', [
192
-                'href'  => ('?page=' . ($iCrtPgNo + 1 ) . $sAdditionalArguments ),
192
+                'href'  => ('?page='.($iCrtPgNo + 1).$sAdditionalArguments),
193 193
                 'class' => 'pagination',
194 194
             ]);
195 195
         } else {
@@ -215,7 +215,7 @@  discard block
 block discarded – undo
215 215
         , $iAllRecords, $bKeepFullPage = true)
216 216
     {
217 217
         if (isset($_REQUEST['page'])) {
218
-            $iStartingPageRecord = ($_REQUEST['page'] - 1 ) * $iRecordsPerPage;
218
+            $iStartingPageRecord = ($_REQUEST['page'] - 1) * $iRecordsPerPage;
219 219
         } else {
220 220
             switch ($sDefaultPageNo) {
221 221
                 case 'last':
@@ -227,7 +227,7 @@  discard block
 block discarded – undo
227 227
                     break;
228 228
             }
229 229
         }
230
-        if (($bKeepFullPage ) && (($iStartingPageRecord + $iRecordsPerPage ) > $iAllRecords)) {
230
+        if (($bKeepFullPage) && (($iStartingPageRecord + $iRecordsPerPage) > $iAllRecords)) {
231 231
             $iStartingPageRecord = $iAllRecords - $iRecordsPerPage;
232 232
         }
233 233
         return max(0, $iStartingPageRecord);
Please login to merge, or discard this patch.
source/DomComponentsByDanielGP.php 1 patch
Spacing   +93 added lines, -93 removed lines patch added patch discarded remove patch
@@ -62,13 +62,13 @@  discard block
 block discarded – undo
62 62
                         $ditTitle .= ' (0)';
63 63
                     }
64 64
                     $divTab = [
65
-                        'start' => '<div class="tabbertab tabbertabdefault" id="tab_NoData" title="' . $ditTitle . '">',
65
+                        'start' => '<div class="tabbertab tabbertabdefault" id="tab_NoData" title="'.$ditTitle.'">',
66 66
                         'end'   => '</div><!-- from tab_NoData -->',
67 67
                     ];
68 68
                     if (!isset($ftrs['noGlobalTab'])) {
69 69
                         $divTab = [
70
-                            'start' => '<div class="tabber" id="tab">' . $divTab['start'],
71
-                            'end'   => $divTab['end'] . '</div><!-- from global Tab -->',
70
+                            'start' => '<div class="tabber" id="tab">'.$divTab['start'],
71
+                            'end'   => $divTab['end'].'</div><!-- from global Tab -->',
72 72
                         ];
73 73
                     }
74 74
                 }
@@ -91,14 +91,14 @@  discard block
 block discarded – undo
91 91
         }
92 92
         $checkboxFormId = '';
93 93
         if ((isset($ftrs['actions']['checkbox_inlineEdit'])) || (isset($ftrs['actions']['checkbox']))) {
94
-            $checkboxFormId = 'frm' . date('YmdHis');
95
-            $sReturn        .= '<form id="' . $checkboxFormId . '" name="' . $checkboxFormId
96
-                . '" method="post" ' . ' action="' . $this->tCmnRequest->server->get('PHP_SELF') . '" >';
94
+            $checkboxFormId = 'frm'.date('YmdHis');
95
+            $sReturn .= '<form id="'.$checkboxFormId.'" name="'.$checkboxFormId
96
+                . '" method="post" '.' action="'.$this->tCmnRequest->server->get('PHP_SELF').'" >';
97 97
         }
98 98
         $tbl        = [];
99 99
         $tbl['Def'] = '<table'
100
-            . (isset($ftrs['table_style']) ? ' style="' . $ftrs['table_style'] . '"' : '')
101
-            . (isset($ftrs['table_class']) ? ' class="' . $ftrs['table_class'] . '"' : '')
100
+            . (isset($ftrs['table_style']) ? ' style="'.$ftrs['table_style'].'"' : '')
101
+            . (isset($ftrs['table_class']) ? ' class="'.$ftrs['table_class'].'"' : '')
102 102
             . '>';
103 103
         if (!isset($ftrs['grouping_cell_type'])) {
104 104
             $ftrs['grouping_cell_type'] = 'row';
@@ -139,7 +139,7 @@  discard block
 block discarded – undo
139 139
                     $sReturn .= $tbl['Head'];
140 140
                 }
141 141
                 if (isset($iStartingPageRecord)) {
142
-                    $pgn     = $this->setPagination($ftrs['limits'][0], $ftrs['limits'][1], $ftrs['limits'][2], $bKpFlPge);
142
+                    $pgn = $this->setPagination($ftrs['limits'][0], $ftrs['limits'][1], $ftrs['limits'][2], $bKpFlPge);
143 143
                     $sReturn .= $this->setStringIntoTag($this->setStringIntoTag($pgn, 'th', [
144 144
                             'colspan' => $iTableColumns
145 145
                         ]), 'tr');
@@ -181,22 +181,22 @@  discard block
 block discarded – undo
181 181
                     }
182 182
                     $remebered_value = $color_column_value;
183 183
                 }
184
-                $color = ' style="background-color: ' . $ftrs['row_colored_alternated'][$color_no] . ';"';
184
+                $color = ' style="background-color: '.$ftrs['row_colored_alternated'][$color_no].';"';
185 185
             } else {
186 186
                 if (isset($ftrs['RowStyle'])) {
187
-                    $color = ' style="' . $aElements[$rCntr][$ftrs['RowStyle']] . '"';
187
+                    $color = ' style="'.$aElements[$rCntr][$ftrs['RowStyle']].'"';
188 188
                 } else {
189 189
                     $color = '';
190 190
                 }
191 191
             }
192
-            $tbl['tr_Color'] = '<tr' . $color . '>';
192
+            $tbl['tr_Color'] = '<tr'.$color.'>';
193 193
 // Grouping column
194 194
             if (isset($ftrs['grouping_cell'])) {
195 195
                 foreach ($aElements[$rCntr] as $key => $value) {
196 196
                     if (($ftrs['grouping_cell'] == $key) && ($remindGroupValue != $value)) {
197 197
                         switch ($ftrs['grouping_cell_type']) {
198 198
                             case 'row':
199
-                                $sReturn .= $tbl['tr_Color'] . '<td ' . 'colspan="' . $iTableColumns . '">'
199
+                                $sReturn .= $tbl['tr_Color'].'<td '.'colspan="'.$iTableColumns.'">'
200 200
                                     . $this->setStringIntoTag($value, 'div', ['class' => 'rowGroup rounded'])
201 201
                                     . '</td></tr>';
202 202
                                 break;
@@ -208,7 +208,7 @@  discard block
 block discarded – undo
208 208
                                 } else {
209 209
                                     $sReturn .= '</tbody></table>';
210 210
                                     if (isset($ftrs['showGroupingCounter'])) {
211
-                                        $sReturn      .= $this->updateDivTitleName($remindGroupValue, $groupCounter);
211
+                                        $sReturn .= $this->updateDivTitleName($remindGroupValue, $groupCounter);
212 212
                                         $groupCounter = 0;
213 213
                                     }
214 214
                                     $sReturn .= '</div>';
@@ -217,9 +217,9 @@  discard block
 block discarded – undo
217 217
                                 if (isset($ftrs['grouping_default_tab'])) {
218 218
                                     $sReturn .= ($ftrs['grouping_default_tab'] == $value ? ' tabbertabdefault' : '');
219 219
                                 }
220
-                                $sReturn .= '" id="tab_' . $this->cleanStringForId($value) . '" '
221
-                                    . 'title="' . $value . '">'
222
-                                    . $tbl['Def'] . $tbl['Head'] . $tbl['Header'];
220
+                                $sReturn .= '" id="tab_'.$this->cleanStringForId($value).'" '
221
+                                    . 'title="'.$value.'">'
222
+                                    . $tbl['Def'].$tbl['Head'].$tbl['Header'];
223 223
                                 break;
224 224
                         }
225 225
                         $remindGroupValue = $value;
@@ -233,12 +233,12 @@  discard block
 block discarded – undo
233 233
                     }
234 234
                 }
235 235
             }
236
-            $sReturn       .= $tbl['tr_Color'];
236
+            $sReturn .= $tbl['tr_Color'];
237 237
 // Action column
238 238
             $checkboxName  = '';
239 239
             $checkboxNameS = '';
240 240
             if (isset($ftrs['actions'])) {
241
-                $sReturn         .= '<td style="white-space:nowrap;">';
241
+                $sReturn .= '<td style="white-space:nowrap;">';
242 242
                 $action_argument = 0;
243 243
                 if (isset($ftrs['actions']['key'])) {
244 244
                     $actionKey = $ftrs['actions']['key'];
@@ -246,7 +246,7 @@  discard block
 block discarded – undo
246 246
                     $actionKey = 'view';
247 247
                 }
248 248
                 if (isset($ftrs['action_prefix'])) {
249
-                    $actPrfx   = $ftrs['action_prefix'] . '&amp;';
249
+                    $actPrfx   = $ftrs['action_prefix'].'&amp;';
250 250
                     $actionKey = 'view2';
251 251
                 } else {
252 252
                     $actPrfx = '';
@@ -257,11 +257,11 @@  discard block
 block discarded – undo
257 257
                     }
258 258
                     switch ($key) {
259 259
                         case 'checkbox':
260
-                            $checkboxName  = $value . '[]';
260
+                            $checkboxName  = $value.'[]';
261 261
                             $checkboxNameS = $value;
262
-                            $sReturn       .= '&nbsp;<input type="checkbox" name="' . $checkboxName
263
-                                . '" id="n' . $aElements[$rCntr][$value]
264
-                                . '" value="' . $aElements[$rCntr][$value] . '" ';
262
+                            $sReturn .= '&nbsp;<input type="checkbox" name="'.$checkboxName
263
+                                . '" id="n'.$aElements[$rCntr][$value]
264
+                                . '" value="'.$aElements[$rCntr][$value].'" ';
265 265
                             if (isset($_REQUEST[$checkboxNameS])) {
266 266
                                 if (is_array($_REQUEST[$checkboxNameS])) {
267 267
                                     if (in_array($aElements[$rCntr][$value], $_REQUEST[$checkboxNameS])) {
@@ -276,29 +276,29 @@  discard block
 block discarded – undo
276 276
                             if (strpos($_REQUEST['view'], 'multiEdit') !== false) {
277 277
                                 $sReturn .= 'disabled="disabled" ';
278 278
                             }
279
-                            $sReturn       .= '/>';
279
+                            $sReturn .= '/>';
280 280
                             break;
281 281
                         case 'checkbox_inlineEdit':
282
-                            $checkboxName  = $value . '[]';
282
+                            $checkboxName  = $value.'[]';
283 283
                             $checkboxNameS = $value;
284
-                            $sReturn       .= '&nbsp;<input type="checkbox" name="' . $checkboxName
285
-                                . '" id="n' . $aElements[$rCntr][$value] . '" value="'
286
-                                . $aElements[$rCntr][$value] . '"/>';
284
+                            $sReturn .= '&nbsp;<input type="checkbox" name="'.$checkboxName
285
+                                . '" id="n'.$aElements[$rCntr][$value].'" value="'
286
+                                . $aElements[$rCntr][$value].'"/>';
287 287
                             break;
288 288
                         case 'delete':
289
-                            $sReturn       .= '<a href="#" onclick="javascript:setQuest(\'' . $value[0] . '\',\'';
290
-                            $iActArgs      = count($value[1]);
289
+                            $sReturn .= '<a href="#" onclick="javascript:setQuest(\''.$value[0].'\',\'';
290
+                            $iActArgs = count($value[1]);
291 291
                             for ($cntr2 = 0; $cntr2 < $iActArgs; $cntr2++) {
292
-                                $sReturn .= $value[1][$cntr2] . '=' . $aElements[$rCntr][$value[1][$cntr2]];
292
+                                $sReturn .= $value[1][$cntr2].'='.$aElements[$rCntr][$value[1][$cntr2]];
293 293
                             }
294
-                            $sReturn .= '\');" id="' . $key . $rCntr . '"><i class="fa fa-times">&nbsp;</i></a>';
294
+                            $sReturn .= '\');" id="'.$key.$rCntr.'"><i class="fa fa-times">&nbsp;</i></a>';
295 295
                             break;
296 296
                         case 'edit':
297 297
                         case 'list2':
298 298
                         case 'schedule':
299
-                            $vIc     = ($key == 'edit' ? 'pencil' : ($key == 'list2' ? 'list' : 'hourglass-half'));
299
+                            $vIc = ($key == 'edit' ? 'pencil' : ($key == 'list2' ? 'list' : 'hourglass-half'));
300 300
                             $sReturn .= $this->setDynamicActionToSpecialCell($value, $aElements, [
301
-                                'vIcon'    => 'fa fa-' . $vIc,
301
+                                'vIcon'    => 'fa fa-'.$vIc,
302 302
                                 'aPrefix'  => $actPrfx,
303 303
                                 'aKey'     => $actionKey,
304 304
                                 'rCounter' => $rCntr,
@@ -326,7 +326,7 @@  discard block
 block discarded – undo
326 326
                     switch ($value[1]) {
327 327
                         case '/':
328 328
                             // next variable is only to avoid a long line
329
-                            $shorter                 = [
329
+                            $shorter = [
330 330
                                 $aElements[$rCntr][$value[3]],
331 331
                                 $aElements[$rCntr][$value[4]],
332 332
                             ];
@@ -334,7 +334,7 @@  discard block
 block discarded – undo
334 334
                             break;
335 335
                         case '+':
336 336
                             // next variable is only to avoid a long line
337
-                            $iTemp                   = $this->setArrayValuesAsKey([
337
+                            $iTemp = $this->setArrayValuesAsKey([
338 338
                                 $value[0],
339 339
                                 $value[1],
340 340
                                 $value[2]
@@ -351,7 +351,7 @@  discard block
 block discarded – undo
351 351
                     }
352 352
                     if ($value[0] == '%') {
353 353
                         $rowComputed[$key] = ($aElements[$rCntr][$key] * 100);
354
-                        $dec               -= 2;
354
+                        $dec -= 2;
355 355
                     } else {
356 356
                         $rowComputed[$key] = $aElements[$rCntr][$key];
357 357
                     }
@@ -363,59 +363,59 @@  discard block
 block discarded – undo
363 363
             $sReturn .= '</tr>';
364 364
         }
365 365
         if (isset($iStartingPageRecord)) {
366
-            $pgn     = $this->setPagination($ftrs['limits'][0], $ftrs['limits'][1], $ftrs['limits'][2]);
367
-            $sReturn .= '<tr>' . $this->setStringIntoTag($pgn, 'th', ['colspan' => $iTableColumns]) . '</tr>';
366
+            $pgn = $this->setPagination($ftrs['limits'][0], $ftrs['limits'][1], $ftrs['limits'][2]);
367
+            $sReturn .= '<tr>'.$this->setStringIntoTag($pgn, 'th', ['colspan' => $iTableColumns]).'</tr>';
368 368
         }
369 369
         $sReturn .= '</tbody></table>';
370 370
         if ($ftrs['grouping_cell_type'] == 'tab') {
371 371
             if (isset($ftrs['showGroupingCounter'])) {
372 372
                 $sReturn .= $this->updateDivTitleName($remindGroupValue, $groupCounter);
373 373
             }
374
-            $sReturn .= '</div><!-- from ' . $remindGroupValue . ' -->';
374
+            $sReturn .= '</div><!-- from '.$remindGroupValue.' -->';
375 375
             if (!isset($ftrs['noGlobalTab'])) {
376 376
                 $sReturn .= '</div><!-- from global tab -->';
377 377
             }
378 378
         }
379 379
         if (isset($ftrs['actions']['checkbox'])) {
380 380
             if (strpos($_REQUEST['view'], 'multiEdit') === false) {
381
-                $sReturn .= '<a href="#" onclick="javascript:checking(\'' . $checkboxFormId
382
-                    . '\',\'' . $checkboxName . '\',true);">Check All</a>&nbsp;&nbsp;'
383
-                    . '<a href="#" onclick="javascript:checking(\'' . $checkboxFormId
384
-                    . '\',\'' . $checkboxName . '\',false);">Uncheck All</a>&nbsp;&nbsp;'
385
-                    . '<input type="hidden" name="action" value="multiEdit_' . $checkboxNameS . '" />';
381
+                $sReturn .= '<a href="#" onclick="javascript:checking(\''.$checkboxFormId
382
+                    . '\',\''.$checkboxName.'\',true);">Check All</a>&nbsp;&nbsp;'
383
+                    . '<a href="#" onclick="javascript:checking(\''.$checkboxFormId
384
+                    . '\',\''.$checkboxName.'\',false);">Uncheck All</a>&nbsp;&nbsp;'
385
+                    . '<input type="hidden" name="action" value="multiEdit_'.$checkboxNameS.'" />';
386 386
                 if (isset($ftrs['hiddenInput'])) {
387 387
                     if (is_array($ftrs['hiddenInput'])) {
388 388
                         foreach ($ftrs['hiddenInput'] as $valueF) {
389
-                            $sReturn .= '<input type="hidden" name="' . $valueF
390
-                                . '" value="' . $_REQUEST[$valueF] . '" />';
389
+                            $sReturn .= '<input type="hidden" name="'.$valueF
390
+                                . '" value="'.$_REQUEST[$valueF].'" />';
391 391
                         }
392 392
                     } else {
393
-                        $sReturn .= '<input type="hidden" name="' . $ftrs['hiddenInput']
394
-                            . '" value="' . $_REQUEST[$ftrs['hiddenInput']] . '" />';
393
+                        $sReturn .= '<input type="hidden" name="'.$ftrs['hiddenInput']
394
+                            . '" value="'.$_REQUEST[$ftrs['hiddenInput']].'" />';
395 395
                     }
396 396
                 }
397
-                $sReturn .= '<input style="margin: 0 3em 0 3em;" type="submit" ' . 'value="Edit selected" />';
397
+                $sReturn .= '<input style="margin: 0 3em 0 3em;" type="submit" '.'value="Edit selected" />';
398 398
             }
399 399
             $sReturn .= '</form>';
400 400
         }
401 401
         if (isset($ftrs['actions']['checkbox_inlineEdit'])) {
402
-            $sReturn .= '<a href="#" onclick="javascript:checking(\'' . $checkboxFormId
403
-                . '\',\'' . $checkboxName . '\',true);">Check All</a>&nbsp;&nbsp;'
404
-                . '<a href="#" onclick="javascript:checking(\'' . $checkboxFormId
405
-                . '\',\'' . $checkboxName . '\',false);">Uncheck All</a>&nbsp;&nbsp;';
402
+            $sReturn .= '<a href="#" onclick="javascript:checking(\''.$checkboxFormId
403
+                . '\',\''.$checkboxName.'\',true);">Check All</a>&nbsp;&nbsp;'
404
+                . '<a href="#" onclick="javascript:checking(\''.$checkboxFormId
405
+                . '\',\''.$checkboxName.'\',false);">Uncheck All</a>&nbsp;&nbsp;';
406 406
             if (isset($ftrs['visibleInput'])) {
407 407
                 $sReturn .= $ftrs['visibleInput'];
408 408
             }
409
-            $sReturn .= '<input type="hidden" name="view" value="save_' . $checkboxNameS . '" />';
409
+            $sReturn .= '<input type="hidden" name="view" value="save_'.$checkboxNameS.'" />';
410 410
             if (isset($ftrs['hiddenInput'])) {
411 411
                 if (is_array($ftrs['hiddenInput'])) {
412 412
                     foreach ($ftrs['hiddenInput'] as $valueF) {
413
-                        $sReturn .= '<input type="hidden" name="' . $valueF
414
-                            . '" value="' . $_REQUEST[$valueF] . '" />';
413
+                        $sReturn .= '<input type="hidden" name="'.$valueF
414
+                            . '" value="'.$_REQUEST[$valueF].'" />';
415 415
                     }
416 416
                 } else {
417
-                    $sReturn .= '<input type="hidden" name="' . $ftrs['hiddenInput']
418
-                        . '" value="' . $_REQUEST[$ftrs['hiddenInput']] . '" />';
417
+                    $sReturn .= '<input type="hidden" name="'.$ftrs['hiddenInput']
418
+                        . '" value="'.$_REQUEST[$ftrs['hiddenInput']].'" />';
419 419
                 }
420 420
             }
421 421
             $sReturn .= '<input style="margin: 0 3em 0 3em;" type="submit" value="Store the modification" />';
@@ -435,12 +435,12 @@  discard block
 block discarded – undo
435 435
     {
436 436
         return $this->setStringIntoTag('&nbsp;', 'span', [
437 437
                 'onclick' => implode('', [
438
-                    'javascript:NewCssCal(\'' . $controlName,
438
+                    'javascript:NewCssCal(\''.$controlName,
439 439
                     '\',\'yyyyMMdd\',\'dropdown\',false,\'24\',false);',
440 440
                 ]),
441 441
                 'class'   => 'fa fa-calendar',
442
-                'id'      => $controlName . '_picker',
443
-                'style'   => 'cursor:pointer;' . $additionalStyle,
442
+                'id'      => $controlName.'_picker',
443
+                'style'   => 'cursor:pointer;'.$additionalStyle,
444 444
         ]);
445 445
     }
446 446
 
@@ -455,30 +455,30 @@  discard block
 block discarded – undo
455 455
     {
456 456
         return $this->setStringIntoTag('&nbsp;', 'span', [
457 457
                 'onclick' => implode('', [
458
-                    'javascript:NewCssCal(\'' . $controlName,
458
+                    'javascript:NewCssCal(\''.$controlName,
459 459
                     '\',\'yyyyMMdd\',\'dropdown\',true,\'24\',true);',
460 460
                 ]),
461 461
                 'class'   => 'fa fa-calendar',
462
-                'id'      => $controlName . '_picker',
463
-                'style'   => 'cursor:pointer;' . $additionalStyle,
462
+                'id'      => $controlName.'_picker',
463
+                'style'   => 'cursor:pointer;'.$additionalStyle,
464 464
         ]);
465 465
     }
466 466
 
467 467
     private function setDynamicActionToSpecialCell($val, $aElements, $inP)
468 468
     {
469 469
         $aArgumemts   = [];
470
-        $aArgumemts[] = $this->tCmnSuperGlobals->getScriptName() . '?' . $inP['aPrefix'] . $inP['aKey'] . '=' . $val[0];
470
+        $aArgumemts[] = $this->tCmnSuperGlobals->getScriptName().'?'.$inP['aPrefix'].$inP['aKey'].'='.$val[0];
471 471
         $iActArgs     = count($val[1]);
472 472
         for ($counter = 0; $counter < $iActArgs; $counter++) {
473
-            $aArgumemts[] = $val[1][$counter] . '=' . $aElements[$inP['rCounter']][$val[1][$counter]];
473
+            $aArgumemts[] = $val[1][$counter].'='.$aElements[$inP['rCounter']][$val[1][$counter]];
474 474
         }
475
-        $id = $inP['key'] . $inP['rCounter'];
475
+        $id = $inP['key'].$inP['rCounter'];
476 476
         if (isset($inP['Features']['NoAjaxEditing'])) {
477
-            return '<a href="' . implode('&amp;', $aArgumemts) . '" id="' . $id . '"><i class="'
478
-                . $inP['vIcon'] . '">&nbsp;</i></a>';
477
+            return '<a href="'.implode('&amp;', $aArgumemts).'" id="'.$id.'"><i class="'
478
+                . $inP['vIcon'].'">&nbsp;</i></a>';
479 479
         }
480
-        return '<a href="#" onclick="javascript:loadAE(\'' . implode('&amp;', $aArgumemts) . '\');"'
481
-            . ' id="' . $id . '"><i class="' . $inP['vIcon'] . '">&nbsp;</i></a>';
480
+        return '<a href="#" onclick="javascript:loadAE(\''.implode('&amp;', $aArgumemts).'\');"'
481
+            . ' id="'.$id.'"><i class="'.$inP['vIcon'].'">&nbsp;</i></a>';
482 482
     }
483 483
 
484 484
     /**
@@ -493,7 +493,7 @@  discard block
 block discarded – undo
493 493
         if (!is_null($sHK) && (in_array('noHeader', $sHK))) {
494 494
             return '';
495 495
         }
496
-        return $this->setFooterCommonInjected($footerInjected) . '</body></html>';
496
+        return $this->setFooterCommonInjected($footerInjected).'</body></html>';
497 497
     }
498 498
 
499 499
     protected function setFooterCommonInjected($footerInjected = null)
@@ -526,11 +526,11 @@  discard block
 block discarded – undo
526 526
                 'lang'     => '<html lang="en-US">',
527 527
                 'head'     => '<head>',
528 528
                 'charset'  => '<meta charset="utf-8" />',
529
-                'viewport' => '<meta name="viewport" content="' . implode(', ', [
529
+                'viewport' => '<meta name="viewport" content="'.implode(', ', [
530 530
                     'width=device-width',
531 531
                     'height=device-height',
532 532
                     'initial-scale=1',
533
-                ]) . '" />',
533
+                ]).'" />',
534 534
             ];
535 535
             if (!is_null($headerFeatures)) {
536 536
                 if (is_array($headerFeatures)) {
@@ -558,11 +558,11 @@  discard block
 block discarded – undo
558 558
                                 break;
559 559
                             case 'lang':
560 560
                                 $fixedHeaderElements['lang'] = '<html lang="'
561
-                                    . filter_var($value, FILTER_SANITIZE_STRING) . '">';
561
+                                    . filter_var($value, FILTER_SANITIZE_STRING).'">';
562 562
                                 break;
563 563
                             case 'title':
564
-                                $aFeatures[]                 = '<title>'
565
-                                    . filter_var($value, FILTER_SANITIZE_STRING) . '</title>';
564
+                                $aFeatures[] = '<title>'
565
+                                    . filter_var($value, FILTER_SANITIZE_STRING).'</title>';
566 566
                                 break;
567 567
                         }
568 568
                     }
@@ -575,7 +575,7 @@  discard block
 block discarded – undo
575 575
                         . '</head>'
576 576
                         . '<body>'
577 577
                         . '<p style="background-color:red;color:#FFF;">The parameter sent to '
578
-                        . __FUNCTION__ . ' must be an array</p>'
578
+                        . __FUNCTION__.' must be an array</p>'
579 579
                         . $this->setFooterCommon();
580 580
                     throw new \Exception($sReturn);
581 581
                 }
@@ -603,10 +603,10 @@  discard block
 block discarded – undo
603 603
                 if (isset($features['column_formatting'][$key])) {
604 604
                     switch ($features['column_formatting'][$key]) {
605 605
                         case '@':
606
-                            $sReturn .= 'style="text-align:left;">' . $value;
606
+                            $sReturn .= 'style="text-align:left;">'.$value;
607 607
                             break;
608 608
                         case 'right':
609
-                            $sReturn .= 'style="text-align:right;">' . $value;
609
+                            $sReturn .= 'style="text-align:right;">'.$value;
610 610
                             break;
611 611
                         default:
612 612
                             $sReturn .= '???';
@@ -620,12 +620,12 @@  discard block
 block discarded – undo
620 620
                         if ((strpos($value, '-') !== false) && (strlen($value) == 10)) {
621 621
                             if (preg_match("([0-9]{4})-([0-9]{1,2})-([0-9]{1,2})", $value, $regs)) {
622 622
                                 $outputet = true;
623
-                                $sReturn  .= 'style="text-align:right;width: 10px;">'
624
-                                    . $regs[3] . '.' . $regs[2] . '.' . $regs[1];
623
+                                $sReturn .= 'style="text-align:right;width: 10px;">'
624
+                                    . $regs[3].'.'.$regs[2].'.'.$regs[1];
625 625
                             }
626 626
                         }
627 627
                         if (!$outputet) {
628
-                            $sReturn .= 'style="text-align:left;">' . $value;
628
+                            $sReturn .= 'style="text-align:left;">'.$value;
629 629
                         }
630 630
                     }
631 631
                 }
@@ -651,11 +651,11 @@  discard block
 block discarded – undo
651 651
     {
652 652
         $styleToReturn = 'style="text-align: right;">';
653 653
         if (substr($value, 0, 1) === '0') {
654
-            return $styleToReturn . $value;
654
+            return $styleToReturn.$value;
655 655
         }
656 656
         $decimals = $this->setTableCellDecimals($key, $features);
657 657
         $nDc      = ['MinFractionDigits' => $decimals, 'MaxFractionDigits' => $decimals];
658
-        return $styleToReturn . $this->setNumberFormat($value, $nDc);
658
+        return $styleToReturn.$this->setNumberFormat($value, $nDc);
659 659
     }
660 660
 
661 661
     /**
@@ -691,7 +691,7 @@  discard block
 block discarded – undo
691 691
         $this->handleLanguageIntoSession();
692 692
         return '<div class="upperRightBox">'
693 693
             . '<div style="text-align:right;">'
694
-            . '<span class="flag-icon flag-icon-' . strtolower(substr($this->tCmnSession->get('lang'), -2))
694
+            . '<span class="flag-icon flag-icon-'.strtolower(substr($this->tCmnSession->get('lang'), -2))
695 695
             . '" style="margin-right:2px;">&nbsp;</span>'
696 696
             . $aAvailableLanguages[$this->tCmnSession->get('lang')]
697 697
             . '</div><!-- default Language -->'
@@ -704,17 +704,17 @@  discard block
 block discarded – undo
704 704
         $linkWithoutLanguage = '';
705 705
         $alR                 = $this->tCmnSuperGlobals->query->all();
706 706
         if (count($alR) > 0) {
707
-            $linkWithoutLanguage = $this->setArrayToStringForUrl('&amp;', $alR, ['lang']) . '&amp;';
707
+            $linkWithoutLanguage = $this->setArrayToStringForUrl('&amp;', $alR, ['lang']).'&amp;';
708 708
         }
709 709
         $sReturn = [];
710 710
         foreach ($aAvailableLanguages as $key => $value) {
711 711
             if ($this->tCmnSession->get('lang') !== $key) {
712
-                $sReturn[] = '<a href="?' . $linkWithoutLanguage . 'lang=' . $key . '" style="display:block;">'
713
-                    . '<span class="flag-icon flag-icon-' . strtolower(substr($key, -2))
714
-                    . '" style="margin-right:2px;">&nbsp;</span>' . $value . '</a>';
712
+                $sReturn[] = '<a href="?'.$linkWithoutLanguage.'lang='.$key.'" style="display:block;">'
713
+                    . '<span class="flag-icon flag-icon-'.strtolower(substr($key, -2))
714
+                    . '" style="margin-right:2px;">&nbsp;</span>'.$value.'</a>';
715 715
             }
716 716
         }
717
-        return '<div id="visibleOnHover">' . implode('', $sReturn) . '</div><!-- visibleOnHover end -->';
717
+        return '<div id="visibleOnHover">'.implode('', $sReturn).'</div><!-- visibleOnHover end -->';
718 718
     }
719 719
 
720 720
 }
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,7 +238,7 @@  discard block
 block discarded – undo
238 238
             $elC = [$prm['NoOfRows'], $rMap[$prm['returnType']]['r'][0], $rMap[$prm['returnType']]['r'][1]];
239 239
             if (filter_var($elC[0], FILTER_VALIDATE_INT, ['min_range' => $elC[1], 'max_range' => $elC[2]]) === false) {
240 240
                 $suffix2 = (string) $rMap[$prm['returnType']][2];
241
-                $msg     = $this->lclMsgCmn('i18n_MySQL_QueryResultExpected' . $suffix2);
241
+                $msg     = $this->lclMsgCmn('i18n_MySQL_QueryResultExpected'.$suffix2);
242 242
                 return [false, sprintf($msg, $prm['NoOfColumns'])];
243 243
             }
244 244
             $elR = [$prm['NoOfColumns'], $rMap[$prm['returnType']]['c'][0], $rMap[$prm['returnType']]['c'][1]];
@@ -246,10 +246,10 @@  discard block
 block discarded – undo
246 246
                 return [true, ''];
247 247
             }
248 248
             $suffix1 = (string) $rMap[$prm['returnType']][1];
249
-            $msg     = $this->lclMsgCmn('i18n_MySQL_QueryResultExpected' . $suffix1);
249
+            $msg     = $this->lclMsgCmn('i18n_MySQL_QueryResultExpected'.$suffix1);
250 250
             return [false, sprintf($msg, $prm['NoOfColumns'])];
251 251
         }
252
-        return [false, $prm['returnType'] . ' is not defined!'];
252
+        return [false, $prm['returnType'].' is not defined!'];
253 253
     }
254 254
 
255 255
     private function setMySQLqueryValidationMap()
Please login to merge, or discard this patch.
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
     }
@@ -102,10 +102,10 @@  discard block
 block discarded – undo
102 102
      */
103 103
     private function readTypeFromJsonFile($fileBaseName)
104 104
     {
105
-        $fName = __DIR__ . DIRECTORY_SEPARATOR . 'json' . DIRECTORY_SEPARATOR . $fileBaseName . '.min.json';
105
+        $fName = __DIR__.DIRECTORY_SEPARATOR.'json'.DIRECTORY_SEPARATOR.$fileBaseName.'.min.json';
106 106
         $fJson = fopen($fName, 'r');
107 107
         if ($fJson === false) {
108
-            throw new \Exception('Unable to read file ' . $fName);
108
+            throw new \Exception('Unable to read file '.$fName);
109 109
         }
110 110
         $jSonContent = fread($fJson, filesize($fName));
111 111
         fclose($fJson);
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
@@ -99,7 +99,7 @@  discard block
 block discarded – undo
99 99
             $sReturn[] = 'submit();';
100 100
         }
101 101
         if (is_array($sReturn)) {
102
-            return ' onchange="javascript:' . implode('', $sReturn) . '"';
102
+            return ' onchange="javascript:'.implode('', $sReturn).'"';
103 103
         }
104 104
         return '';
105 105
     }
@@ -116,7 +116,7 @@  discard block
 block discarded – undo
116 116
         ];
117 117
         if (array_key_exists($identifier, $featArray)) {
118 118
             if (is_null($translation[$identifier])) {
119
-                return ' ' . $identifier . '="' . $featArray[$identifier] . '"';
119
+                return ' '.$identifier.'="'.$featArray[$identifier].'"';
120 120
             }
121 121
             return $translation[$identifier];
122 122
         }
@@ -141,15 +141,15 @@  discard block
 block discarded – undo
141 141
             $ftArray = [];
142 142
         }
143 143
         $featArray = $this->normalizeFeatureArray($ftArray);
144
-        return '<select name="' . $selectName . '" '
145
-            . 'id="' . $this->buildSelectId($selectName, $featArray) . '" '
146
-            . 'size="' . $this->calculateSelectOptionsSize($aElements, $featArray) . '"'
144
+        return '<select name="'.$selectName.'" '
145
+            . 'id="'.$this->buildSelectId($selectName, $featArray).'" '
146
+            . 'size="'.$this->calculateSelectOptionsSize($aElements, $featArray).'"'
147 147
             . $this->eventOnChange($featArray)
148 148
             . $this->featureArraySimpleTranslated($featArray, 'disabled')
149 149
             . $this->featureArraySimpleTranslated($featArray, 'hidden')
150 150
             . $this->featureArraySimpleTranslated($featArray, 'multiselect')
151 151
             . $this->featureArraySimpleTranslated($featArray, 'style')
152
-            . '>' . $this->setOptionsForSelect($aElements, $sDefaultValue, $featArray) . '</select>';
152
+            . '>'.$this->setOptionsForSelect($aElements, $sDefaultValue, $featArray).'</select>';
153 153
     }
154 154
 
155 155
     private function setOptionGroupEnd($crtGroup, $featArray)
@@ -170,7 +170,7 @@  discard block
 block discarded – undo
170 170
             if ($crtGroup != $tempString) {
171 171
                 $sReturn[] = $this->setOptionGroupEnd($crtGroup, $featArray);
172 172
                 $crtGroup  = $tempString;
173
-                $sReturn[] = '<optgroup label="' . str_replace($featArray['grouping'], '', $crtGroup) . '">';
173
+                $sReturn[] = '<optgroup label="'.str_replace($featArray['grouping'], '', $crtGroup).'">';
174 174
             }
175 175
         }
176 176
         return ['crtGroup' => $crtGroup, 'groupFooterHeader' => implode('', $sReturn)];
@@ -207,12 +207,12 @@  discard block
 block discarded – undo
207 207
             $aFH       = $this->setOptionGroupFooterHeader($featArray, $value, $crtGroup);
208 208
             $crtGroup  = $aFH['crtGroup'];
209 209
             $sReturn[] = $aFH['groupFooterHeader']
210
-                . '<option value="' . $key . '"' . $this->setOptionSelected($key, $sDefaultValue)
211
-                . $this->featureArraySimpleTranslated($featArray, 'styleForOption') . '>'
212
-                . str_replace(['&', $crtGroup], ['&amp;', ''], $value) . '</option>';
210
+                . '<option value="'.$key.'"'.$this->setOptionSelected($key, $sDefaultValue)
211
+                . $this->featureArraySimpleTranslated($featArray, 'styleForOption').'>'
212
+                . str_replace(['&', $crtGroup], ['&amp;', ''], $value).'</option>';
213 213
         }
214 214
         $sReturn[] = $this->setOptionGroupEnd($crtGroup, $featArray);
215
-        return $this->featureArraySimpleTranslated($featArray, 'include_null') . implode('', $sReturn);
215
+        return $this->featureArraySimpleTranslated($featArray, 'include_null').implode('', $sReturn);
216 216
     }
217 217
 
218 218
 }
Please login to merge, or discard this patch.