Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 99e4171

Browse files
author
Markus Bandion
committed
initial commit
0 parents commit 99e4171

File tree

16 files changed

+4833
-0
lines changed

16 files changed

+4833
-0
lines changed

‎.editorconfig‎

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
root = true
2+
3+
[*]
4+
end_of_line = lf
5+
trim_trailing_whitespace = true
6+
indent_style = space
7+
indent_size = 4
8+
insert_final_newline = true
9+
10+
[Makefile]
11+
indent_style = tab

‎.gitattributes‎

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
/.github/ export-ignore
2+
/.travis/ export-ignore
3+
/test/ export-ignore
4+
/.editorconfig export-ignore
5+
/.gitattributes export-ignore
6+
/.gitignore export-ignore
7+
/.php_cs.dist export-ignore
8+
/.travis.yml export-ignore
9+
/Makefile export-ignore
10+
/phpstan.neon export-ignore

‎.gitignore‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
/.build/
2+
/vendor/

‎.php_cs.dist‎

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
<?php
2+
3+
/*
4+
* 25th-floor GmbH
5+
*
6+
* @link https://www.25th-floor.com
7+
* @copyright Copyright (c) 2018 25th-floor GmbH
8+
*/
9+
10+
require __DIR__ . '/vendor/autoload.php';
11+
12+
$finder = PhpCsFixer\Finder::create()
13+
->in(__DIR__);
14+
15+
return TwentyFifth\PhpCsFixer\Php71Config::create()
16+
->setCacheFile(__DIR__. '/.build/php-cs-fixer/.php_cs.cache')
17+
->setFinder($finder);

‎LICENSE‎

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
The MIT License (MIT)
2+
3+
Copyright (c) 2019 25th-floor
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy of
6+
this software and associated documentation files (the "Software"), to deal in
7+
the Software without restriction, including without limitation the rights to
8+
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
9+
of the Software, and to permit persons to whom the Software is furnished to do
10+
so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.

‎Makefile‎

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
.PHONY: it
2+
it: cs stan test
3+
4+
.PHONY: coverage
5+
coverage: vendor
6+
@mkdir \
7+
-p .build/phpunit/html
8+
9+
@vendor/bin/phpunit \
10+
--configuration=tests/Unit \
11+
--dump-xdebug-filter=.build/phpunit/xdebug-filter.php
12+
13+
@vendor/bin/phpunit \
14+
--configuration=tests/Unit \
15+
--coverage-html=.build/phpunit/html \
16+
--coverage-clover=.build/phpunit/clover.xml \
17+
--prepend=.build/phpunit/xdebug-filter.php
18+
19+
.PHONY: cs
20+
cs: vendor
21+
@mkdir \
22+
-p .build/php-cs-fixer
23+
24+
@vendor/bin/php-cs-fixer \
25+
fix \
26+
--diff \
27+
--verbose
28+
29+
.PHONY: stan
30+
stan: vendor
31+
@mkdir \
32+
-p .build/phpstan
33+
34+
@vendor/bin/phpstan \
35+
analyse \
36+
--configuration phpstan.neon
37+
38+
.PHONY: test
39+
test: vendor
40+
@mkdir \
41+
-p .build/phpunit
42+
43+
@vendor/bin/phpunit \
44+
-c tests/Unit
45+
46+
vendor: composer.json composer.lock
47+
composer validate
48+
composer install

‎README.md‎

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
25th-floor php-cs-fixer-config
2+
==============================
3+
4+
Provides multiple rule sets for (`friendsofphp/php-cs-fixer`)[https://github.com/FriendsOfPHP/PHP-CS-Fixer].
5+
This repository is based on (`localheinz/php-cs-fixer-config`)[https://github.com/localheinz/php-cs-fixer-config].
6+
7+
Requirements
8+
------------
9+
10+
PHP needs to be a minimum version of PHP 7.1.0.
11+
12+
Installation
13+
------------
14+
15+
Run
16+
17+
```ssh
18+
$ composer require --dev twentyfifth/php-cs-fixer-config
19+
```
20+
21+
Usage
22+
-----
23+
24+
Create a configuration file `.php_cs.dist` in the root of your project:
25+
26+
```php
27+
<?php
28+
29+
$finder = PhpCsFixer\Finder::create()
30+
->in(__DIR__)
31+
;
32+
33+
return TwentyFifth\PhpCsFixer\Php71Config::create()
34+
->setFinder($finder)
35+
;
36+
```

‎composer.json‎

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
{
2+
"name": "twentyfifth/php-cs-fixer-config",
3+
"type": "library",
4+
"description": "Provides the 25th-floor configuration for friendsofphp/php-cs-fixer.",
5+
"keywords": [
6+
"php-cs-fixer",
7+
"25th-floor"
8+
],
9+
"homepage": "https://www.25th-floor.com/",
10+
"license": "MIT",
11+
"require": {
12+
"php": "^7.1",
13+
"friendsofphp/php-cs-fixer": "^2.15"
14+
},
15+
"require-dev": {
16+
"jangregor/phpstan-prophecy": "^0.4.1",
17+
"phpstan/phpstan": "^0.11.8",
18+
"phpstan/phpstan-deprecation-rules": "^0.11.2",
19+
"phpstan/phpstan-strict-rules": "^0.11.1",
20+
"phpunit/phpunit": "^8.2"
21+
},
22+
"autoload": {
23+
"psr-4": {
24+
"TwentyFifth\\PhpCsFixer\\": "src/"
25+
}
26+
},
27+
"autoload-dev": {
28+
"psr-4": {
29+
"TwentyFifth\\PhpCsFixer\\Tests\\": "tests/"
30+
}
31+
}
32+
}

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /