Skip to content

Commit 8c38141

Browse files
authored
Chain call separation (#240)
1 parent b9b7ca6 commit 8c38141

3 files changed

Lines changed: 9 additions & 3 deletions

File tree

config/routes.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,7 @@
66
use Yiisoft\Router\Route;
77

88
return [
9-
Route::get('/')->action([SiteController::class, 'index'])->name('home'),
9+
Route::get('/')
10+
->action([SiteController::class, 'index'])
11+
->name('home'),
1012
];

resources/views/site/404.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,9 @@
2121

2222
<p>
2323
The page
24-
<strong><?= Html::encode($currentRoute->getUri()->getPath()) ?></strong>
24+
<strong><?= Html::encode($currentRoute
25+
->getUri()
26+
->getPath()) ?></strong>
2527
not found.
2628
</p>
2729

tests/Unit/HelloCest.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,9 @@ public function _before(UnitTester $I): void
3535
public function testExecute(UnitTester $I): void
3636
{
3737
$app = new Application();
38-
$params = $this->getConfig()->get('params');
38+
$params = $this
39+
->getConfig()
40+
->get('params');
3941

4042
$loader = new ContainerCommandLoader(
4143
$this->container,

0 commit comments

Comments
 (0)