| @@ -52,8 +52,8 @@ discard block | ||
| 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 | ||
| 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 | ||
| 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 | ||
| 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;"> (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 | ||
| 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 | ||
| 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 | } | 
| @@ -123,7 +123,7 @@ discard block | ||
| 123 | 123 | */ | 
| 124 | 124 | protected function glueDbTb($dbName, $tbName) | 
| 125 | 125 |      { | 
| 126 | - return '`' . $dbName . '`.`' . $tbName . '`'; | |
| 126 | + return '`'.$dbName.'`.`'.$tbName.'`'; | |
| 127 | 127 | } | 
| 128 | 128 | |
| 129 | 129 | /** | 
| @@ -154,7 +154,7 @@ discard block | ||
| 154 | 154 | */ | 
| 155 | 155 | private function handleFeaturesSingle($fieldName, $features, $featureKey) | 
| 156 | 156 |      { | 
| 157 | - $fMap = [ | |
| 157 | + $fMap = [ | |
| 158 | 158 | 'readonly' => ['readonly', 'class', 'input_readonly'], | 
| 159 | 159 | 'disabled' => ['disabled'] | 
| 160 | 160 | ]; | 
| @@ -73,14 +73,14 @@ discard block | ||
| 73 | 73 | 'File Group' => $info->getGroup(), | 
| 74 | 74 | 'File Inode' => $info->getInode(), | 
| 75 | 75 | 'File Link Target' => ($info->isLink() ? $info->getLinkTarget() : '-'), | 
| 76 | -            'File Name'              => $info->getBasename('.' . $info->getExtension()), | |
| 76 | +            'File Name'              => $info->getBasename('.'.$info->getExtension()), | |
| 77 | 77 | 'File Name w. Extension' => $info->getFilename(), | 
| 78 | 78 | 'File Owner' => $info->getOwner(), | 
| 79 | 79 | 'File Path' => $info->getPath(), | 
| 80 | 80 | 'Name' => $info->getRealPath(), | 
| 81 | 81 | 'Type' => $info->getType(), | 
| 82 | 82 | ]; | 
| 83 | - $aDetails = array_merge($aFileBasicDetails, $this->getFileDetailsRawStatistic($info, $fileGiven)); | |
| 83 | + $aDetails = array_merge($aFileBasicDetails, $this->getFileDetailsRawStatistic($info, $fileGiven)); | |
| 84 | 84 | ksort($aDetails); | 
| 85 | 85 | return $aDetails; | 
| 86 | 86 | } | 
| @@ -127,8 +127,8 @@ discard block | ||
| 127 | 127 | $sFiles = []; | 
| 128 | 128 |          foreach ($iterator as $file) { | 
| 129 | 129 | $relativePathFile = str_replace($sourcePath, '', $file->getRealPath()); | 
| 130 | -            if (!file_exists($targetPath . $relativePathFile)) { | |
| 131 | - $sFiles[$relativePathFile] = $targetPath . $relativePathFile; | |
| 130 | +            if (!file_exists($targetPath.$relativePathFile)) { | |
| 131 | + $sFiles[$relativePathFile] = $targetPath.$relativePathFile; | |
| 132 | 132 | } | 
| 133 | 133 | } | 
| 134 | 134 | return $this->setArrayToJson($sFiles); | 
| @@ -88,11 +88,11 @@ discard block | ||
| 88 | 88 | 'size' => 10, | 
| 89 | 89 | 'maxlength' => 10, | 
| 90 | 90 |              'onfocus'   => implode('', [ | 
| 91 | - 'javascript:NewCssCal(\'' . $value['COLUMN_NAME'], | |
| 91 | + 'javascript:NewCssCal(\''.$value['COLUMN_NAME'], | |
| 92 | 92 | '\',\'yyyyMMdd\',\'dropdown\',false,\'24\',false);', | 
| 93 | 93 | ]), | 
| 94 | 94 | ]; | 
| 95 | -        return $this->setStringIntoShortTag('input', $inA) . $this->setCalendarControl($value['COLUMN_NAME']); | |
| 95 | +        return $this->setStringIntoShortTag('input', $inA).$this->setCalendarControl($value['COLUMN_NAME']); | |
| 96 | 96 | } | 
| 97 | 97 | |
| 98 | 98 | /** | 
| @@ -181,7 +181,7 @@ discard block | ||
| 181 | 181 | return [$line[0], $line[1]]; | 
| 182 | 182 | // intentionally left open | 
| 183 | 183 | case 'array_key2_value': | 
| 184 | - return [$line[0] . '@' . $line[1], $line[1]]; | |
| 184 | + return [$line[0].'@'.$line[1], $line[1]]; | |
| 185 | 185 | // intentionally left open | 
| 186 | 186 | case 'array_numbered': | 
| 187 | 187 | return [$counter, $line[0]]; | 
| @@ -54,13 +54,13 @@ discard block | ||
| 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 | ||
| 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,16 +128,16 @@ discard block | ||
| 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 | |
| 143 | 143 | } | 
| @@ -98,7 +98,7 @@ discard block | ||
| 98 | 98 |      { | 
| 99 | 99 | return [ | 
| 100 | 100 | true, | 
| 101 | - $this->sCloundFlareUrl . 'font-awesome/' . $this->getCmpltVers($cssFileName, 'font-awesome-') | |
| 101 | + $this->sCloundFlareUrl.'font-awesome/'.$this->getCmpltVers($cssFileName, 'font-awesome-') | |
| 102 | 102 | . '/css/font-awesome.min.css', | 
| 103 | 103 | ]; | 
| 104 | 104 | } | 
| @@ -133,7 +133,7 @@ discard block | ||
| 133 | 133 | 'highcharts' => 'setJavascriptFileCDNforHighCharts', | 
| 134 | 134 | 'exporting' => 'setJavascriptFileCDNforHighChartsExporting', | 
| 135 | 135 | ]; | 
| 136 | - $rootFN = pathinfo($sFileParts[0])['basename']; | |
| 136 | + $rootFN = pathinfo($sFileParts[0])['basename']; | |
| 137 | 137 |          if (array_key_exists($rootFN, $knownFNs)) { | 
| 138 | 138 | return call_user_func([$this, $knownFNs[$rootFN]], pathinfo($jsFileName)['basename']); | 
| 139 | 139 | } | 
| @@ -178,13 +178,13 @@ discard block | ||
| 178 | 178 | private function setJavascriptFileCDNforHighChartsMain($jsFileName, $libName) | 
| 179 | 179 |      { | 
| 180 | 180 | $jsFN = $this->sanitizeString($jsFileName); | 
| 181 | - $jsVersionlessFN = str_replace([$libName . '-', '.js'], '', pathinfo($jsFileName)['basename']) | |
| 181 | + $jsVersionlessFN = str_replace([$libName.'-', '.js'], '', pathinfo($jsFileName)['basename']) | |
| 182 | 182 | . ($libName === 'exporting' ? '/modules' : ''); | 
| 183 | 183 |          if (strpos($jsFileName, $libName) !== false) { | 
| 184 | 184 | return [ | 
| 185 | 185 | true, | 
| 186 | - $this->sCloundFlareUrl . 'highcharts/' . $jsVersionlessFN . '/' . $libName . '.js', | |
| 187 | - '<script>!window.Highcharts && document.write(\'<script src="' . $jsFN . '">\x3C/script>\')</script>', | |
| 186 | + $this->sCloundFlareUrl.'highcharts/'.$jsVersionlessFN.'/'.$libName.'.js', | |
| 187 | + '<script>!window.Highcharts && document.write(\'<script src="'.$jsFN.'">\x3C/script>\')</script>', | |
| 188 | 188 | ]; | 
| 189 | 189 | } | 
| 190 | 190 | return null; | 
| @@ -205,8 +205,8 @@ discard block | ||
| 205 | 205 |          if (($jQueryPosition !== false) && is_numeric($jQueryMajorVersion) && (substr($jsFileName, -7) == '.min.js')) { | 
| 206 | 206 | return [ | 
| 207 | 207 | true, | 
| 208 | - $this->sCloundFlareUrl . 'jquery/' . $this->getCmpltVers($jsFileName, 'jquery-') . '/jquery.min.js', | |
| 209 | - '<script>window.jQuery || document.write(\'<script src="' . $this->sanitizeString($jsFileName) | |
| 208 | + $this->sCloundFlareUrl.'jquery/'.$this->getCmpltVers($jsFileName, 'jquery-').'/jquery.min.js', | |
| 209 | + '<script>window.jQuery || document.write(\'<script src="'.$this->sanitizeString($jsFileName) | |
| 210 | 210 | . '">\x3C/script>\')</script>', | 
| 211 | 211 | ]; | 
| 212 | 212 | } | 
| @@ -228,8 +228,8 @@ discard block | ||
| 228 | 228 |          if (!is_null($eArray['version'])) { | 
| 229 | 229 | return [ | 
| 230 | 230 | true, | 
| 231 | - $this->sCloundFlareUrl . $eArray['version'] . $eArray['justFile'], | |
| 232 | - '<script>' . $eArray['eVerify'] . ' || document.write(\'<script src="' . $sFN | |
| 231 | + $this->sCloundFlareUrl.$eArray['version'].$eArray['justFile'], | |
| 232 | + '<script>'.$eArray['eVerify'].' || document.write(\'<script src="'.$sFN | |
| 233 | 233 | . '">\x3C/script>\')</script>', | 
| 234 | 234 | ]; | 
| 235 | 235 | } | 
| @@ -45,8 +45,8 @@ discard block | ||
| 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 | ||
| 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 | ||
| 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 | ||
| 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 | ||
| 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 | ||
| 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 | ||
| 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 | ||
| 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 | ||
| 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"> </i>' . ' ' . $this->lclMsgCmn('i18n_AddNewRecord'); | |
| 243 | +        $btnText     = '<i class="fa fa-plus-square"> </i>'.' '.$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 | ||
| 253 | 253 | $sArgmnts = ''; | 
| 254 | 254 |          if (isset($ftrs['injectAddArguments'])) { | 
| 255 | 255 |              foreach ($ftrs['injectAddArguments'] as $key => $value) { | 
| 256 | - $sArgmnts .= '&' . $key . '=' . $value; | |
| 256 | + $sArgmnts .= '&'.$key.'='.$value; | |
| 257 | 257 | } | 
| 258 | 258 | } | 
| 259 | 259 | return $sArgmnts; | 
| @@ -263,9 +263,9 @@ discard block | ||
| 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 | } | 
| @@ -67,7 +67,7 @@ discard block | ||
| 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 | ||
| 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(); | 
| @@ -75,8 +75,8 @@ discard block | ||
| 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 | ||
| 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 | ||
| 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 | ||
| 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 | ||
| 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 | ||
| 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 | ||
| 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 | ||
| 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 | |