Completed
Pull Request — master (#32)
by
unknown
02:28
created
UploadBehavior.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -240,7 +240,7 @@
 block discarded – undo
240 240
     {
241 241
         /** @var BaseActiveRecord $model */
242 242
         $model = $this->owner;
243
-        return preg_replace_callback('/{([^}]+)}/', function ($matches) use ($model) {
243
+        return preg_replace_callback('/{([^}]+)}/', function($matches) use ($model) {
244 244
             $name = $matches[1];
245 245
             $attribute = ArrayHelper::getValue($model, $name);
246 246
             if (is_string($attribute) || is_numeric($attribute)) {
Please login to merge, or discard this patch.
Doc Comments   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -235,6 +235,7 @@  discard block
 block discarded – undo
235 235
 
236 236
     /**
237 237
      * Replaces all placeholders in path variable with corresponding values.
238
+     * @return string
238 239
      */
239 240
     protected function resolvePath($path)
240 241
     {
@@ -296,7 +297,7 @@  discard block
 block discarded – undo
296 297
      * #my*  unsaf<e>&file:name?".png
297 298
      *
298 299
      * @param string $filename the source filename to be "sanitized"
299
-     * @return boolean string the sanitized filename
300
+     * @return string string the sanitized filename
300 301
      */
301 302
     public static function sanitize($filename)
302 303
     {
@@ -328,6 +329,7 @@  discard block
 block discarded – undo
328 329
      * Deletes folder with uploaded files
329 330
      *
330 331
      * @param string path
332
+     * @param string $path
331 333
      */
332 334
     public function deleteFolder($path)
333 335
     {
Please login to merge, or discard this patch.