Skip to content

Commit

Permalink
Merge branch 'master' of github.com:enflow/laravel-svg
Browse files Browse the repository at this point in the history
  • Loading branch information
mbardelmeijer committed Dec 3, 2024
2 parents 100872e + ea68d96 commit a1e86d8
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 7 deletions.
2 changes: 1 addition & 1 deletion src/DomParser.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ public static function node(Svg $svg): DOMNode
return StaticCache::once(static::class.'@node-'.$svg->id(), function () use ($svg) {
$contentsWithoutComments = preg_replace('/<!--(.|\s)*?-->/', '', $svg->contents);

$dom = new DOMDocument();
$dom = new DOMDocument;
@$dom->loadXML($contentsWithoutComments);

return $dom->getElementsByTagName('svg')->item(0);
Expand Down
4 changes: 1 addition & 3 deletions src/Exceptions/SvgException.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,4 @@

namespace Enflow\Svg\Exceptions;

interface SvgException
{
}
interface SvgException {}
4 changes: 1 addition & 3 deletions src/Middleware/InjectSvgSpritesheet.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,7 @@

class InjectSvgSpritesheet
{
public function __construct(private Spritesheet $spritesheet)
{
}
public function __construct(private Spritesheet $spritesheet) {}

public function handle(Request $request, Closure $next)
{
Expand Down

0 comments on commit a1e86d8

Please sign in to comment.