-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
b44fc33
commit b642bdc
Showing
1 changed file
with
15 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -31,9 +31,9 @@ then you should add it as a development-time dependency: | |
<?php | ||
|
||
use Nexus\CsConfig\Factory; | ||
use Nexus\CsConfig\Ruleset\Nexus73; | ||
use Nexus\CsConfig\Ruleset\Nexus82; | ||
|
||
return Factory::create(new Nexus73())->forProjects(); | ||
return Factory::create(new Nexus82())->forProjects(); | ||
|
||
``` | ||
|
||
|
@@ -61,10 +61,10 @@ two optional arguments (the email address and starting year of license). | |
<?php | ||
|
||
use Nexus\CsConfig\Factory; | ||
use Nexus\CsConfig\Ruleset\Nexus73; | ||
use Nexus\CsConfig\Ruleset\Nexus82; | ||
|
||
-return Factory::create(new Nexus73())->forProjects(); | ||
+return Factory::create(new Nexus73())->forLibrary('My Library', 'John Doe', '[email protected]', 2020); | ||
-return Factory::create(new Nexus82())->forProjects(); | ||
+return Factory::create(new Nexus82())->forLibrary('My Library', 'John Doe', '[email protected]', 2020); | ||
``` | ||
|
||
This setting will configure a license header similar to below: | ||
|
@@ -93,10 +93,10 @@ these will not be shown on the license header allowing flexibility on the copyri | |
<?php | ||
|
||
use Nexus\CsConfig\Factory; | ||
use Nexus\CsConfig\Ruleset\Nexus73; | ||
use Nexus\CsConfig\Ruleset\Nexus82; | ||
|
||
-return Factory::create(new Nexus73())->forProjects(); | ||
+return Factory::create(new Nexus73())->forLibrary('My Library', 'John Doe'); | ||
-return Factory::create(new Nexus82())->forProjects(); | ||
+return Factory::create(new Nexus82())->forLibrary('My Library', 'John Doe'); | ||
``` | ||
|
||
This will give the following license header: | ||
|
@@ -124,10 +124,10 @@ If you feel that a specific rule in the ruleset is not appropriate for you, you | |
<?php | ||
|
||
use Nexus\CsConfig\Factory; | ||
use Nexus\CsConfig\Ruleset\Nexus73; | ||
use Nexus\CsConfig\Ruleset\Nexus82; | ||
|
||
-return Factory::create(new Nexus73())->forProjects(); | ||
+return Factory::create(new Nexus73(), [ | ||
-return Factory::create(new Nexus82())->forProjects(); | ||
+return Factory::create(new Nexus82(), [ | ||
+ 'binary_operator_spaces' => false, | ||
+])->forProjects(); | ||
|
||
|
@@ -159,10 +159,10 @@ containing your desired options. | |
<?php | ||
|
||
use Nexus\CsConfig\Factory; | ||
use Nexus\CsConfig\Ruleset\Nexus73; | ||
use Nexus\CsConfig\Ruleset\Nexus82; | ||
|
||
-return Factory::create(new Nexus73())->forProjects(); | ||
+return Factory::create(new Nexus73(), [], [ | ||
-return Factory::create(new Nexus82())->forProjects(); | ||
+return Factory::create(new Nexus82(), [], [ | ||
+ 'usingCache' => false, | ||
+ 'hideProgress => true, | ||
+])->forProjects(); | ||
|
@@ -194,7 +194,7 @@ final class MyCompany extends AbstractRuleset | |
'@PSR2' => true, | ||
... | ||
]; | ||
$this->requiredPHPVersion = 70400; | ||
$this->requiredPHPVersion = 80200; | ||
$this->autoActivateIsRiskyAllowed = true; | ||
} | ||
} | ||
|