@@ -1,5 +1,5 @@ |
||
1 | 1 | <?php |
2 | -declare(strict_types=1); |
|
2 | +declare(strict_types = 1); |
|
3 | 3 | |
4 | 4 | namespace tkanstantsin\fileupload\config; |
5 | 5 |
@@ -1,5 +1,5 @@ |
||
1 | 1 | <?php |
2 | -declare(strict_types=1); |
|
2 | +declare(strict_types = 1); |
|
3 | 3 | |
4 | 4 | namespace tkanstantsin\yii2fileupload\model; |
5 | 5 |
@@ -1,5 +1,5 @@ discard block |
||
1 | 1 | <?php |
2 | -declare(strict_types=1); |
|
2 | +declare(strict_types = 1); |
|
3 | 3 | |
4 | 4 | namespace tkanstantsin\yii2fileupload\model; |
5 | 5 | |
@@ -78,7 +78,7 @@ discard block |
||
78 | 78 | // filters |
79 | 79 | [ |
80 | 80 | 'name', |
81 | - function ($attribute) { |
|
81 | + function($attribute) { |
|
82 | 82 | $name = $this->$attribute ?: static::DEFAULT_FILENAME; |
83 | 83 | // remove all wrong characters |
84 | 84 | $name = preg_replace('/[^A-zА-я0-9\s]+/u', '-', $name); |
@@ -1,5 +1,5 @@ discard block |
||
1 | 1 | <?php |
2 | -declare(strict_types=1); |
|
2 | +declare(strict_types = 1); |
|
3 | 3 | |
4 | 4 | namespace tkanstantsin\yii2fileupload\action; |
5 | 5 | |
@@ -125,7 +125,7 @@ discard block |
||
125 | 125 | $uploadedFile, |
126 | 126 | $this->fileManager->getAliasConfig($this->ownerModelAlias), |
127 | 127 | $this->contentFS, |
128 | - [ // other config |
|
128 | + [// other config |
|
129 | 129 | 'parent_model' => $this->ownerModelAlias, |
130 | 130 | 'parent_model_id' => $this->ownerId, |
131 | 131 | ]); |
@@ -1,5 +1,5 @@ |
||
1 | 1 | <?php |
2 | -declare(strict_types=1); |
|
2 | +declare(strict_types = 1); |
|
3 | 3 | |
4 | 4 | namespace tkanstantsin\yii2fileupload\action; |
5 | 5 |
@@ -1,5 +1,5 @@ discard block |
||
1 | 1 | <?php |
2 | -declare(strict_types=1); |
|
2 | +declare(strict_types = 1); |
|
3 | 3 | |
4 | 4 | namespace tkanstantsin\yii2fileupload\action; |
5 | 5 | |
@@ -176,6 +176,6 @@ discard block |
||
176 | 176 | $options['height'] = $height; |
177 | 177 | } |
178 | 178 | |
179 | - return [$fileType, $options,]; |
|
179 | + return [$fileType, $options, ]; |
|
180 | 180 | } |
181 | 181 | } |
@@ -1,5 +1,5 @@ |
||
1 | 1 | <?php |
2 | -declare(strict_types=1); |
|
2 | +declare(strict_types = 1); |
|
3 | 3 | |
4 | 4 | /** |
5 | 5 | * @link https://github.com/creocoder/yii2-flysystem |
@@ -1,5 +1,5 @@ |
||
1 | 1 | <?php |
2 | -declare(strict_types=1); |
|
2 | +declare(strict_types = 1); |
|
3 | 3 | |
4 | 4 | namespace tkanstantsin\yii2fileupload; |
5 | 5 |
@@ -1,5 +1,5 @@ |
||
1 | 1 | <?php |
2 | -declare(strict_types=1); |
|
2 | +declare(strict_types = 1); |
|
3 | 3 | |
4 | 4 | namespace tkanstantsin\fileupload\formatter\icon; |
5 | 5 |