Passed
Push — master ( f6c984...b2c1a8 )
by Eugene
03:35
created
src/Resources/Middlewares/PrepareResourceMiddlewareAbstract.php 1 patch
Doc Comments   +7 added lines, -1 removed lines patch added patch discarded remove patch
@@ -44,7 +44,7 @@  discard block
 block discarded – undo
44 44
 
45 45
     /**
46 46
      * Bugfix for the russian letters
47
-     * @param $file
47
+     * @param string $file
48 48
      * @return mixed
49 49
      */
50 50
     protected function mb_basename($file)
@@ -106,6 +106,9 @@  discard block
 block discarded – undo
106 106
     }
107 107
     abstract protected function fillResourceSpecialFields();
108 108
 
109
+    /**
110
+     * @param string $name
111
+     */
109 112
     protected function cleanup($name)
110 113
     {
111 114
         $name = preg_replace('/\s+/u', ' ', trim(mb_strtolower(rawurldecode((string)$name), 'UTF-8')));
@@ -141,6 +144,9 @@  discard block
 block discarded – undo
141 144
         return $str;
142 145
     }
143 146
 
147
+    /**
148
+     * @param string $name
149
+     */
144 150
     protected function defaultValidator(
145 151
         $name, $value, $canBeEmpty = false, $allowedRegexpSymbols = '\w\d\-_', $replaceDeniedSymbols = false)
146 152
     {
Please login to merge, or discard this patch.