Skip to content
This repository was archived by the owner on Jan 21, 2020. It is now read-only.

Commit 7925539

Browse files
committed
Merge branch 'hotfix/31' into develop
Forward port #31
2 parents 0ffbcec + b9ae817 commit 7925539

File tree

4 files changed

+41
-24
lines changed

4 files changed

+41
-24
lines changed

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
},
3131
"require-dev": {
3232
"phpunit/phpunit": "^4.7",
33-
"squizlabs/php_codesniffer": "^2.3"
33+
"zendframework/zend-coding-standard": "~1.0.0"
3434
},
3535
"autoload": {
3636
"psr-4": {

composer.lock

Lines changed: 37 additions & 7 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

phpcs.xml

Lines changed: 1 addition & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,6 @@
11
<?xml version="1.0"?>
22
<ruleset name="Zend Framework coding standard">
3-
<description>Zend Framework coding standard</description>
4-
5-
<!-- display progress -->
6-
<arg value="p"/>
7-
<arg name="colors"/>
8-
9-
<!-- inherit rules from: -->
10-
<rule ref="PSR2"/>
11-
<rule ref="Generic.Arrays.DisallowLongArraySyntax"/>
12-
<rule ref="Squiz.WhiteSpace.SuperfluousWhitespace">
13-
<properties>
14-
<property name="ignoreBlankLines" value="false"/>
15-
</properties>
16-
</rule>
3+
<rule ref="./vendor/zendframework/zend-coding-standard/ruleset.xml"/>
174

185
<!-- Paths to check -->
196
<file>src</file>

src/NamespacedPathStackResolver.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ public function __construct($options = null)
4646
{
4747
$this->useViewStream = (bool) ini_get('short_open_tag');
4848
if ($this->useViewStream) {
49-
if (!in_array('zend.view', stream_get_wrappers())) {
49+
if (! in_array('zend.view', stream_get_wrappers())) {
5050
stream_wrapper_register('zend.view', 'Zend\View\Stream');
5151
}
5252
}
@@ -162,7 +162,7 @@ public function resolve($name, RendererInterface $renderer = null)
162162
);
163163
}
164164

165-
if (!count($this->paths)) {
165+
if (! count($this->paths)) {
166166
$this->lastLookupFailure = static::FAILURE_NO_PATHS;
167167
return false;
168168
}

0 commit comments

Comments
 (0)