diff --git a/src/Classes/TocBuilder.php b/src/Classes/TocBuilder.php index 4dd45f3..30195bd 100644 --- a/src/Classes/TocBuilder.php +++ b/src/Classes/TocBuilder.php @@ -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); @@ -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); diff --git a/src/Modifiers/Toc.php b/src/Modifiers/Toc.php index 90125c8..9bb6b20 100644 --- a/src/Modifiers/Toc.php +++ b/src/Modifiers/Toc.php @@ -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) diff --git a/src/Modifiers/WithIds.php b/src/Modifiers/WithIds.php index 87e7f8f..dcbd1b7 100644 --- a/src/Modifiers/WithIds.php +++ b/src/Modifiers/WithIds.php @@ -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) diff --git a/src/ServiceProvider.php b/src/ServiceProvider.php index acc97f2..bb7f106 100644 --- a/src/ServiceProvider.php +++ b/src/ServiceProvider.php @@ -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