Skip to content

Commit e99f78e

Browse files
committed
CS Fix
1 parent 2ebf0b4 commit e99f78e

File tree

3 files changed

+13
-13
lines changed

3 files changed

+13
-13
lines changed

composer.json

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -15,13 +15,13 @@
1515
},
1616
"require-dev": {
1717
"malukenho/mcbumpface": "^1.1.5",
18-
"phpstan/phpstan": "^1.5.3",
19-
"phpstan/phpstan-phpunit": "^1.1.0",
20-
"phpstan/phpstan-strict-rules": "^1.1.0",
21-
"phpunit/phpunit": "^9.5.19",
22-
"slam/php-cs-fixer-extensions": "^3.1.0",
18+
"phpstan/phpstan": "^1.8.2",
19+
"phpstan/phpstan-phpunit": "^1.1.1",
20+
"phpstan/phpstan-strict-rules": "^1.3.0",
21+
"phpunit/phpunit": "^9.5.21",
22+
"slam/php-cs-fixer-extensions": "^3.2.1",
2323
"slam/php-debug-r": "^1.7.0",
24-
"symfony/console": "^6.0.5"
24+
"symfony/console": "^6.1.2"
2525
},
2626
"autoload": {
2727
"psr-4": {

lib/ErrorHandler.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -355,7 +355,7 @@ public function logException(Throwable $exception): void
355355
do {
356356
$output = \sprintf(
357357
'%s%s: %s in %s:%s%s%s',
358-
($i > 0 ? '{PR ' . $i . '} ' : ''),
358+
$i > 0 ? '{PR ' . $i . '} ' : '',
359359
$exception::class,
360360
$exception->getMessage(),
361361
$exception->getFile(),
@@ -384,10 +384,10 @@ public function emailException(Throwable $exception): void
384384

385385
$bodyArray = [
386386
'Date' => \date(\DATE_RFC850),
387-
'REQUEST_URI' => $_SERVER['REQUEST_URI'] ?? '',
388-
'HTTP_REFERER' => $_SERVER['HTTP_REFERER'] ?? '',
387+
'REQUEST_URI' => $_SERVER['REQUEST_URI'] ?? '',
388+
'HTTP_REFERER' => $_SERVER['HTTP_REFERER'] ?? '',
389389
'USER_AGENT' => $_SERVER['HTTP_USER_AGENT'] ?? '',
390-
'REMOTE_ADDR' => $_SERVER['REMOTE_ADDR'] ?? '',
390+
'REMOTE_ADDR' => $_SERVER['REMOTE_ADDR'] ?? '',
391391
];
392392
if ($this->isCli()) {
393393
$bodyArray = [

tests/ErrorHandlerTest.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,8 @@ protected function setUp(): void
3232
\touch($this->errorLog);
3333
\ini_set('error_log', $this->errorLog);
3434

35-
$this->exception = new ErrorException(\uniqid('normal_'), \E_USER_NOTICE);
36-
$this->errorHandler = new ErrorHandler(function (string $subject, string $body): void {
35+
$this->exception = new ErrorException(\uniqid('normal_'), \E_USER_NOTICE);
36+
$this->errorHandler = new ErrorHandler(function (string $subject, string $body): void {
3737
$this->emailsSent[] = [
3838
'subject' => $subject,
3939
'body' => $body,
@@ -324,7 +324,7 @@ public function testCanSetCustomErrorLogCallback(): void
324324

325325
$data = [];
326326
$customCallback = static function (string $text) use (& $data): void {
327-
$data[] = $text;
327+
$data[] = $text;
328328
};
329329

330330
$this->errorHandler->setErrorLogCallback($customCallback);

0 commit comments

Comments
 (0)