فهرست منبع

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 = [])