@@ -69,7 +69,7 @@ discard block |
||
| 69 | 69 | } |
| 70 | 70 | |
| 71 | 71 | /** |
| 72 | - * @return array |
|
| 72 | + * @return string |
|
| 73 | 73 | */ |
| 74 | 74 | protected function getSettings(): array |
| 75 | 75 | { |
@@ -88,7 +88,7 @@ discard block |
||
| 88 | 88 | |
| 89 | 89 | /** |
| 90 | 90 | * |
| 91 | - * @return iterable |
|
| 91 | + * @return \Generator |
|
| 92 | 92 | */ |
| 93 | 93 | private function getMessageDescriptionsFromProviders(): iterable |
| 94 | 94 | { |
@@ -65,7 +65,7 @@ discard block |
||
| 65 | 65 | ); |
| 66 | 66 | assert(empty($logFile) === false, "Invalid Logs file name `$logFile`."); |
| 67 | 67 | |
| 68 | - $logPath = $logFolder . DIRECTORY_SEPARATOR . $logFile; |
|
| 68 | + $logPath = $logFolder.DIRECTORY_SEPARATOR.$logFile; |
|
| 69 | 69 | |
| 70 | 70 | return $defaults + [static::KEY_LOG_PATH => $logPath]; |
| 71 | 71 | } |
@@ -77,10 +77,10 @@ discard block |
||
| 77 | 77 | { |
| 78 | 78 | $appConfig = $this->getAppConfig(); |
| 79 | 79 | |
| 80 | - $isDebug = (bool)($appConfig[A::KEY_IS_DEBUG] ?? false); |
|
| 80 | + $isDebug = (bool) ($appConfig[A::KEY_IS_DEBUG] ?? false); |
|
| 81 | 81 | |
| 82 | 82 | return [ |
| 83 | - static::KEY_IS_ENABLED => (bool)($appConfig[A::KEY_IS_LOG_ENABLED] ?? false), |
|
| 83 | + static::KEY_IS_ENABLED => (bool) ($appConfig[A::KEY_IS_LOG_ENABLED] ?? false), |
|
| 84 | 84 | static::KEY_LOG_LEVEL => $isDebug === true ? Logger::DEBUG : Logger::INFO, |
| 85 | 85 | static::KEY_LOG_FILE => 'limoncello.log', |
| 86 | 86 | ]; |
@@ -107,7 +107,7 @@ discard block |
||
| 107 | 107 | |
| 108 | 108 | $appConfig = $this->getAppConfig(); |
| 109 | 109 | |
| 110 | - $defaults[static::KEY_LOG_IS_ENABLED] = (bool)($appConfig[A::KEY_IS_LOG_ENABLED] ?? false); |
|
| 110 | + $defaults[static::KEY_LOG_IS_ENABLED] = (bool) ($appConfig[A::KEY_IS_LOG_ENABLED] ?? false); |
|
| 111 | 111 | |
| 112 | 112 | if (array_key_exists(A::KEY_APP_ORIGIN_SCHEME, $appConfig) === true && |
| 113 | 113 | array_key_exists(A::KEY_APP_ORIGIN_HOST, $appConfig) === true && |
@@ -119,9 +119,9 @@ discard block |
||
| 119 | 119 | * @see http://php.net/manual/function.parse-url.php |
| 120 | 120 | */ |
| 121 | 121 | $defaults[static::KEY_SERVER_ORIGIN] = [ |
| 122 | - static::KEY_SERVER_ORIGIN_SCHEME => (string)$appConfig[A::KEY_APP_ORIGIN_SCHEME], |
|
| 123 | - static::KEY_SERVER_ORIGIN_HOST => (string)$appConfig[A::KEY_APP_ORIGIN_HOST], |
|
| 124 | - static::KEY_SERVER_ORIGIN_PORT => (string)$appConfig[A::KEY_APP_ORIGIN_PORT], |
|
| 122 | + static::KEY_SERVER_ORIGIN_SCHEME => (string) $appConfig[A::KEY_APP_ORIGIN_SCHEME], |
|
| 123 | + static::KEY_SERVER_ORIGIN_HOST => (string) $appConfig[A::KEY_APP_ORIGIN_HOST], |
|
| 124 | + static::KEY_SERVER_ORIGIN_PORT => (string) $appConfig[A::KEY_APP_ORIGIN_PORT], |
|
| 125 | 125 | ]; |
| 126 | 126 | } |
| 127 | 127 | |