Skip to content

Commit 84c59e9

Browse files
committed
minor #14089 CS: Binary operators should be arounded by at least one space (keradus)
This PR was merged into the 2.3 branch. Discussion ---------- CS: Binary operators should be arounded by at least one space | Q | A | ------------- | --- | Bug fix? | no | New feature? | no | BC breaks? | no | Deprecations? | no | Tests pass? | ? | Fixed tickets | N/A | License | MIT | Doc PR | N/A Update before upcoming changes on PHP CS Fixer 1.7 To keep fabbot.io happy ;) Commits ------- ec2cec6 CS: Binary operators should be arounded by at least one space
2 parents c8fca5d + a47a5db commit 84c59e9

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Definition/PrototypedArrayNode.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -245,7 +245,7 @@ protected function normalizeValue($value)
245245

246246
$value = $this->remapXml($value);
247247

248-
$isAssoc = array_keys($value) !== range(0, count($value) -1);
248+
$isAssoc = array_keys($value) !== range(0, count($value) - 1);
249249
$normalized = array();
250250
foreach ($value as $k => $v) {
251251
if (null !== $this->keyAttribute && is_array($v)) {

Loader/FileLoader.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ public function import($resource, $type = null, $ignoreErrors = false, $sourceRe
9393
$resources = is_array($resource) ? $resource : array($resource);
9494
for ($i = 0; $i < $resourcesCount = count($resources); $i++) {
9595
if (isset(self::$loading[$resources[$i]])) {
96-
if ($i == $resourcesCount-1) {
96+
if ($i == $resourcesCount - 1) {
9797
throw new FileLoaderImportCircularReferenceException(array_keys(self::$loading));
9898
}
9999
} else {

0 commit comments

Comments
 (0)