@@ -41,7 +41,7 @@ |
||
| 41 | 41 | curl_setopt($chanel, CURLOPT_FRESH_CONNECT, true); //avoid a cached response |
| 42 | 42 | curl_setopt($chanel, CURLOPT_FAILONERROR, true); |
| 43 | 43 | curl_setopt($chanel, CURLOPT_TCP_FASTOPEN, true); |
| 44 | - $aReturn = [ |
|
| 44 | + $aReturn = [ |
|
| 45 | 45 | 'response' => curl_exec($chanel), |
| 46 | 46 | 'errNo' => curl_errno($chanel), |
| 47 | 47 | 'errMsg' => curl_error($chanel), |
@@ -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), |