MNT Run module-standardiser (#119)

This commit is contained in:
Guy Sartorelli 2024-02-02 14:00:14 +13:00 committed by GitHub
parent e8bdf1203d
commit 81f6e73de1
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 11 additions and 5 deletions

View File

@ -22,7 +22,9 @@
"require-dev": { "require-dev": {
"phpunit/phpunit": "^9.6", "phpunit/phpunit": "^9.6",
"squizlabs/php_codesniffer": "^3", "squizlabs/php_codesniffer": "^3",
"symbiote/silverstripe-queuedjobs": "^5" "symbiote/silverstripe-queuedjobs": "^5",
"silverstripe/standards": "^1",
"phpstan/extension-installer": "^1.3"
}, },
"suggest": { "suggest": {
"symbiote/silverstripe-queuedjobs": "Provides a more efficient method of generating/updating the report" "symbiote/silverstripe-queuedjobs": "Provides a more efficient method of generating/updating the report"

3
phpstan.neon.dist Normal file
View File

@ -0,0 +1,3 @@
parameters:
paths:
- src

View File

@ -7,11 +7,11 @@ use SilverStripe\ExternalLinks\Model\BrokenExternalPageTrackStatus;
use SilverStripe\ExternalLinks\Model\BrokenExternalLink; use SilverStripe\ExternalLinks\Model\BrokenExternalLink;
use SilverStripe\Versioned\Versioned; use SilverStripe\Versioned\Versioned;
use SilverStripe\ORM\DataObject; use SilverStripe\ORM\DataObject;
use SilverStripe\ORM\HasManyList;
/** /**
* Represents a track for a single page * Represents a track for a single page
* @method SilverStripe\ORM\HasManyList<BrokenExternalLink> BrokenLinks() * @method HasManyList<BrokenExternalLink> BrokenLinks()
* @method SiteTree Page()
* @method BrokenExternalPageTrackStatus Status() * @method BrokenExternalPageTrackStatus Status()
*/ */
class BrokenExternalPageTrack extends DataObject class BrokenExternalPageTrack extends DataObject

View File

@ -6,14 +6,15 @@ use SilverStripe\CMS\Model\SiteTree;
use SilverStripe\i18n\i18nEntityProvider; use SilverStripe\i18n\i18nEntityProvider;
use SilverStripe\Versioned\Versioned; use SilverStripe\Versioned\Versioned;
use SilverStripe\ORM\DataObject; use SilverStripe\ORM\DataObject;
use SilverStripe\ORM\HasManyList;
/** /**
* Represents the status of a track run * Represents the status of a track run
* *
* @property int $TotalPages Get total pages count * @property int $TotalPages Get total pages count
* @property int $CompletedPages Get completed pages count * @property int $CompletedPages Get completed pages count
* @method SilverStripe\ORM\HasManyList<BrokenExternalLink> BrokenLinks() * @method HasManyList<BrokenExternalLink> BrokenLinks()
* @method SilverStripe\ORM\HasManyList<BrokenExternalPageTrack> TrackedPages() * @method HasManyList<BrokenExternalPageTrack> TrackedPages()
*/ */
class BrokenExternalPageTrackStatus extends DataObject implements i18nEntityProvider class BrokenExternalPageTrackStatus extends DataObject implements i18nEntityProvider
{ {