-
Notifications
You must be signed in to change notification settings - Fork 7
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
78e8221
commit 7bd0caf
Showing
23 changed files
with
459 additions
and
330 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
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 |
---|---|---|
@@ -0,0 +1,41 @@ | ||
<?php | ||
|
||
$header = <<<'EOF' | ||
This file is part of Sulu. | ||
(c) Sulu GmbH | ||
This source file is subject to the MIT license that is bundled | ||
with this source code in the file LICENSE. | ||
EOF; | ||
|
||
return PhpCsFixer\Config::create() | ||
->setRiskyAllowed(true) | ||
->setRules([ | ||
'@Symfony' => true, | ||
'@Symfony:risky' => true, | ||
'ordered_imports' => true, | ||
'concat_space' => ['spacing' => 'one'], | ||
'array_syntax' => ['syntax' => 'short'], | ||
'phpdoc_align' => false, | ||
'class_definition' => [ | ||
'multiLineExtendsEachSingleLine' => true, | ||
], | ||
'linebreak_after_opening_tag' => true, | ||
'declare_strict_types' => true, | ||
'mb_str_functions' => true, | ||
'no_php4_constructor' => true, | ||
'no_unreachable_default_argument_value' => true, | ||
'no_useless_else' => true, | ||
'no_useless_return' => true, | ||
'php_unit_strict' => true, | ||
'phpdoc_order' => true, | ||
'strict_comparison' => true, | ||
'strict_param' => true, | ||
'header_comment' => ['header' => $header], | ||
]) | ||
->setFinder( | ||
PhpCsFixer\Finder::create() | ||
->exclude('vendor') | ||
->in(__DIR__) | ||
); |
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
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
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 |
---|---|---|
@@ -1,31 +1,52 @@ | ||
{ | ||
"name": "massive/web-twig-extensions", | ||
"name": "sulu/web-twig", | ||
"type": "library", | ||
"description": "The web twig extension for web-js component management", | ||
"license": "MIT", | ||
"authors": [ | ||
{ | ||
"name": "Massive Web Twig contributors", | ||
"homepage": "https://github.com/massiveart/web-twig/graphs/contributors" | ||
"name": "Sulu Web Twig contributors", | ||
"homepage": "https://github.com/sulu/web-twig/graphs/contributors" | ||
} | ||
], | ||
"require": { | ||
"php": "~5.5 || ~7.0", | ||
"twig/twig": "^1.11 || ^2.0" | ||
"php": "^7.1", | ||
"twig/twig": "^1.34 || ^2.4" | ||
}, | ||
"require-dev": { | ||
"phpunit/phpunit": "^5.0 || ^6.0 || ^7.0", | ||
"symfony/property-access": "^2.8 || ^3.0 || ^4.0", | ||
"symfony/intl": "^2.8 || ^3.0 || ^4.0", | ||
"friendsofphp/php-cs-fixer": "^2.11" | ||
"friendsofphp/php-cs-fixer": "^2.11", | ||
"phpstan/phpstan": "^0.11.5", | ||
"phpstan/phpstan-phpunit": "^0.11.0", | ||
"jangregor/phpstan-prophecy": "^0.4.0" | ||
}, | ||
"suggest": { | ||
"symfony/property-access": "The ImageTwigExtension requires the symfony/property-access service.", | ||
"symfony/intl": "The IntlTwigExtension requires the symfony/intl service." | ||
}, | ||
"autoload": { | ||
"psr-4": { | ||
"Massive\\Component\\Web\\": "src/" | ||
"Sulu\\Component\\Web\\Twig\\": "src/" | ||
} | ||
}, | ||
"autoload-dev": { | ||
"psr-4": { | ||
"Sulu\\Component\\Web\\Twig\\Tests\\": "tests/" | ||
} | ||
}, | ||
"scripts": { | ||
"test": [ | ||
"@phpunit" | ||
], | ||
"lint": [ | ||
"@phpstan", | ||
"@php-cs" | ||
], | ||
"phpunit": "@php vendor/bin/phpunit", | ||
"phpstan": "@php vendor/bin/phpstan analyze -c ./phpstan.neon", | ||
"php-cs": "@php vendor/bin/php-cs-fixer fix --verbose --diff --dry-run", | ||
"php-cs-fix": "@php vendor/bin/php-cs-fixer fix" | ||
} | ||
} |
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
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
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
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
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
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 |
---|---|---|
@@ -0,0 +1,12 @@ | ||
includes: | ||
- vendor/jangregor/phpstan-prophecy/src/extension.neon | ||
- vendor/phpstan/phpstan-phpunit/extension.neon | ||
- vendor/phpstan/phpstan-phpunit/rules.neon | ||
|
||
parameters: | ||
level: max | ||
paths: | ||
- src | ||
- tests | ||
excludes_analyse: | ||
- %currentWorkingDirectory%/vendor/* |
Oops, something went wrong.