Completed
Push — master ( 3f5c2c...6a0d4f )
by
unknown
48:24 queued 17:14
created
lib/private/AppFramework/Http/Dispatcher.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -147,7 +147,7 @@  discard block
 block discarded – undo
147 147
 			$response = $this->middlewareDispatcher->afterException(
148 148
 				$controller, $methodName, $exception);
149 149
 		} catch (\Throwable $throwable) {
150
-			$exception = new \Exception($throwable->getMessage() . ' in file \'' . $throwable->getFile() . '\' line ' . $throwable->getLine(), $throwable->getCode(), $throwable);
150
+			$exception = new \Exception($throwable->getMessage().' in file \''.$throwable->getFile().'\' line '.$throwable->getLine(), $throwable->getCode(), $throwable);
151 151
 			$response = $this->middlewareDispatcher->afterException(
152 152
 				$controller, $methodName, $exception);
153 153
 		}
@@ -200,23 +200,23 @@  discard block
 block discarded – undo
200 200
 			$arguments[] = $value;
201 201
 		}
202 202
 
203
-		$this->eventLogger->start('controller:' . get_class($controller) . '::' . $methodName, 'App framework controller execution');
203
+		$this->eventLogger->start('controller:'.get_class($controller).'::'.$methodName, 'App framework controller execution');
204 204
 		try {
205 205
 			$response = \call_user_func_array([$controller, $methodName], $arguments);
206 206
 		} catch (\TypeError $e) {
207 207
 			// Only intercept TypeErrors occuring on the first line, meaning that the invocation of the controller method failed.
208 208
 			// Any other TypeError happens inside the controller method logic and should be logged as normal.
209 209
 			if ($e->getFile() === $this->reflector->getFile() && $e->getLine() === $this->reflector->getStartLine()) {
210
-				$this->logger->debug('Failed to call controller method: ' . $e->getMessage(), ['exception' => $e]);
210
+				$this->logger->debug('Failed to call controller method: '.$e->getMessage(), ['exception' => $e]);
211 211
 				return new Response(Http::STATUS_BAD_REQUEST);
212 212
 			}
213 213
 
214 214
 			throw $e;
215 215
 		}
216
-		$this->eventLogger->end('controller:' . get_class($controller) . '::' . $methodName);
216
+		$this->eventLogger->end('controller:'.get_class($controller).'::'.$methodName);
217 217
 
218 218
 		if (!($response instanceof Response)) {
219
-			$this->logger->debug($controller::class . '::' . $methodName . ' returned raw data. Please wrap it in a Response or one of it\'s inheritors.');
219
+			$this->logger->debug($controller::class.'::'.$methodName.' returned raw data. Please wrap it in a Response or one of it\'s inheritors.');
220 220
 		}
221 221
 
222 222
 		// format response
Please login to merge, or discard this patch.