Skip to content

Commit e46e339

Browse files
author
Kallef Alexandre
committed
Merge remote-tracking branch 'origin/main'
# Conflicts: # src/Elements/ManifestItem.php
2 parents f87fefd + 8bd90a3 commit e46e339

File tree

3 files changed

+9
-7
lines changed

3 files changed

+9
-7
lines changed

src/Helpers/Str.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,4 @@ public static function slugify($text = null, $divider = '-'): string
88
{
99
return strtolower(trim(preg_replace('/[^A-Za-z0-9-]+/', $divider, $text)));
1010
}
11-
}
11+
}

src/Traits/AssetTrait.php

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ trait AssetTrait
2020
public function addCss(Css $css, string $relativePath = null): self
2121
{
2222
$this->appendCss($css, $relativePath);
23+
2324
return $this;
2425
}
2526

@@ -34,11 +35,11 @@ public function createCss(string $filename, string $relativePath = null): Css
3435
public function appendLink(File $file, string $rel = null, string $type = null, array $attributes = [], string $relativePath = null): self
3536
{
3637
$this->links[$file->getRealPath()] = [
37-
'rel' => $rel,
38-
'type' => $type,
39-
'attributes' => $attributes,
40-
'file' => $file,
41-
'relativePath' => $relativePath
38+
'rel' => $rel,
39+
'type' => $type,
40+
'attributes' => $attributes,
41+
'file' => $file,
42+
'relativePath' => $relativePath,
4243
];
4344

4445
return $this;
@@ -47,6 +48,7 @@ public function appendLink(File $file, string $rel = null, string $type = null,
4748
public function appendCss(Css $css, string $relativePath = null): self
4849
{
4950
$this->appendLink($css, 'stylesheet', 'text/css', [], $relativePath);
51+
5052
return $this;
5153
}
5254

tests/EpubTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,4 +37,4 @@ public function testMakeSimpleEpub(): void
3737

3838
$this->assertIsString('');
3939
}
40-
}
40+
}

0 commit comments

Comments
 (0)