Skip to content

Commit 3f0b81a

Browse files
authored
Merge pull request mpociot#100 from mpociot/analysis-zGg5E2
Applied fixes from StyleCI
2 parents da97597 + 7a50f43 commit 3f0b81a

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

src/Mpociot/ApiDoc/Generators/AbstractGenerator.php

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -189,17 +189,19 @@ protected function fancyImplode($arr, $first, $last)
189189
return implode($first, $arr);
190190
}
191191

192-
protected function splitValuePairs($parameters, $first = 'is ', $last = 'or ') {
192+
protected function splitValuePairs($parameters, $first = 'is ', $last = 'or ')
193+
{
193194
$attribute = '';
194-
collect($parameters)->map(function($item, $key) use (&$attribute, $first, $last) {
195+
collect($parameters)->map(function ($item, $key) use (&$attribute, $first, $last) {
195196
$attribute .= '`'.$item.'` ';
196-
if (($key+1) % 2 === 0) {
197+
if (($key + 1) % 2 === 0) {
197198
$attribute .= $last;
198199
} else {
199200
$attribute .= $first;
200201
}
201202
});
202203
$attribute = rtrim($attribute, $last);
204+
203205
return $attribute;
204206
}
205207

0 commit comments

Comments
 (0)