瀏覽代碼

Merge pull request #447 from mpociot/analysis-z3ZGBr

Apply fixes from StyleCI
Marcel Pociot 6 年之前
父節點
當前提交
2871c088e8
共有 1 個文件被更改,包括 7 次插入4 次删除
  1. 7 4
      src/Tools/Traits/ParamHelpers.php

+ 7 - 4
src/Tools/Traits/ParamHelpers.php

@@ -2,12 +2,13 @@
 
 namespace Mpociot\ApiDoc\Tools\Traits;
 
-trait ParamHelpers {
-
+trait ParamHelpers
+{
     /**
-     * Create proper arrays from dot-noted parameter names
+     * Create proper arrays from dot-noted parameter names.
      *
      * @param array $params
+     *
      * @return array
      */
     protected function cleanParams(array $params)
@@ -16,15 +17,17 @@ trait ParamHelpers {
         foreach ($params as $name => $details) {
             $this->cleanValueFrom($name, $details['value'], $values);
         }
+
         return $values;
     }
 
     /**
-     * Converts dot notation names to arrays and sets the value at the right depth
+     * Converts dot notation names to arrays and sets the value at the right depth.
      *
      * @param string $name
      * @param mixed $value
      * @param array $values The array that holds the result
+     *
      * @return void
      */
     protected function cleanValueFrom($name, $value, array &$values = [])