Skip to content

Commit

Permalink
Run pint
Browse files Browse the repository at this point in the history
  • Loading branch information
doefom committed Sep 14, 2024
1 parent 6b70040 commit 9adcfbe
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 9 deletions.
4 changes: 2 additions & 2 deletions src/Classes/TocBuilder.php
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ public function getTocMarkup(): string

public function addIdsToHeadings(): string
{
$doc = new DOMDocument();
$doc = new DOMDocument;
$doc->loadHTML($this->html);

$xpath = new DOMXPath($doc);
Expand Down Expand Up @@ -140,7 +140,7 @@ private function getHeadingsFormatted(): Collection
$minLevel = $this->minLevel;
$maxLevel = $this->maxLevel;

$doc = new DOMDocument();
$doc = new DOMDocument;
$doc->loadHTML($this->html);

$xpath = new DOMXPath($doc);
Expand Down
6 changes: 3 additions & 3 deletions src/Modifiers/Toc.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@ class Toc extends Modifier
/**
* Modify a value.
*
* @param mixed $value The value to be modified
* @param array $params Any parameters used in the modifier
* @param array $context Contextual values
* @param mixed $value The value to be modified
* @param array $params Any parameters used in the modifier
* @param array $context Contextual values
* @return mixed
*/
public function index($value, $params, $context)
Expand Down
6 changes: 3 additions & 3 deletions src/Modifiers/WithIds.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@ class WithIds extends Modifier
/**
* Modify a value.
*
* @param mixed $value The value to be modified
* @param array $params Any parameters used in the modifier
* @param array $context Contextual values
* @param mixed $value The value to be modified
* @param array $params Any parameters used in the modifier
* @param array $context Contextual values
* @return mixed
*/
public function index($value, $params, $context)
Expand Down
2 changes: 1 addition & 1 deletion src/ServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

namespace Doefom\StatamicTableOfContents;

use Doefom\StatamicTableOfContents\Modifiers\WithIds;
use Doefom\StatamicTableOfContents\Modifiers\Toc;
use Doefom\StatamicTableOfContents\Modifiers\WithIds;
use Statamic\Providers\AddonServiceProvider;

class ServiceProvider extends AddonServiceProvider
Expand Down

0 comments on commit 9adcfbe

Please sign in to comment.