MNT Run module-standardiser (#556)

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

View File

@ -25,7 +25,9 @@
},
"require-dev": {
"phpunit/phpunit": "^9.6",
"squizlabs/php_codesniffer": "^3"
"squizlabs/php_codesniffer": "^3",
"silverstripe/standards": "^1",
"phpstan/extension-installer": "^1.3"
},
"autoload": {
"psr-4": {

3
phpstan.neon.dist Normal file
View File

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

View File

@ -12,6 +12,7 @@ use SilverStripe\ORM\DataExtension;
use SilverStripe\ORM\DataObject;
use SilverStripe\ORM\DataQuery;
use SilverStripe\ORM\DB;
use SilverStripe\ORM\ManyManyList;
use SilverStripe\ORM\Queries\SQLSelect;
use SilverStripe\Security\Group;
use SilverStripe\Security\PermissionProvider;
@ -21,7 +22,7 @@ use SilverStripe\Subsites\State\SubsiteState;
/**
* Extension for the Group object to add subsites support
*
* @method SilverStripe\ORM\ManyManyList<Subsite> Subsites()
* @method ManyManyList<Subsite> Subsites()
*
* @extends DataExtension<Group&static>
*/

View File

@ -19,6 +19,7 @@ use SilverStripe\ORM\ArrayList;
use SilverStripe\ORM\DataExtension;
use SilverStripe\ORM\DataObject;
use SilverStripe\ORM\DataQuery;
use SilverStripe\ORM\ManyManyList;
use SilverStripe\ORM\Map;
use SilverStripe\ORM\Queries\SQLSelect;
use SilverStripe\Security\Member;
@ -33,7 +34,7 @@ use SilverStripe\VersionedAdmin\Controllers\HistoryViewerController;
/**
* Extension for the SiteTree object to add subsites support
*
* @method SilverStripe\ORM\ManyManyList<SiteTree> CrossSubsiteLinkTracking()
* @method ManyManyList<SiteTree> CrossSubsiteLinkTracking()
* @method Subsite Subsite()
*
* @extends DataExtension<SiteTree&static>

View File

@ -24,6 +24,8 @@ use SilverStripe\ORM\DataList;
use SilverStripe\ORM\DataObject;
use SilverStripe\ORM\DB;
use SilverStripe\ORM\SS_List;
use SilverStripe\ORM\HasManyList;
use SilverStripe\ORM\ManyManyList;
use SilverStripe\Security\Group;
use SilverStripe\Security\Member;
use SilverStripe\Security\Permission;
@ -38,8 +40,8 @@ use UnexpectedValueException;
* You can simulate subsite access without setting up virtual hosts by appending ?SubsiteID=<ID> to the request.
*
* @package subsites
* @method SilverStripe\ORM\HasManyList<SubsiteDomain> Domains()
* @method SilverStripe\ORM\ManyManyList<Group> Groups()
* @method HasManyList<SubsiteDomain> Domains()
* @method ManyManyList<Group> Groups()
*/
class Subsite extends DataObject
{