Skip to content

Commit

Permalink
style: correct long string format.
Browse files Browse the repository at this point in the history
  • Loading branch information
Konstantin Lapkovsky committed Nov 6, 2023
1 parent 8fe68c2 commit 888439a
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 3 deletions.
5 changes: 4 additions & 1 deletion src/Exceptions/UnsupportedDocumentationViewerException.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@ class UnsupportedDocumentationViewerException extends Exception
{
public function __construct(string $invalidViewer)
{
parent::__construct("The documentation viewer '{$invalidViewer}' does not exists. Please check that the 'documentation_viewer' key of your auto-doc.php config has one of valid values.");
parent::__construct(
"The documentation viewer '{$invalidViewer}' does not exists."
. " Please check that the 'documentation_viewer' key of your auto-doc.php config has one of valid values."
);
}
}
10 changes: 8 additions & 2 deletions tests/SwaggerServiceTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -656,7 +656,10 @@ public function testSetInvalidDocumentationViewer()
config(['auto-doc.documentation_viewer' => 'invalid']);

$this->expectException(UnsupportedDocumentationViewerException::class);
$this->expectExceptionMessage("The documentation viewer 'invalid' does not exists. Please check that the 'documentation_viewer' key of your auto-doc.php config has one of valid values.");
$this->expectExceptionMessage(
"The documentation viewer 'invalid' does not exists."
. " Please check that the 'documentation_viewer' key of your auto-doc.php config has one of valid values."
);

app(SwaggerService::class);
}
Expand All @@ -666,7 +669,10 @@ public function testSetNullableDocumentationViewer()
config(['auto-doc.documentation_viewer' => null]);

$this->expectException(UnsupportedDocumentationViewerException::class);
$this->expectExceptionMessage("The documentation viewer '' does not exists. Please check that the 'documentation_viewer' key of your auto-doc.php config has one of valid values.");
$this->expectExceptionMessage(
"The documentation viewer '' does not exists."
. " Please check that the 'documentation_viewer' key of your auto-doc.php config has one of valid values."
);

app(SwaggerService::class);
}
Expand Down

0 comments on commit 888439a

Please sign in to comment.