@@ -59,7 +59,7 @@ discard block |
||
| 59 | 59 | $fileName = $this->getFpn() |
| 60 | 60 | ->normalizeFile($fileName); |
| 61 | 61 | if (!is_readable($fileName) || !is_file($fileName)) { |
| 62 | - $mess = 'Could NOT find accessible file, was given ' . $fileName; |
|
| 62 | + $mess = 'Could NOT find accessible file, was given '.$fileName; |
|
| 63 | 63 | $yem->triggerLogEvent('Yapeal.Log.log', Logger::INFO, $mess); |
| 64 | 64 | return false; |
| 65 | 65 | } |
@@ -195,17 +195,17 @@ discard block |
||
| 195 | 195 | private function isWritablePath(string $path, MediatorInterface $yem): bool |
| 196 | 196 | { |
| 197 | 197 | if (!is_readable($path)) { |
| 198 | - $mess = 'Path is NOT readable or does NOT exist, was given ' . $path; |
|
| 198 | + $mess = 'Path is NOT readable or does NOT exist, was given '.$path; |
|
| 199 | 199 | $yem->triggerLogEvent('Yapeal.Log.log', Logger::NOTICE, $mess); |
| 200 | 200 | return false; |
| 201 | 201 | } |
| 202 | 202 | if (!is_dir($path)) { |
| 203 | - $mess = 'Path is NOT a directory, was given ' . $path; |
|
| 203 | + $mess = 'Path is NOT a directory, was given '.$path; |
|
| 204 | 204 | $yem->triggerLogEvent('Yapeal.Log.log', Logger::NOTICE, $mess); |
| 205 | 205 | return false; |
| 206 | 206 | } |
| 207 | 207 | if (!is_writable($path)) { |
| 208 | - $mess = 'Path is NOT writable, was given ' . $path; |
|
| 208 | + $mess = 'Path is NOT writable, was given '.$path; |
|
| 209 | 209 | $yem->triggerLogEvent('Yapeal.Log.log', Logger::NOTICE, $mess); |
| 210 | 210 | return false; |
| 211 | 211 | } |
@@ -1,5 +1,5 @@ |
||
| 1 | 1 | <?php |
| 2 | -declare(strict_types=1); |
|
| 2 | +declare(strict_types = 1); |
|
| 3 | 3 | /** |
| 4 | 4 | * Contains RelativeFileSearchTrait Trait. |
| 5 | 5 | * |
@@ -1,5 +1,5 @@ discard block |
||
| 1 | 1 | <?php |
| 2 | -declare(strict_types=1); |
|
| 2 | +declare(strict_types = 1); |
|
| 3 | 3 | /** |
| 4 | 4 | * Contains CacheRetriever class. |
| 5 | 5 | * |
@@ -104,10 +104,10 @@ discard block |
||
| 104 | 104 | public function setCachePath($value = null) |
| 105 | 105 | { |
| 106 | 106 | if ($value === null) { |
| 107 | - $value = dirname(dirname(__DIR__)) . '/cache/'; |
|
| 107 | + $value = dirname(dirname(__DIR__)).'/cache/'; |
|
| 108 | 108 | } |
| 109 | 109 | if (!is_string($value)) { |
| 110 | - $mess = 'Cache path MUST be string, but was given ' . gettype($value); |
|
| 110 | + $mess = 'Cache path MUST be string, but was given '.gettype($value); |
|
| 111 | 111 | throw new \InvalidArgumentException($mess); |
| 112 | 112 | } |
| 113 | 113 | $this->cachePath = $this->getFpn() |
@@ -170,8 +170,8 @@ discard block |
||
| 170 | 170 | return true; |
| 171 | 171 | } |
| 172 | 172 | $now = time(); |
| 173 | - $current = strtotime($current . '+00:00'); |
|
| 174 | - $until = strtotime($until . '+00:00'); |
|
| 173 | + $current = strtotime($current.'+00:00'); |
|
| 174 | + $until = strtotime($until.'+00:00'); |
|
| 175 | 175 | // At minimum use cached XML for 5 minutes (300 secs). |
| 176 | 176 | if (($now - $current) <= 300) { |
| 177 | 177 | return false; |
@@ -1,5 +1,5 @@ discard block |
||
| 1 | 1 | <?php |
| 2 | -declare(strict_types=1); |
|
| 2 | +declare(strict_types = 1); |
|
| 3 | 3 | /** |
| 4 | 4 | * Contains CachePreserver class. |
| 5 | 5 | * |
@@ -103,10 +103,10 @@ discard block |
||
| 103 | 103 | public function setCachePath($value = null) |
| 104 | 104 | { |
| 105 | 105 | if ($value === null) { |
| 106 | - $value = dirname(dirname(__DIR__)) . '/cache/'; |
|
| 106 | + $value = dirname(dirname(__DIR__)).'/cache/'; |
|
| 107 | 107 | } |
| 108 | 108 | if (!is_string($value)) { |
| 109 | - $mess = 'Cache path MUST be string, but was given ' . gettype($value); |
|
| 109 | + $mess = 'Cache path MUST be string, but was given '.gettype($value); |
|
| 110 | 110 | throw new \InvalidArgumentException($mess); |
| 111 | 111 | } |
| 112 | 112 | if ('' === $this->cachePath) { |
@@ -1,5 +1,5 @@ |
||
| 1 | 1 | <?php |
| 2 | -declare(strict_types=1); |
|
| 2 | +declare(strict_types = 1); |
|
| 3 | 3 | /** |
| 4 | 4 | * Contains trait YEMAwareTrait. |
| 5 | 5 | * |
@@ -1,5 +1,5 @@ |
||
| 1 | 1 | <?php |
| 2 | -declare(strict_types=1); |
|
| 2 | +declare(strict_types = 1); |
|
| 3 | 3 | /** |
| 4 | 4 | * Contains Mediator class. |
| 5 | 5 | * |
@@ -1,5 +1,5 @@ |
||
| 1 | 1 | <?php |
| 2 | -declare(strict_types=1); |
|
| 2 | +declare(strict_types = 1); |
|
| 3 | 3 | /** |
| 4 | 4 | * Contains EveApiEvent class. |
| 5 | 5 | * |
@@ -1,5 +1,5 @@ |
||
| 1 | 1 | <?php |
| 2 | -declare(strict_types=1); |
|
| 2 | +declare(strict_types = 1); |
|
| 3 | 3 | /** |
| 4 | 4 | * Contains EveApiRetrieverInterface Interface. |
| 5 | 5 | * |
@@ -1,5 +1,5 @@ |
||
| 1 | 1 | <?php |
| 2 | -declare(strict_types=1); |
|
| 2 | +declare(strict_types = 1); |
|
| 3 | 3 | /** |
| 4 | 4 | * Contains MediatorInterface interface. |
| 5 | 5 | * |