@@ -44,7 +44,7 @@ discard block |
||
| 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 |
||
| 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 |
||
| 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 | { |