Test Setup Failed
Pull Request — master (#77)
by Daniel
37:04 queued 05:27
created
lib/Files/LocalFolder.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -69,7 +69,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 	/**
Please login to merge, or discard this patch.
lib/Http/NotFoundResponse.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -37,7 +37,7 @@
 block discarded – undo
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
 }
Please login to merge, or discard this patch.
lib/Http/NotPermittedResponse.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -37,7 +37,7 @@
 block discarded – undo
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
 }
Please login to merge, or discard this patch.
lib/Migration/AppDataRepairStep.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -237,7 +237,7 @@
 block discarded – undo
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
 	/**
Please login to merge, or discard this patch.
lib/Files/AbstractNode.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -115,7 +115,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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)) {
Please login to merge, or discard this patch.
lib/Settings/Admin.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -61,7 +61,7 @@
 block discarded – undo
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;
Please login to merge, or discard this patch.
lib/Http/InternalServerErrorResponse.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -37,7 +37,7 @@
 block discarded – undo
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
 }
Please login to merge, or discard this patch.
lib/Exceptions/PluginNotCompatibleException.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -69,7 +69,7 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.
lib/Model/Theme.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -116,7 +116,7 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.