diff --git a/src/Controllers/TaxonomyDirectoryController.php b/src/Controllers/TaxonomyDirectoryController.php index 20bbf03..fac7c9b 100644 --- a/src/Controllers/TaxonomyDirectoryController.php +++ b/src/Controllers/TaxonomyDirectoryController.php @@ -17,6 +17,8 @@ * Class TaxonomyDirectoryController * * Controller for returning a list of pages tagged with a specific Taxonomy Term + * + * @extends PageController */ class TaxonomyDirectoryController extends PageController { diff --git a/src/TaxonomyTerm.php b/src/TaxonomyTerm.php index 1c4282d..593470a 100644 --- a/src/TaxonomyTerm.php +++ b/src/TaxonomyTerm.php @@ -160,7 +160,6 @@ public function onBeforeDelete() parent::onBeforeDelete(); foreach ($this->Children() as $term) { - /** @var TaxonomyTerm $term */ $term->delete(); } } @@ -200,7 +199,6 @@ public function onAfterWrite() // Write the current term's type to all children foreach ($this->Children() as $term) { - /** @var TaxonomyTerm $term */ $term->TypeID = $this->Type()->ID; $term->write(); }