File tree Expand file tree Collapse file tree 5 files changed +35
-21
lines changed Expand file tree Collapse file tree 5 files changed +35
-21
lines changed Original file line number Diff line number Diff line change 4
4
ci : bigcommerce/internal@volatile
5
5
php : bigcommerce/internal-php@volatile
6
6
7
+ define : &php_min "8.1"
8
+
7
9
jobs_default : &jobs_default
8
10
e :
9
11
name : php/php
10
12
php-version : << matrix.php-version >>
11
13
matrix :
12
14
parameters :
13
- php-version : [ "8.1" , "8.2" ]
15
+ php-version : [ *php_min , "8.2" ]
14
16
17
+ jobs :
18
+ cs-fixer :
19
+ executor :
20
+ name : php/php
21
+ php-version : *php_min
22
+ steps :
23
+ - ci/pre-setup
24
+ - php/composer-install
25
+ - run : ./vendor/bin/php-cs-fixer fix --diff --dry-run -v
15
26
16
27
workflows :
17
28
version : 2
@@ -23,3 +34,5 @@ workflows:
23
34
- php/static-analysis :
24
35
<< : *jobs_default
25
36
generate_ide_helper : false
37
+ - cs-fixer
38
+
Original file line number Diff line number Diff line change
1
+ <?php
2
+ return (new PhpCsFixer \Config ())
3
+ ->setFinder (
4
+ PhpCsFixer \Finder::create ()
5
+ ->files ()
6
+ ->in (__DIR__ )
7
+ ->name ("*.php " )
8
+ ->ignoreVCSIgnored (true )
9
+ )
10
+ ->setRules ([
11
+ '@PSR2 ' => true ,
12
+ ]);
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 8
8
use Rector \Set \ValueObject \LevelSetList ;
9
9
10
10
return static function (RectorConfig $ rectorConfig ): void {
11
- $ rectorConfig ->paths ([__DIR__ . '/test ' , ]);
11
+ $ rectorConfig ->paths ([__DIR__ . '/test ' ]);
12
12
$ rectorConfig ->sets ([
13
13
PHPUnitSetList::PHPUNIT_100
14
14
]);
Original file line number Diff line number Diff line change @@ -55,10 +55,10 @@ public function testFailOnErrorPassesThroughToConnection()
55
55
{
56
56
$ matcher = $ this ->exactly (2 );
57
57
$ this ->connection ->expects ($ matcher )
58
- ->method ('failOnError ' )->willReturnCallback (fn () => match ($ matcher ->numberOfInvocations ()) {
59
- 1 => [true ],
60
- 2 => [false ],
61
- });
58
+ ->method ('failOnError ' )->willReturnCallback (fn () => match ($ matcher ->numberOfInvocations ()) {
59
+ 1 => [true ],
60
+ 2 => [false ],
61
+ });
62
62
Client::failOnError (true );
63
63
Client::failOnError (false );
64
64
}
@@ -75,10 +75,10 @@ public function testVerifyPeerPassesThroughToConnection()
75
75
{
76
76
$ matcher = $ this ->exactly (2 );
77
77
$ this ->connection ->expects ($ matcher )
78
- ->method ('verifyPeer ' )->willReturnCallback (fn () => match ($ matcher ->numberOfInvocations ()) {
79
- 1 => [true ],
80
- 2 => [false ],
81
- });
78
+ ->method ('verifyPeer ' )->willReturnCallback (fn () => match ($ matcher ->numberOfInvocations ()) {
79
+ 1 => [true ],
80
+ 2 => [false ],
81
+ });
82
82
Client::verifyPeer (true );
83
83
Client::verifyPeer (false );
84
84
}
You can’t perform that action at this time.
0 commit comments