Browse Source

Merge pull request #100 from mpociot/analysis-zGg5E2

Applied fixes from StyleCI
Marcel Pociot 8 years ago
parent
commit
3f0b81a2e8
1 changed files with 5 additions and 3 deletions
  1. 5 3
      src/Mpociot/ApiDoc/Generators/AbstractGenerator.php

+ 5 - 3
src/Mpociot/ApiDoc/Generators/AbstractGenerator.php

@@ -189,17 +189,19 @@ abstract class AbstractGenerator
         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;
     }