Skip to content

Commit 43f68ff

Browse files
committed
swap out underlying Symfony coding standard
1 parent 311bfe7 commit 43f68ff

File tree

2 files changed

+7
-5
lines changed

2 files changed

+7
-5
lines changed

.travis.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ before_script:
1515
- cp ruleset.xml vendor/squizlabs/php_codesniffer/src/Standards/MO4/
1616
- cp -R Sniffs vendor/squizlabs/php_codesniffer/src/Standards/MO4/
1717
- cp -R Tests vendor/squizlabs/php_codesniffer/src/Standards/MO4/
18+
- (cd vendor/squizlabs/php_codesniffer/CodeSniffer/Standards ; git clone https://github.com/djoos/Symfony-coding-standard.git Symfony ; mv Symfony/Symfony/* Symfony/)
1819

1920
script:
2021
- (cd vendor/squizlabs/php_codesniffer ; ../../bin/phpunit --filter MO4)

README.md

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@ Provides a CodeSniffer ruleset
77
Requires
88

99
* [PHP CodeSniffer](https://github.com/squizlabs/PHP_CodeSniffer)
10-
* [Symfony Coding Standard](https://github.com/xalopp/symfony-coding-standard)
10+
* [Symfony Coding Standard](https://github.com/djoos/Symfony-coding-standard)
1111

12-
##MO4 Coding Standard
12+
## MO4 Coding Standard
1313

1414
The MO4 Coding Standard is an extension of the [Symfony Coding Standard](http://symfony.com/doc/current/contributing/code/standards.html) and adds following rules:
1515

@@ -38,8 +38,9 @@ The MO4 Coding Standard is an extension of the [Symfony Coding Standard](http://
3838
phpcs `Standards` directory:
3939

4040
cd /path/to/pear/PHP/CodeSniffer/Standards
41-
git clone git://github.com/xalopp/symfony-coding-standard.git Symfony
42-
git clone git://github.com/mayflower/mo4-coding-standard.git MO4
41+
git clone https://github.com/djoos/Symfony-coding-standard.git Symfony
42+
mv Symfony/Symfony/* Symfony/
43+
git clone https://github.com/mayflower/mo4-coding-standard.git MO4
4344

4445
4. Select the MO4 ruleset as your default coding standard:
4546

@@ -60,7 +61,7 @@ To check the coding standard, run in the repository root:
6061
The unit-tests are run from within the PHP_CodeSniffer directory
6162

6263
* clone the [CodeSniffer repository](https://github.com/squizlabs/PHP_CodeSniffer)
63-
* symlink, copy or clone the [Symfony Coding Standard](https://github.com/xalopp/symfony-coding-standard) and symlink, copy or move it to `CodeSniffer/Standards/Symfony`
64+
* symlink, copy or clone the [Symfony Coding Standard](https://github.com/djoos/Symfony-coding-standard) and symlink, copy or move its `Symfony` subdirectory to `CodeSniffer/Standards/Symfony`
6465
* symlink, copy or clone this repository to `CodeSniffer/Standards/MO4`
6566
* from the CodeSniffer repository root run `phpunit --filter MO4`
6667

0 commit comments

Comments
 (0)