Skip to content
This repository was archived by the owner on Sep 10, 2021. It is now read-only.

Commit cb6d681

Browse files
author
Jamie Snape
committed
Add PHP CS Fixer configuration
1 parent 56c898f commit cb6d681

File tree

2 files changed

+39
-0
lines changed

2 files changed

+39
-0
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
.DS_Store
44
.idea/
5+
.php_cs.cache
56
.sass-cache/
67
.vagrant/
78
bower_components/

.php_cs

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
<?php
2+
/*=========================================================================
3+
Midas Server
4+
Copyright Kitware SAS, 26 rue Louis Guérin, 69100 Villeurbanne, France.
5+
All rights reserved.
6+
For more information visit http://www.kitware.com/.
7+
8+
Licensed under the Apache License, Version 2.0 (the "License");
9+
you may not use this file except in compliance with the License.
10+
You may obtain a copy of the License at
11+
12+
http://www.apache.org/licenses/LICENSE-2.0.txt
13+
14+
Unless required by applicable law or agreed to in writing, software
15+
distributed under the License is distributed on an "AS IS" BASIS,
16+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
17+
See the License for the specific language governing permissions and
18+
limitations under the License.
19+
=========================================================================*/
20+
21+
$finder = Symfony\CS\Finder\DefaultFinder::create()
22+
->in(__DIR__);
23+
24+
$config = Symfony\CS\Config\Config::create()
25+
->level(Symfony\CS\FixerInterface::SYMFONY_LEVEL)
26+
->fixers(array(
27+
'-psr0',
28+
'-blankline_after_open_tag',
29+
'-phpdoc_no_empty_return',
30+
'-phpdoc_params',
31+
'-phpdoc_separation',
32+
'-phpdoc_to_comment',
33+
'-phpdoc_var_without_name',
34+
))
35+
->finder($finder)
36+
->setUsingCache(true);
37+
38+
return $config;

0 commit comments

Comments
 (0)