Skip to content

Commit 359b1f4

Browse files
authored
Run php-cs-fixer on 1.x (#407)
* Run php-cs-fixer on 1.x * Lock version * php-cs-fixer fix
1 parent 32a92b3 commit 359b1f4

File tree

3 files changed

+31
-2
lines changed

3 files changed

+31
-2
lines changed

.github/workflows/static.yml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
name: Static analysis
2+
3+
on:
4+
pull_request:
5+
6+
jobs:
7+
php-cs-fixer:
8+
name: PHP-CS-Fixer
9+
runs-on: ubuntu-latest
10+
11+
steps:
12+
- name: Checkout code
13+
uses: actions/checkout@v2
14+
15+
- name: Setup PHP
16+
uses: shivammathur/setup-php@v2
17+
with:
18+
php-version: '7.4'
19+
coverage: none
20+
extensions: mbstring
21+
22+
- name: Download dependencies
23+
run: composer update --no-interaction --no-progress
24+
25+
- name: Download PHP CS Fixer
26+
run: composer require "friendsofphp/php-cs-fixer:2.18.4"
27+
28+
- name: Execute PHP CS Fixer
29+
run: vendor/bin/php-cs-fixer fix --diff-format udiff --dry-run

src/Uri.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ static function ($matches) {
109109
$url
110110
);
111111

112-
$result = parse_url($prefix.$encodedUrl);
112+
$result = parse_url($prefix . $encodedUrl);
113113

114114
if ($result === false) {
115115
return false;

src/Utils.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -217,7 +217,7 @@ public static function modifyRequest(RequestInterface $request, array $changes)
217217
->withQueryParams($request->getQueryParams())
218218
->withCookieParams($request->getCookieParams())
219219
->withUploadedFiles($request->getUploadedFiles());
220-
220+
221221
foreach ($request->getAttributes() as $key => $value) {
222222
$new = $new->withAttribute($key, $value);
223223
}

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy