Skip to content

Commit ddd01ce

Browse files
Inline control structures are not allowed と言われたのでワンライン辞めた
1 parent c526d8d commit ddd01ce

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

src/AspectMock/Proxy/Verifier.php

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,9 @@ public function verifyInvokedMultipleTimes($name, $times, $params = null)
114114
if (is_array($params)) {
115115
$equals = 0;
116116
foreach ($calls as $args) {
117-
if ($this->onlyExpectedArguments($params, $args) === $params) $equals++;
117+
if ($this->onlyExpectedArguments($params, $args) === $params) {
118+
$equals++;
119+
}
118120
}
119121
if ($equals == $times) return;
120122
$params = ArgumentsFormatter::toString($params);
@@ -153,7 +155,9 @@ public function verifyNeverInvoked($name, $params = null)
153155
if (empty($calls)) return;
154156
$params = ArgumentsFormatter::toString($params);
155157
foreach ($calls as $args) {
156-
if ($this->onlyExpectedArguments($params, $args) === $params) throw new fail(sprintf($this->neverInvoked, $this->className));
158+
if ($this->onlyExpectedArguments($params, $args) === $params) {
159+
throw new fail(sprintf($this->neverInvoked, $this->className));
160+
}
157161
}
158162
return;
159163
}

0 commit comments

Comments
 (0)