File tree Expand file tree Collapse file tree 7 files changed +36
-48
lines changed
Expand file tree Collapse file tree 7 files changed +36
-48
lines changed Original file line number Diff line number Diff line change 1818 - name : PHP-CS-Fixer
1919 uses : docker://oskarstark/php-cs-fixer-ga
2020 with :
21- args : --config=.php_cs --diff --dry-run
21+ args : --config=.php-cs-fixer.php --diff --dry-run
2222
2323 check-spec :
2424 name : Check SDK is in sync with spec
3434 run : CI_TEST=1 vendor/bin/jane-openapi generate --config-file=.jane-openapi.php
3535
3636 - name : Fix CS on ci_generated directory
37- run : vendor/bin/php-cs-fixer fix --diff --dry-run ci_generated
37+ run : vendor/bin/php-cs-fixer fix --config=.php-cs-fixer.php -- diff --dry-run ci_generated
3838
3939 - name : Check ci_generated and generated directories are equal
4040 run : diff ci_generated generated
Original file line number Diff line number Diff line change @@ -7,8 +7,9 @@ composer.phar
77
88# CS
99.php_cs.cache
10- phpunit.xml
10+ .php-cs-fixer.cache
1111
1212# tests
13+ phpunit.xml
1314ci_generated
1415.phpunit.result.cache
Original file line number Diff line number Diff line change 1414 'strict ' => false ,
1515 'clean-generated ' => true ,
1616 'use-fixer ' => true ,
17- 'fixer-config-file ' => __DIR__ . '/.php_cs ' ,
17+ 'fixer-config-file ' => __DIR__ . '/.php-cs-fixer.php ' ,
1818];
Original file line number Diff line number Diff line change 1+ <?php
2+
3+ $ header = <<<'EOF'
4+ This file is part of JoliCode's Slack PHP API project.
5+
6+ 7+
8+ For the full copyright and license information, please view the LICENSE
9+ file that was distributed with this source code.
10+ EOF;
11+
12+ $ finder = PhpCsFixer \Finder::create ()
13+ ->in (__DIR__ )
14+ ->exclude ('docs ' )
15+ ->exclude ('ci_generated ' )
16+ ;
17+ $ config = new PhpCsFixer \Config ();
18+
19+ return $ config ->setRules ([
20+ '@Symfony ' => true ,
21+ '@Symfony:risky ' => true ,
22+ '@PHP71Migration ' => true ,
23+ 'header_comment ' => array ('header ' => $ header ),
24+ 'strict_param ' => true ,
25+ 'array_syntax ' => ['syntax ' => 'short ' ],
26+ ])
27+ ->setRiskyAllowed (true )
28+ ->setFinder ($ finder )
29+ ;
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 3737 "jane-php/open-api-2" : " ~6.3.0" ,
3838 "symfony/http-client" : " ^4.3.3 || ^5.1" ,
3939 "nyholm/psr7" : " ^1.2" ,
40- "friendsofphp/php-cs-fixer" : " ^2.17 " ,
40+ "friendsofphp/php-cs-fixer" : " ^3.0 " ,
4141 "symfony/phpunit-bridge" : " ^5.2" ,
4242 "opis/json-schema" : " ^1.0" ,
4343 "symfony/console" : " ^5.1" ,
Original file line number Diff line number Diff line change 1717
1818class Client extends ApiClient
1919{
20- const CURSOR_PAGINATION = [
20+ public const CURSOR_PAGINATION = [
2121 'channelsList ' => 'channels ' ,
2222 'conversationsHistory ' => 'messages ' ,
2323 'conversationsList ' => 'channels ' ,
You can’t perform that action at this time.
0 commit comments