Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit e86558c

Browse files
committedApr 1, 2023
More style fixes
1 parent 6073d65 commit e86558c

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed
 

‎system/Config/Routing.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ class Routing extends BaseConfig
7676
* Example:
7777
* public $override404 = 'App\Errors::show404';
7878
*/
79-
public $override404 = null;
79+
public $override404;
8080

8181
/**
8282
* If TRUE, the system will attempt to match the URI against

‎system/Router/RouteCollection.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,6 @@ class RouteCollection implements RouteCollectionInterface
9191

9292
/**
9393
* An array of files that would contain route definitions.
94-
* @var array
9594
*/
9695
protected array $routeFiles = [];
9796

@@ -291,9 +290,10 @@ public function loadRoutes(string $routesFile = APPPATH . 'Routes.php')
291290
// so route files can access it.
292291
$routes = $this;
293292

294-
foreach($routeFiles as $routesFile) {
293+
foreach ($routeFiles as $routesFile) {
295294
if (! is_file($routesFile)) {
296295
log_message('warning', 'Routes file not found: ' . $routesFile . '.');
296+
297297
continue;
298298
}
299299

‎tests/system/Router/RouteCollectionTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ protected function getCollector(array $config = [], array $files = [], $moduleCo
4949
$moduleConfig->enabled = false;
5050
}
5151

52-
$routerConfig = new \Config\Routing();
52+
$routerConfig = new \Config\Routing();
5353
$routerConfig->defaultNamespace = '\\';
5454

5555
return (new RouteCollection($loader, $moduleConfig, $routerConfig))->setHTTPVerb('get');

0 commit comments

Comments
 (0)
Please sign in to comment.