Skip to content

Commit d4ad0a8

Browse files
committed
Maintenance patch.
1 parent b72bb78 commit d4ad0a8

File tree

2 files changed

+36
-1
lines changed

2 files changed

+36
-1
lines changed

.github/workflows/php-cs-fixer.yml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
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

tests.php

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,11 @@
11
<?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+
29
// Prevent running tests outside of Composer (if the package is deployed
310
// somewhere live with this file still intact, useful to prevent hammering and
411
// cycles being needlessly wasted).
@@ -36,7 +43,7 @@
3643

3744
// Fetch the signatures needed for testing the scanner.
3845
$ZipObj = new \ZipArchive();
39-
if ($ZipObj->open($TestsPath . 'signatures.zip') === TRUE) {
46+
if ($ZipObj->open($TestsPath . 'signatures.zip') === true) {
4047
$ZipObj->extractTo($TestsPath . 'signatures' . DIRECTORY_SEPARATOR);
4148
$ZipObj->close();
4249
unset($ZipObj);

0 commit comments

Comments
 (0)