From 7a50f43c941f70fc119b521d91c81a8930547d15 Mon Sep 17 00:00:00 2001 From: Marcel Pociot Date: Wed, 14 Sep 2016 14:08:52 +0000 Subject: [PATCH] Applied fixes from StyleCI --- src/Mpociot/ApiDoc/Generators/AbstractGenerator.php | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/Mpociot/ApiDoc/Generators/AbstractGenerator.php b/src/Mpociot/ApiDoc/Generators/AbstractGenerator.php index e629525f..0e44ae8a 100644 --- a/src/Mpociot/ApiDoc/Generators/AbstractGenerator.php +++ b/src/Mpociot/ApiDoc/Generators/AbstractGenerator.php @@ -189,17 +189,19 @@ protected function fancyImplode($arr, $first, $last) return implode($first, $arr); } - protected function splitValuePairs($parameters, $first = 'is ', $last = 'or ') { + protected function splitValuePairs($parameters, $first = 'is ', $last = 'or ') + { $attribute = ''; - collect($parameters)->map(function($item, $key) use (&$attribute, $first, $last) { + collect($parameters)->map(function ($item, $key) use (&$attribute, $first, $last) { $attribute .= '`'.$item.'` '; - if (($key+1) % 2 === 0) { + if (($key + 1) % 2 === 0) { $attribute .= $last; } else { $attribute .= $first; } }); $attribute = rtrim($attribute, $last); + return $attribute; }