Skip to content

Commit 24a051f

Browse files
committed
CS-Fix
1 parent 663e156 commit 24a051f

File tree

4 files changed

+62
-5
lines changed

4 files changed

+62
-5
lines changed

composer.json

+7-2
Original file line numberDiff line numberDiff line change
@@ -32,11 +32,16 @@
3232
"phly/phly-event-dispatcher": "^1.0",
3333
"zendframework/zend-servicemanager": "^3.4",
3434
"zendframework/zend-diactoros": "^2.1",
35-
"coisa/http": "1.0.x-dev"
35+
"coisa/http": "1.0.x-dev",
36+
"squizlabs/php_codesniffer": "^3.4"
3637
},
3738
"scripts": {
3839
"cs-check": "php-cs-fixer fix --dry-run --diff",
39-
"cs-fix": "php-cs-fixer fix",
40+
"cs-fix": [
41+
"php-cs-fixer fix",
42+
"phpcbf"
43+
],
44+
"sniff": "phpcs",
4045
"test": "phpunit --coverage-text"
4146
},
4247
"extra": {

composer.lock

+52-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

phpcs.xml

+2-1
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,6 @@
55
<file>src</file>
66
<file>tests</file>
77

8-
<exclude-pattern>./vendor/*</exclude-pattern>
8+
<exclude-pattern>vendor/*</exclude-pattern>
9+
<exclude-pattern>tests/html/*</exclude-pattern>
910
</ruleset>

src/Container/ErrorHandlerContainer.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,6 @@ private function getFactory(string $id): callable
101101

102102
$factory = $this->factories[$id];
103103

104-
return \is_callable($factory) ? $factory : new $factory;
104+
return \is_callable($factory) ? $factory : new $factory();
105105
}
106106
}

0 commit comments

Comments
 (0)