diff --git a/composer.json b/composer.json index 6279b3d..7c0c113 100644 --- a/composer.json +++ b/composer.json @@ -22,7 +22,9 @@ "require-dev": { "phpunit/phpunit": "^9.6", "squizlabs/php_codesniffer": "^3", - "symbiote/silverstripe-queuedjobs": "^5" + "symbiote/silverstripe-queuedjobs": "^5", + "silverstripe/standards": "^1", + "phpstan/extension-installer": "^1.3" }, "suggest": { "symbiote/silverstripe-queuedjobs": "Provides a more efficient method of generating/updating the report" diff --git a/phpstan.neon.dist b/phpstan.neon.dist new file mode 100644 index 0000000..beb9de3 --- /dev/null +++ b/phpstan.neon.dist @@ -0,0 +1,3 @@ +parameters: + paths: + - src diff --git a/src/Model/BrokenExternalPageTrack.php b/src/Model/BrokenExternalPageTrack.php index be7b8be..1b65d78 100644 --- a/src/Model/BrokenExternalPageTrack.php +++ b/src/Model/BrokenExternalPageTrack.php @@ -7,11 +7,11 @@ use SilverStripe\ExternalLinks\Model\BrokenExternalLink; use SilverStripe\Versioned\Versioned; use SilverStripe\ORM\DataObject; +use SilverStripe\ORM\HasManyList; /** * Represents a track for a single page - * @method SilverStripe\ORM\HasManyList BrokenLinks() - * @method SiteTree Page() + * @method HasManyList BrokenLinks() * @method BrokenExternalPageTrackStatus Status() */ class BrokenExternalPageTrack extends DataObject diff --git a/src/Model/BrokenExternalPageTrackStatus.php b/src/Model/BrokenExternalPageTrackStatus.php index bf0d551..4178a2a 100644 --- a/src/Model/BrokenExternalPageTrackStatus.php +++ b/src/Model/BrokenExternalPageTrackStatus.php @@ -6,14 +6,15 @@ use SilverStripe\i18n\i18nEntityProvider; use SilverStripe\Versioned\Versioned; use SilverStripe\ORM\DataObject; +use SilverStripe\ORM\HasManyList; /** * Represents the status of a track run * * @property int $TotalPages Get total pages count * @property int $CompletedPages Get completed pages count - * @method SilverStripe\ORM\HasManyList BrokenLinks() - * @method SilverStripe\ORM\HasManyList TrackedPages() + * @method HasManyList BrokenLinks() + * @method HasManyList TrackedPages() */ class BrokenExternalPageTrackStatus extends DataObject implements i18nEntityProvider {