Skip to content

Commit

Permalink
Fix an error in the documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
Finesse committed Sep 4, 2018
1 parent e344379 commit c54ce87
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion docs/fonts-setup.md
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ return [
'Open Sans' => [
'styles' => [
'500i' => [
'name' => 'DemiBold Oblique', // The `local` names are `Open Sans Demibold Oblique` and `OpenSans-DemiBoldOblique`
'name' => 'DemiBold Oblique', // The `local` names are `Open Sans DemiBold Oblique` and `OpenSans-DemiBoldOblique`
'files' => 'opensans_demibold_oblique.*'
]
]
Expand Down
2 changes: 1 addition & 1 deletion src/Services/WebfontCSSGenerator/Models/Style.php
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ public function getName(): string
$words[] = static::WEIGHTS_NAMES[$this->weight] ?? $this->weight;
}

if ($this->isItalic && $this) {
if ($this->isItalic) {
$words[] = static::ITALIC_WORD;
}

Expand Down
2 changes: 1 addition & 1 deletion tests/BaseTestCase.php
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ protected function assertException(string $expectClass, callable $callback, call
try {
$callback();
} catch (\Throwable $exception) {
$this->assertInstanceOf($expectClass, $exception);
$this->assertInstanceOf($expectClass, $exception, "The thrown exception is not an instance of $expectClass");
if ($onException) {
$onException($exception);
}
Expand Down

0 comments on commit c54ce87

Please sign in to comment.