File tree Expand file tree Collapse file tree 2 files changed +36
-1
lines changed Expand file tree Collapse file tree 2 files changed +36
-1
lines changed Original file line number Diff line number Diff line change
1
+ name : PHP-CS-Fixer
2
+
3
+ on : [push, pull_request]
4
+
5
+ jobs :
6
+ build :
7
+ runs-on : ${{ matrix.operating-system }}
8
+
9
+ strategy :
10
+ matrix :
11
+ operating-system : [ubuntu-latest]
12
+ php-versions : ['7.4']
13
+ name : PHP ${{ matrix.php-versions }} on ${{ matrix.operating-system }}
14
+ steps :
15
+ - name : Checkout
16
+ uses : actions/checkout@v2
17
+
18
+ - name : Set up PHP
19
+ uses : shivammathur/setup-php@v2
20
+ with :
21
+ php-version : ${{ matrix.php-versions }}
22
+ extensions : pcre
23
+ tools : php-cs-fixer
24
+
25
+ - name : PHP-CS-Fixer Check
26
+ run : |
27
+ php-cs-fixer fix -v --dry-run ./src --rules=@PSR2
28
+ php-cs-fixer fix -v --dry-run ./test.php --rules=@PSR2
Original file line number Diff line number Diff line change 1
1
<?php
2
+ /**
3
+ * This file is a part of the phpMussel\Core package.
4
+ * Homepage: https://phpmussel.github.io/
5
+ *
6
+ * PHPMUSSEL COPYRIGHT 2013 AND BEYOND BY THE PHPMUSSEL TEAM.
7
+ */
8
+
2
9
// Prevent running tests outside of Composer (if the package is deployed
3
10
// somewhere live with this file still intact, useful to prevent hammering and
4
11
// cycles being needlessly wasted).
36
43
37
44
// Fetch the signatures needed for testing the scanner.
38
45
$ ZipObj = new \ZipArchive ();
39
- if ($ ZipObj ->open ($ TestsPath . 'signatures.zip ' ) === TRUE ) {
46
+ if ($ ZipObj ->open ($ TestsPath . 'signatures.zip ' ) === true ) {
40
47
$ ZipObj ->extractTo ($ TestsPath . 'signatures ' . DIRECTORY_SEPARATOR );
41
48
$ ZipObj ->close ();
42
49
unset($ ZipObj );
You can’t perform that action at this time.
0 commit comments