Skip to content

Commit a37420e

Browse files
ENGCOM-4670: Small PHPDocs fixes #20295
- Merge Pull Request #20295 from SikailoISM/magento2:phpDoc-refactoring - Merged commits: 1. b606003 2. 49be805 3. ab2d3b0
2 parents 19c4a50 + ab2d3b0 commit a37420e

File tree

5 files changed

+4
-7
lines changed

5 files changed

+4
-7
lines changed

app/code/Magento/Theme/Controller/Adminhtml/System/Design/Theme/UploadJs.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ class UploadJs extends \Magento\Theme\Controller\Adminhtml\System\Design\Theme
1616
* Upload js file
1717
*
1818
* @return void
19-
* @throws \Magento\Framework\Exception\LocalizedException
2019
*/
2120
public function execute()
2221
{

app/code/Magento/Theme/Model/Design/Backend/File.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -109,9 +109,8 @@ public function beforeSave()
109109
}
110110

111111
/**
112-
* After Load
112+
* @return $this
113113
*
114-
* @return File
115114
* @throws LocalizedException
116115
*/
117116
public function afterLoad()

app/code/Magento/Theme/Model/Design/Config/FileUploader/FileProcessor.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,8 +79,8 @@ public function __construct(
7979
* Save file to temp media directory
8080
*
8181
* @param string $fileId
82+
*
8283
* @return array
83-
* @throws LocalizedException
8484
*/
8585
public function saveToTmp($fileId)
8686
{

app/code/Magento/Theme/Model/ResourceModel/Design.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ protected function _construct()
4646
* Perform actions before object save
4747
*
4848
* @param \Magento\Framework\Model\AbstractModel $object
49-
* @return $this
49+
* @return void
5050
* @throws \Magento\Framework\Exception\LocalizedException
5151
*/
5252
public function _beforeSave(\Magento\Framework\Model\AbstractModel $object)
@@ -152,7 +152,6 @@ protected function _checkIntersection($storeId, $dateFrom, $dateTo, $currentId)
152152
$dateConditions = [];
153153
}
154154

155-
$condition = '';
156155
if (!empty($dateConditions)) {
157156
$condition = '(' . implode(') OR (', $dateConditions) . ')';
158157
$select->where($condition);

app/code/Magento/Theme/Model/Wysiwyg/Storage.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ public function __construct(
110110
* Upload file
111111
*
112112
* @param string $targetPath
113-
* @return bool
113+
* @return array
114114
* @throws \Magento\Framework\Exception\LocalizedException
115115
*/
116116
public function uploadFile($targetPath)

0 commit comments

Comments
 (0)