Skip to content

Commit 0ef8095

Browse files
authored
Fix some StyleCI errors (#412)
1 parent fd75677 commit 0ef8095

File tree

5 files changed

+26
-22
lines changed

5 files changed

+26
-22
lines changed

.styleci.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,16 @@ enabled:
66
- declare_strict_types
77

88
disabled:
9+
- native_constant_invocation_symfony
10+
- native_function_invocation_symfony
911
- phpdoc_annotation_without_dot # This is still buggy: https://github.com/symfony/symfony/pull/19198
1012
- phpdoc_inline_tag
1113
- single_line_throw
1214

1315
finder:
1416
exclude:
1517
- 'fixtures'
18+
- 'specs'
1619
not-path:
1720
- 'src/check.php'
1821
- 'src/Autoload/Requirements.php'

Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ MAKEFLAGS += --no-builtin-rules
55
.DEFAULT_GOAL := help
66

77
PHPBIN=php
8+
PHPNOGC=php -d zend.enable_gc=0
89
PHPSTAN_URL=https://github.com/phpstan/phpstan/releases/download/0.12.2/phpstan.phar
910

1011
SRC_FILES=$(shell find bin/ src/ -type f)

src/Console/Application.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,11 +23,11 @@ final class Application extends SymfonyApplication
2323
{
2424
private const LOGO = <<<'ASCII'
2525
26-
____ __ ______ _____
26+
____ __ ______ _____
2727
/ __ \/ / / / __ \ / ___/_________ ____ ___ _____
2828
/ /_/ / /_/ / /_/ / \__ \/ ___/ __ \/ __ \/ _ \/ ___/
29-
/ ____/ __ / ____/ ___/ / /__/ /_/ / /_/ / __/ /
30-
/_/ /_/ /_/_/ /____/\___/\____/ .___/\___/_/
29+
/ ____/ __ / ____/ ___/ / /__/ /_/ / /_/ / __/ /
30+
/_/ /_/ /_/_/ /____/\___/\____/ .___/\___/_/
3131
/_/
3232

3333

tests/Console/Command/AddPrefixCommandTest.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -77,11 +77,11 @@ public function test_get_help_menu(): void
7777

7878
$expected = <<<'EOF'
7979
80-
____ __ ______ _____
80+
____ __ ______ _____
8181
/ __ \/ / / / __ \ / ___/_________ ____ ___ _____
8282
/ /_/ / /_/ / /_/ / \__ \/ ___/ __ \/ __ \/ _ \/ ___/
83-
/ ____/ __ / ____/ ___/ / /__/ /_/ / /_/ / __/ /
84-
/_/ /_/ /_/_/ /____/\___/\____/ .___/\___/_/
83+
/ ____/ __ / ____/ ___/ / /__/ /_/ / /_/ / __/ /
84+
/_/ /_/ /_/_/ /____/\___/\____/ .___/\___/_/
8585
/_/
8686
8787
php-scoper-test version UNKNOWN

tests/Scoper/Symfony/YamlScoperTest.php

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -305,14 +305,14 @@ public function provideYamlFiles(): Generator
305305
yield 'service with class-name as argument with short-argument notation' => [
306306
<<<'YAML'
307307
services:
308-
Acme\Foo:
308+
Acme\Foo:
309309
- '@Acme\Bar'
310310
YAML
311311
,
312312
Whitelist::create(true, true, true),
313313
<<<'YAML'
314314
services:
315-
Humbug\Acme\Foo:
315+
Humbug\Acme\Foo:
316316
- '@Humbug\Acme\Bar'
317317
YAML
318318
,
@@ -322,10 +322,10 @@ public function provideYamlFiles(): Generator
322322
yield 'service with class-name as argument with short-argument notation with whitelist' => [
323323
<<<'YAML'
324324
services:
325-
Acme\Foo\X:
325+
Acme\Foo\X:
326326
- '@Acme\Foo\Y'
327327
328-
Acme\Bar\X:
328+
Acme\Bar\X:
329329
- '@Acme\Bar\Y'
330330
YAML
331331
,
@@ -337,10 +337,10 @@ public function provideYamlFiles(): Generator
337337
),
338338
<<<'YAML'
339339
services:
340-
Acme\Foo\X:
340+
Acme\Foo\X:
341341
- '@Acme\Foo\Y'
342342
343-
Humbug\Acme\Bar\X:
343+
Humbug\Acme\Bar\X:
344344
- '@Humbug\Acme\Bar\Y'
345345
YAML
346346
,
@@ -381,7 +381,7 @@ class: 'Acme\Foo\X'
381381
- '@Acme\Foo\Y'
382382
tags:
383383
- { name: my_tag, id: 'Acme\Foo\Z' }
384-
384+
385385
bar:
386386
class: 'Acme\Bar\X'
387387
arguments:
@@ -404,7 +404,7 @@ class: 'Acme\Foo\X'
404404
- '@Acme\Foo\Y'
405405
tags:
406406
- { name: my_tag, id: 'Acme\Foo\Z' }
407-
407+
408408
bar:
409409
class: 'Humbug\Acme\Bar\X'
410410
arguments:
@@ -419,14 +419,14 @@ class: 'Humbug\Acme\Bar\X'
419419
yield [
420420
<<<'YAML'
421421
services:
422-
Acme\Foo:
422+
Acme\Foo:
423423
- '@Acme\Bar'
424424
YAML
425425
,
426426
Whitelist::create(true, true, true, 'Acme\Foo'),
427427
<<<'YAML'
428428
services:
429-
Humbug\Acme\Foo:
429+
Humbug\Acme\Foo:
430430
- '@Humbug\Acme\Bar'
431431
YAML
432432
,
@@ -438,18 +438,18 @@ class: 'Humbug\Acme\Bar\X'
438438
yield [
439439
<<<'YAML'
440440
services:
441-
Foo:
441+
Foo:
442442
- '@Acme\Bar'
443-
443+
444444
Closure: ~
445445
YAML
446446
,
447447
Whitelist::create(true, true, true),
448448
<<<'YAML'
449449
services:
450-
Foo:
450+
Foo:
451451
- '@Humbug\Acme\Bar'
452-
452+
453453
Closure: ~
454454
YAML
455455
,
@@ -460,7 +460,7 @@ class: 'Humbug\Acme\Bar\X'
460460
yield [
461461
<<<'YAML'
462462
services:
463-
Acme\Foo:
463+
Acme\Foo:
464464
- '@Acme\Bar'
465465
Emca\Foo:
466466
- '@Emca\Bar'
@@ -469,7 +469,7 @@ class: 'Humbug\Acme\Bar\X'
469469
Whitelist::create(true, true, true, 'Acme\*'),
470470
<<<'YAML'
471471
services:
472-
Acme\Foo:
472+
Acme\Foo:
473473
- '@Acme\Bar'
474474
Humbug\Emca\Foo:
475475
- '@Humbug\Emca\Bar'

0 commit comments

Comments
 (0)