Skip to content

Commit

Permalink
Fix code style
Browse files Browse the repository at this point in the history
  • Loading branch information
Aeliot-Tm committed Jul 31, 2024
1 parent 786bda7 commit b86ee15
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 5 deletions.
3 changes: 1 addition & 2 deletions src/Application.php
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,6 @@ private function writeError(\Throwable $exception, ?\SplFileInfo $file = null):
$message .= "Stack trace:\n {$exception->getTraceAsString()} \n";
}

fwrite(STDERR, $message);
fwrite(\STDERR, $message);
}
}

2 changes: 1 addition & 1 deletion src/Exception/CommentRegistrationException.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ public function __construct(
private \PhpToken $token,
\Throwable $previous,
) {
parent::__construct(sprintf('Cannot register %s-comment', $this->commentPart->getTag()), 0, $previous);
parent::__construct(\sprintf('Cannot register %s-comment', $this->commentPart->getTag()), 0, $previous);
}

public function getCommentPart(): CommentPart
Expand Down
2 changes: 1 addition & 1 deletion src/Service/TodoFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ private function getInlineConfig(string $description): InlineConfigInterface
try {
$config = $this->inlineConfigReader->getInlineConfig($description);
} catch (\Throwable $exception) {
fwrite(STDERR, "[ERROR] {$exception->getMessage()}. Cannot parse inline config for: $description \n");
fwrite(\STDERR, "[ERROR] {$exception->getMessage()}. Cannot parse inline config for: $description \n");
$config = [];
}

Expand Down
2 changes: 1 addition & 1 deletion tests/Unit/Service/InlineConfig/ExtrasReaderTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ public static function getDataForTestPositiveFlow(): iterable
['some_key' => 'TD-123'],
<<<COMMENT
/**
* TODO: some comment
* TODO: some comment
* with inline config {EXTRAS: {some_key: TD-123}}.
*/
COMMENT,
Expand Down

0 comments on commit b86ee15

Please sign in to comment.