@@ -79,7 +79,7 @@ |
||
79 | 79 | 'Name' => $info->getRealPath(), |
80 | 80 | 'Type' => $info->getType(), |
81 | 81 | ]; |
82 | - $aDetails = array_merge($aFileBasicDetails, $this->getFileDetailsRawStatistic($info, $fileGiven)); |
|
82 | + $aDetails = array_merge($aFileBasicDetails, $this->getFileDetailsRawStatistic($info, $fileGiven)); |
|
83 | 83 | ksort($aDetails); |
84 | 84 | return $aDetails; |
85 | 85 | } |
@@ -77,21 +77,21 @@ |
||
77 | 77 | private function knownStringPatterns($strIdentifier) |
78 | 78 | { |
79 | 79 | $arrayStandard = [ |
80 | - 'remove EOL Unix' => ['Original' => chr(13), 'Final' => '',], |
|
81 | - 'remove EOL Windows' => ['Original' => chr(10) . chr(13), 'Final' => '',], |
|
82 | - 'remove colon' => ['Original' => ':', 'Final' => '',], |
|
83 | - 'remove comma followed by double quotes' => ['Original' => ',"', 'Final' => '',], |
|
84 | - 'remove dot' => ['Original' => '.', 'Final' => '',], |
|
85 | - 'remove double quotes' => ['Original' => '"', 'Final' => '',], |
|
86 | - 'remove double quotes followed by comma' => ['Original' => '",', 'Final' => '',], |
|
87 | - 'remove pipeline' => ['Original' => '|', 'Final' => '',], |
|
88 | - 'remove semicolon' => ['Original' => ';', 'Final' => '',], |
|
89 | - 'remove slash' => ['Original' => '/', 'Final' => '',], |
|
90 | - 'replace dash with space' => ['Original' => '-', 'Final' => ' ',], |
|
91 | - 'replace comma with dot' => ['Original' => ',', 'Final' => '.',], |
|
92 | - 'replace circumflex accent with dot' => ['Original' => '^', 'Final' => '.',], |
|
80 | + 'remove EOL Unix' => ['Original' => chr(13), 'Final' => '', ], |
|
81 | + 'remove EOL Windows' => ['Original' => chr(10) . chr(13), 'Final' => '', ], |
|
82 | + 'remove colon' => ['Original' => ':', 'Final' => '', ], |
|
83 | + 'remove comma followed by double quotes' => ['Original' => ',"', 'Final' => '', ], |
|
84 | + 'remove dot' => ['Original' => '.', 'Final' => '', ], |
|
85 | + 'remove double quotes' => ['Original' => '"', 'Final' => '', ], |
|
86 | + 'remove double quotes followed by comma' => ['Original' => '",', 'Final' => '', ], |
|
87 | + 'remove pipeline' => ['Original' => '|', 'Final' => '', ], |
|
88 | + 'remove semicolon' => ['Original' => ';', 'Final' => '', ], |
|
89 | + 'remove slash' => ['Original' => '/', 'Final' => '', ], |
|
90 | + 'replace dash with space' => ['Original' => '-', 'Final' => ' ', ], |
|
91 | + 'replace comma with dot' => ['Original' => ',', 'Final' => '.', ], |
|
92 | + 'replace circumflex accent with dot' => ['Original' => '^', 'Final' => '.', ], |
|
93 | 93 | ]; |
94 | - $bolKeyExists = array_key_exists($strIdentifier, $arrayStandard); |
|
94 | + $bolKeyExists = array_key_exists($strIdentifier, $arrayStandard); |
|
95 | 95 | return [ |
96 | 96 | 'Key Exists' => $bolKeyExists, |
97 | 97 | 'Attributes' => ($bolKeyExists ? $arrayStandard[$strIdentifier] : null), |
@@ -82,7 +82,7 @@ |
||
82 | 82 | private function getClientBrowser(\DeviceDetector\DeviceDetector $deviceDetectorClass, $userAgent) |
83 | 83 | { |
84 | 84 | $this->autoPopulateSuperGlobals(); |
85 | - $browserInfoArray = [ |
|
85 | + $browserInfoArray = [ |
|
86 | 86 | 'architecture' => $this->getArchitectureFromUserAgent($userAgent, 'browser'), |
87 | 87 | 'connection' => $this->brServerGlobals->server->get('HTTP_CONNECTION'), |
88 | 88 | 'family' => $this->getClientBrowserFamily($deviceDetectorClass), |
@@ -51,7 +51,7 @@ discard block |
||
51 | 51 | } |
52 | 52 | switch ($strDatabaseType) { |
53 | 53 | case 'MySQL': |
54 | - $strDsn = 'mysql:' |
|
54 | + $strDsn = 'mysql:' |
|
55 | 55 | . implode(';', [ |
56 | 56 | 'host=' . $arrayConnectionParameters['Host'], |
57 | 57 | 'dbname=' . $arrayConnectionParameters['Database'], |
@@ -113,7 +113,7 @@ discard block |
||
113 | 113 | str_repeat(' ', 4), |
114 | 114 | str_repeat(' ', 2), |
115 | 115 | ]; |
116 | - $strRawQuery = str_replace($arrayToClean, ' ', $strRawQueryAsIs); |
|
116 | + $strRawQuery = str_replace($arrayToClean, ' ', $strRawQueryAsIs); |
|
117 | 117 | } |
118 | 118 | $sReturn = $strRawQuery; |
119 | 119 | if (array_key_exists('queryParameterValues', $arrayInputs) && ($arrayInputs['queryParameterValues'] !== [])) { |
@@ -122,7 +122,7 @@ discard block |
||
122 | 122 | return $sReturn; |
123 | 123 | } |
124 | 124 | |
125 | - public function getResultsAsJson(array|\PDO $arrayResults) |
|
125 | + public function getResultsAsJson(array | \PDO $arrayResults) |
|
126 | 126 | { |
127 | 127 | $encodingFlags = (JSON_UNESCAPED_SLASHES | JSON_UNESCAPED_UNICODE); |
128 | 128 | return json_encode($arrayResults, $encodingFlags); |
@@ -269,7 +269,7 @@ |
||
269 | 269 | . '(:\d{1,2})?)?$/iu'; |
270 | 270 | $strDateFormat = \PhpOffice\PhpSpreadsheet\Style\NumberFormat::FORMAT_DATE_YYYYMMDD; |
271 | 271 | foreach ($inputs['RowValues'] as $key2 => $value2) { |
272 | - $crCol = \PhpOffice\PhpSpreadsheet\Cell\Coordinate::stringFromColumnIndex($columnCounter); |
|
272 | + $crCol = \PhpOffice\PhpSpreadsheet\Cell\Coordinate::stringFromColumnIndex($columnCounter); |
|
273 | 273 | $this->objPHPExcel |
274 | 274 | ->getActiveSheet() |
275 | 275 | ->getColumnDimension($crCol) |
@@ -49,7 +49,7 @@ discard block |
||
49 | 49 | return $aReturn; |
50 | 50 | } |
51 | 51 | |
52 | - private function handleCurlOptions(\CurlHandle|false $chanel, string $inScopeUrl, array $features): void |
|
52 | + private function handleCurlOptions(\CurlHandle | false $chanel, string $inScopeUrl, array $features): void |
|
53 | 53 | { |
54 | 54 | $this->setUserAgent($chanel, $features); |
55 | 55 | $this->handleSecureConnection($chanel, $inScopeUrl, $features); |
@@ -69,7 +69,7 @@ discard block |
||
69 | 69 | } |
70 | 70 | } |
71 | 71 | |
72 | - private function handleSecureConnection(\CurlHandle|false $chanel, string $fullURL, array $features): void |
|
72 | + private function handleSecureConnection(\CurlHandle | false $chanel, string $fullURL, array $features): void |
|
73 | 73 | { |
74 | 74 | if ((substr(strtolower($fullURL), 0, 5) === 'https')) { |
75 | 75 | $chk = false; |
@@ -81,7 +81,7 @@ discard block |
||
81 | 81 | } |
82 | 82 | } |
83 | 83 | |
84 | - private function setForceIpv4(\CurlHandle|false $chanel, array $features): void |
|
84 | + private function setForceIpv4(\CurlHandle | false $chanel, array $features): void |
|
85 | 85 | { |
86 | 86 | if (array_key_exists('forceIpV4', $features)) { |
87 | 87 | if (defined('CURLOPT_IPRESOLVE') && defined('CURL_IPRESOLVE_V4')) { |
@@ -90,14 +90,14 @@ discard block |
||
90 | 90 | } |
91 | 91 | } |
92 | 92 | |
93 | - private function setNoBody(\CurlHandle|false $chanel, array $features): void |
|
93 | + private function setNoBody(\CurlHandle | false $chanel, array $features): void |
|
94 | 94 | { |
95 | 95 | if (array_key_exists('NoBody', $features)) { |
96 | 96 | curl_setopt($chanel, CURLOPT_NOBODY, true); |
97 | 97 | } |
98 | 98 | } |
99 | 99 | |
100 | - private function setPostingDetails(\CurlHandle|false $chanel, array $features): void |
|
100 | + private function setPostingDetails(\CurlHandle | false $chanel, array $features): void |
|
101 | 101 | { |
102 | 102 | if (array_key_exists('PostFields', $features)) { |
103 | 103 | curl_setopt($chanel, CURLOPT_POST, true); |
@@ -106,7 +106,7 @@ discard block |
||
106 | 106 | } |
107 | 107 | } |
108 | 108 | |
109 | - private function setUserAgent(\CurlHandle|false $chanel, array $features): void |
|
109 | + private function setUserAgent(\CurlHandle | false $chanel, array $features): void |
|
110 | 110 | { |
111 | 111 | if (array_key_exists('setUserAgent', $features)) { |
112 | 112 | curl_setopt($chanel, CURLOPT_USERAGENT, $features['setUserAgent']); |