Skip to content

Commit 72abc9c

Browse files
committed
Fix phpdoc
1 parent 61f4526 commit 72abc9c

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

src/Decoder.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ public function createFromUploader(
5959
* @param int $ownerType
6060
* @param bool $saveAfterUpload Save the file immediately after upload
6161
* @param bool $protected File is protected?
62-
* @return \rkit\filemanager\models\File
62+
* @return \rkit\filemanager\models\File|bool
6363
*/
6464
public function createFromPath(
6565
$path,

src/models/File.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -235,11 +235,14 @@ public static function generateName($extension = null)
235235
}
236236

237237
/**
238+
* Save file in tmp directory (if `saveAfterUpload` is true then save in the final directory)
239+
*
238240
* @param string $tempFile
239241
* @param bool $saveAfterUpload
240242
* @param bool $uploaded File has been uploaded or manually created
243+
* @return \rkit\filemanager\models\File|bool
241244
*/
242-
public function saveToTmp($tempFile, $saveAfterUpload, $uploaded = true)
245+
public function saveToTmp($tempFile, $saveAfterUpload = false, $uploaded = true)
243246
{
244247
if ($this->save()) {
245248
if (FileHelper::createDirectory($this->dirTmp(true))) {

0 commit comments

Comments
 (0)