Skip to content

Commit 62bd1ef

Browse files
committed
Coding style issues
1 parent b0dedb2 commit 62bd1ef

5 files changed

Lines changed: 6 additions & 6 deletions

File tree

src/routing/PhpRouteHandler.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ public function __invoke(Request $request): Response
3737
if (is_string($outputValue) && strlen($outputValue) > 0) {
3838
throw new \Exception('In the PHP file the return value must be omitted if an output was made via echo: ' . $path);
3939
}
40-
return new Response($returnValue, 200);
40+
return new Response($returnValue, 200);
4141
} elseif (is_array($returnValue)) {
4242
return $this->json($returnValue);
4343
} elseif ($returnValue instanceof Response) {
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
<?php
1+
<?php declare(strict_types=1);
22

33
return ['value' => 'Return array value'];
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
<?php
1+
<?php declare(strict_types=1);
22

33
return true;

tests/_data/routes/php-route-handler/return-response.get.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<?php
1+
<?php declare(strict_types=1);
22

33
use Symfony\Component\HttpFoundation\Response;
44

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
<?php
1+
<?php declare(strict_types=1);
22

33
/** @var tebe\zack\routing\PhpRouteHandler $this */
44

55
return $this->render('route-handler.html.twig', [
66
'title' => 'Return string value',
7-
'html' => '<h2>Return string value</h2>'
7+
'html' => '<h2>Return string value</h2>',
88
]);

0 commit comments

Comments
 (0)