FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
phpDocumentor/.twig-cs-fixer.php at master · phpDocumentor/phpDocumentor · GitHub
Uh oh!
There was an error while loading.
Please reload this page
.
phpDocumentor
/
phpDocumentor
Public
Uh oh!
There was an error while loading.
Please reload this page
.
Notifications
You must be signed in to change notification settings
Fork
648
Star
4.3k
Code
Issues
146
Pull requests
23
Discussions
Actions
Projects
Security and quality
0
Insights
Additional navigation options
Code
Issues
Pull requests
Discussions
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
phpDocumentor
/
.twig-cs-fixer.php
Copy path
More file actions
More file actions
Latest commit
History
History
History
19 lines (13 loc) · 521 Bytes
Breadcrumbs
phpDocumentor
/
.twig-cs-fixer.php
Copy path
File metadata and controls
19 lines (13 loc) · 521 Bytes
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
<?php
require
__DIR__
.
'
/vendor/autoload.php
'
;
$
ruleset
=
new
TwigCsFixer
\
Ruleset
\
Ruleset
();
// You can start from a default standard
$
ruleset
->
addStandard
(
new
TwigCsFixer
\
Standard
\
TwigCsFixer
());
$
ruleset
->
overrideRule
(
new
\
TwigCsFixer
\
Rules
\
Variable
\
VariableNameRule
(
case: \
TwigCsFixer
\
Rules
\
Variable
\VariableNameRule::
CAMEL_CASE
,
));
$
ruleset
->
addRule
(
new
\
TwigCsFixer
\
ForIfRule
());
$
config
=
new
TwigCsFixer
\
Config
\
Config
();
$
config
->
setRuleset
(
$
ruleset
);
$
config
->
allowNonFixableRules
();
return
$
config
;
Back
|
FazBrowse Home
|
New Git URL