@@ -69,7 +69,7 @@ discard block  | 
                                                    ||
| 69 | 69 | |
| 70 | 70 |  		if (!@rmdir($this->getLocalPath())) { | 
                                                        
| 71 | 71 | $files = @scandir($this->getLocalPath());  | 
                                                        
| 72 | -			if (($files === false) || ($files === [ '.', '..' ])) { | 
                                                        |
| 72 | +			if (($files === false) || ($files === ['.', '..'])) { | 
                                                        |
| 73 | 73 | throw new GenericFileException();  | 
                                                        
| 74 | 74 |  			} else { | 
                                                        
| 75 | 75 | throw new NotPermittedException();  | 
                                                        
@@ -203,7 +203,7 @@ discard block  | 
                                                    ||
| 203 | 203 | */  | 
                                                        
| 204 | 204 | public function isCreatable(): bool  | 
                                                        
| 205 | 205 |  	{ | 
                                                        
| 206 | - return ($this->getPermissions() & Constants::PERMISSION_CREATE) === Constants::PERMISSION_CREATE;  | 
                                                        |
| 206 | + return ($this->getPermissions()&Constants::PERMISSION_CREATE) === Constants::PERMISSION_CREATE;  | 
                                                        |
| 207 | 207 | }  | 
                                                        
| 208 | 208 | |
| 209 | 209 | /**  | 
                                                        
@@ -37,7 +37,7 @@  | 
                                                    ||
| 37 | 37 | */  | 
                                                        
| 38 | 38 | public function __construct(string $message = null)  | 
                                                        
| 39 | 39 |  	{ | 
                                                        
| 40 | - parent::__construct(Application::APP_NAME, '404', [ 'message' => $message ], 'guest');  | 
                                                        |
| 40 | + parent::__construct(Application::APP_NAME, '404', ['message' => $message], 'guest');  | 
                                                        |
| 41 | 41 | $this->setStatus(Http::STATUS_NOT_FOUND);  | 
                                                        
| 42 | 42 | }  | 
                                                        
| 43 | 43 | }  | 
                                                        
@@ -37,7 +37,7 @@  | 
                                                    ||
| 37 | 37 | */  | 
                                                        
| 38 | 38 | public function __construct(string $message = null)  | 
                                                        
| 39 | 39 |  	{ | 
                                                        
| 40 | - parent::__construct(Application::APP_NAME, '403', [ 'message' => $message ], 'guest');  | 
                                                        |
| 40 | + parent::__construct(Application::APP_NAME, '403', ['message' => $message], 'guest');  | 
                                                        |
| 41 | 41 | $this->setStatus(Http::STATUS_FORBIDDEN);  | 
                                                        
| 42 | 42 | }  | 
                                                        
| 43 | 43 | }  | 
                                                        
@@ -237,7 +237,7 @@  | 
                                                    ||
| 237 | 237 | */  | 
                                                        
| 238 | 238 | private function log(string $message, int $level = ILogger::DEBUG)  | 
                                                        
| 239 | 239 |  	{ | 
                                                        
| 240 | - $this->logger->log($level, $message, [ 'app' => Application::APP_NAME ]);  | 
                                                        |
| 240 | + $this->logger->log($level, $message, ['app' => Application::APP_NAME]);  | 
                                                        |
| 241 | 241 | }  | 
                                                        
| 242 | 242 | |
| 243 | 243 | /**  | 
                                                        
@@ -115,7 +115,7 @@ discard block  | 
                                                    ||
| 115 | 115 | */  | 
                                                        
| 116 | 116 | public function isReadable(): bool  | 
                                                        
| 117 | 117 |  	{ | 
                                                        
| 118 | - return ($this->getPermissions() & Constants::PERMISSION_READ) === Constants::PERMISSION_READ;  | 
                                                        |
| 118 | + return ($this->getPermissions()&Constants::PERMISSION_READ) === Constants::PERMISSION_READ;  | 
                                                        |
| 119 | 119 | }  | 
                                                        
| 120 | 120 | |
| 121 | 121 | /**  | 
                                                        
@@ -123,7 +123,7 @@ discard block  | 
                                                    ||
| 123 | 123 | */  | 
                                                        
| 124 | 124 | public function isUpdateable(): bool  | 
                                                        
| 125 | 125 |  	{ | 
                                                        
| 126 | - return ($this->getPermissions() & Constants::PERMISSION_UPDATE) === Constants::PERMISSION_UPDATE;  | 
                                                        |
| 126 | + return ($this->getPermissions()&Constants::PERMISSION_UPDATE) === Constants::PERMISSION_UPDATE;  | 
                                                        |
| 127 | 127 | }  | 
                                                        
| 128 | 128 | |
| 129 | 129 | /**  | 
                                                        
@@ -131,7 +131,7 @@ discard block  | 
                                                    ||
| 131 | 131 | */  | 
                                                        
| 132 | 132 | public function isDeletable(): bool  | 
                                                        
| 133 | 133 |  	{ | 
                                                        
| 134 | - return ($this->getPermissions() & Constants::PERMISSION_DELETE) === Constants::PERMISSION_DELETE;  | 
                                                        |
| 134 | + return ($this->getPermissions()&Constants::PERMISSION_DELETE) === Constants::PERMISSION_DELETE;  | 
                                                        |
| 135 | 135 | }  | 
                                                        
| 136 | 136 | |
| 137 | 137 | /**  | 
                                                        
@@ -141,7 +141,7 @@ discard block  | 
                                                    ||
| 141 | 141 | */  | 
                                                        
| 142 | 142 | protected function assertValidFileName(string $name)  | 
                                                        
| 143 | 143 |  	{ | 
                                                        
| 144 | -		if (in_array($name, [ '', '.', '..' ], true)) { | 
                                                        |
| 144 | +		if (in_array($name, ['', '.', '..'], true)) { | 
                                                        |
| 145 | 145 | throw new InvalidPathException();  | 
                                                        
| 146 | 146 | }  | 
                                                        
| 147 | 147 |  		if ((strpos($name, '/') !== false) || (strpos($name, '\\') !== false)) { | 
                                                        
@@ -61,7 +61,7 @@  | 
                                                    ||
| 61 | 61 | $exampleProxyUrl = $this->urlGenerator->getBaseUrl() . '/sites/' . urlencode($exampleSite);  | 
                                                        
| 62 | 62 | $exampleFullUrl = $this->urlGenerator->linkToRouteAbsolute(  | 
                                                        
| 63 | 63 | Application::APP_NAME . '.Pico.getPage',  | 
                                                        
| 64 | - [ 'site' => $exampleSite, 'page' => '' ]  | 
                                                        |
| 64 | + ['site' => $exampleSite, 'page' => '']  | 
                                                        |
| 65 | 65 | );  | 
                                                        
| 66 | 66 | |
| 67 | 67 | $internalBaseUrl = $this->urlGenerator->getBaseUrl() . '/index.php/apps/' . Application::APP_NAME;  | 
                                                        
@@ -37,7 +37,7 @@  | 
                                                    ||
| 37 | 37 | */  | 
                                                        
| 38 | 38 | public function __construct(string $message = null)  | 
                                                        
| 39 | 39 |  	{ | 
                                                        
| 40 | - parent::__construct(Application::APP_NAME, '500', [ 'message' => $message ], 'guest');  | 
                                                        |
| 40 | + parent::__construct(Application::APP_NAME, '500', ['message' => $message], 'guest');  | 
                                                        |
| 41 | 41 | $this->setStatus(Http::STATUS_INTERNAL_SERVER_ERROR);  | 
                                                        
| 42 | 42 | }  | 
                                                        
| 43 | 43 | }  | 
                                                        
@@ -69,7 +69,7 @@  | 
                                                    ||
| 69 | 69 | }  | 
                                                        
| 70 | 70 | |
| 71 | 71 | $reasonData = $this->reasonData;  | 
                                                        
| 72 | -		$replaceCallback = function (array $matches) use ($reasonData) { | 
                                                        |
| 72 | +		$replaceCallback = function(array $matches) use ($reasonData) { | 
                                                        |
| 73 | 73 | return $reasonData[$matches[1]] ?? '';  | 
                                                        
| 74 | 74 | };  | 
                                                        
| 75 | 75 | |
@@ -116,7 +116,7 @@  | 
                                                    ||
| 116 | 116 | throw new ThemeNotCompatibleException(  | 
                                                        
| 117 | 117 | $this->getName(),  | 
                                                        
| 118 | 118 |  					'Incompatible theme: Twig template "{file}" not found.', | 
                                                        
| 119 | - [ 'file' => $this->getName() . '/index.twig' ]  | 
                                                        |
| 119 | + ['file' => $this->getName() . '/index.twig']  | 
                                                        |
| 120 | 120 | );  | 
                                                        
| 121 | 121 | }  | 
                                                        
| 122 | 122 | |