mirror of
https://github.com/silverstripe/silverstripe-subsites
synced 2024-10-22 11:05:55 +02:00
MNT Run module-standardiser (#556)
This commit is contained in:
parent
11a941f637
commit
557a9f67ff
@ -25,7 +25,9 @@
|
|||||||
},
|
},
|
||||||
"require-dev": {
|
"require-dev": {
|
||||||
"phpunit/phpunit": "^9.6",
|
"phpunit/phpunit": "^9.6",
|
||||||
"squizlabs/php_codesniffer": "^3"
|
"squizlabs/php_codesniffer": "^3",
|
||||||
|
"silverstripe/standards": "^1",
|
||||||
|
"phpstan/extension-installer": "^1.3"
|
||||||
},
|
},
|
||||||
"autoload": {
|
"autoload": {
|
||||||
"psr-4": {
|
"psr-4": {
|
||||||
|
3
phpstan.neon.dist
Normal file
3
phpstan.neon.dist
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
parameters:
|
||||||
|
paths:
|
||||||
|
- src
|
@ -12,6 +12,7 @@ use SilverStripe\ORM\DataExtension;
|
|||||||
use SilverStripe\ORM\DataObject;
|
use SilverStripe\ORM\DataObject;
|
||||||
use SilverStripe\ORM\DataQuery;
|
use SilverStripe\ORM\DataQuery;
|
||||||
use SilverStripe\ORM\DB;
|
use SilverStripe\ORM\DB;
|
||||||
|
use SilverStripe\ORM\ManyManyList;
|
||||||
use SilverStripe\ORM\Queries\SQLSelect;
|
use SilverStripe\ORM\Queries\SQLSelect;
|
||||||
use SilverStripe\Security\Group;
|
use SilverStripe\Security\Group;
|
||||||
use SilverStripe\Security\PermissionProvider;
|
use SilverStripe\Security\PermissionProvider;
|
||||||
@ -21,7 +22,7 @@ use SilverStripe\Subsites\State\SubsiteState;
|
|||||||
/**
|
/**
|
||||||
* Extension for the Group object to add subsites support
|
* Extension for the Group object to add subsites support
|
||||||
*
|
*
|
||||||
* @method SilverStripe\ORM\ManyManyList<Subsite> Subsites()
|
* @method ManyManyList<Subsite> Subsites()
|
||||||
*
|
*
|
||||||
* @extends DataExtension<Group&static>
|
* @extends DataExtension<Group&static>
|
||||||
*/
|
*/
|
||||||
|
@ -19,6 +19,7 @@ use SilverStripe\ORM\ArrayList;
|
|||||||
use SilverStripe\ORM\DataExtension;
|
use SilverStripe\ORM\DataExtension;
|
||||||
use SilverStripe\ORM\DataObject;
|
use SilverStripe\ORM\DataObject;
|
||||||
use SilverStripe\ORM\DataQuery;
|
use SilverStripe\ORM\DataQuery;
|
||||||
|
use SilverStripe\ORM\ManyManyList;
|
||||||
use SilverStripe\ORM\Map;
|
use SilverStripe\ORM\Map;
|
||||||
use SilverStripe\ORM\Queries\SQLSelect;
|
use SilverStripe\ORM\Queries\SQLSelect;
|
||||||
use SilverStripe\Security\Member;
|
use SilverStripe\Security\Member;
|
||||||
@ -33,7 +34,7 @@ use SilverStripe\VersionedAdmin\Controllers\HistoryViewerController;
|
|||||||
/**
|
/**
|
||||||
* Extension for the SiteTree object to add subsites support
|
* Extension for the SiteTree object to add subsites support
|
||||||
*
|
*
|
||||||
* @method SilverStripe\ORM\ManyManyList<SiteTree> CrossSubsiteLinkTracking()
|
* @method ManyManyList<SiteTree> CrossSubsiteLinkTracking()
|
||||||
* @method Subsite Subsite()
|
* @method Subsite Subsite()
|
||||||
*
|
*
|
||||||
* @extends DataExtension<SiteTree&static>
|
* @extends DataExtension<SiteTree&static>
|
||||||
|
@ -24,6 +24,8 @@ use SilverStripe\ORM\DataList;
|
|||||||
use SilverStripe\ORM\DataObject;
|
use SilverStripe\ORM\DataObject;
|
||||||
use SilverStripe\ORM\DB;
|
use SilverStripe\ORM\DB;
|
||||||
use SilverStripe\ORM\SS_List;
|
use SilverStripe\ORM\SS_List;
|
||||||
|
use SilverStripe\ORM\HasManyList;
|
||||||
|
use SilverStripe\ORM\ManyManyList;
|
||||||
use SilverStripe\Security\Group;
|
use SilverStripe\Security\Group;
|
||||||
use SilverStripe\Security\Member;
|
use SilverStripe\Security\Member;
|
||||||
use SilverStripe\Security\Permission;
|
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.
|
* You can simulate subsite access without setting up virtual hosts by appending ?SubsiteID=<ID> to the request.
|
||||||
*
|
*
|
||||||
* @package subsites
|
* @package subsites
|
||||||
* @method SilverStripe\ORM\HasManyList<SubsiteDomain> Domains()
|
* @method HasManyList<SubsiteDomain> Domains()
|
||||||
* @method SilverStripe\ORM\ManyManyList<Group> Groups()
|
* @method ManyManyList<Group> Groups()
|
||||||
*/
|
*/
|
||||||
class Subsite extends DataObject
|
class Subsite extends DataObject
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user