Skip to content

Commit d744b4d

Browse files
committed
fix: rector & cs
1 parent 17cf621 commit d744b4d

File tree

2 files changed

+3
-7
lines changed

2 files changed

+3
-7
lines changed

system/Debug/Toolbar.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@
2727
use CodeIgniter\I18n\Time;
2828
use Config\Toolbar as ToolbarConfig;
2929
use Kint\Kint;
30-
use Throwable;
3130

3231
/**
3332
* Displays a toolbar with bits of stats to aid a developer in debugging.
@@ -400,7 +399,7 @@ public function prepare(?RequestInterface $request = null, ?ResponseInterface $r
400399
}
401400

402401
$toolbar = service('toolbar', $config);
403-
$stats = $app->getPerformanceStats();
402+
$stats = $app->getPerformanceStats();
404403
$data = $toolbar->run(
405404
$stats['startTime'],
406405
$stats['totalTime'],

tests/system/Debug/ToolbarTest.php

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -33,15 +33,12 @@ final class ToolbarTest extends CIUnitTestCase
3333
private ToolbarConfig $config;
3434
private ?IncomingRequest $request = null;
3535
private ?ResponseInterface $response = null;
36-
private bool $originalIsCli;
3736

3837
protected function setUp(): void
3938
{
4039
parent::setUp();
4140
Services::reset();
42-
43-
$this->originalIsCli = is_cli();
44-
is_cli(false);
41+
is_cli();
4542

4643
$this->config = new ToolbarConfig();
4744

@@ -57,7 +54,7 @@ protected function setUp(): void
5754
protected function tearDown(): void
5855
{
5956
// Restore original is_cli state
60-
is_cli($this->originalIsCli);
57+
is_cli();
6158

6259
parent::tearDown();
6360
}

0 commit comments

Comments
 (0)