Skip to content

Commit 76b4061

Browse files
committed
magento-engcom/magento2ce#2169: fix coding style
1 parent cfb630c commit 76b4061

File tree

4 files changed

+20
-1
lines changed

4 files changed

+20
-1
lines changed

app/code/Magento/Catalog/Controller/Adminhtml/Product/Save.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -188,6 +188,7 @@ public function execute()
188188

189189
/**
190190
* Notify customer when image was not deleted in specific case.
191+
*
191192
* TODO: temporary workaround must be eliminated in MAGETWO-45306
192193
*
193194
* @param array $postData
@@ -252,6 +253,8 @@ protected function copyToStores($data, $productId)
252253
}
253254

254255
/**
256+
* Get categoryLinkManagement in a backward compatible way.
257+
*
255258
* @return \Magento\Catalog\Api\CategoryLinkManagementInterface
256259
*/
257260
private function getCategoryLinkManagement()
@@ -264,6 +267,8 @@ private function getCategoryLinkManagement()
264267
}
265268

266269
/**
270+
* Get storeManager in a backward compatible way.
271+
*
267272
* @return StoreManagerInterface
268273
* @deprecated 101.0.0
269274
*/

app/code/Magento/CatalogSearch/Model/Indexer/Fulltext.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,8 @@ public function execute($entityIds)
119119
}
120120

121121
/**
122-
* {@inheritdoc}
122+
* @inheritdoc
123+
*
123124
* @throws \InvalidArgumentException
124125
*/
125126
public function executeByDimensions(array $dimensions, \Traversable $entityIds = null)

lib/internal/Magento/Framework/Image/Adapter/Gd2.php

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@
66
namespace Magento\Framework\Image\Adapter;
77

88
/**
9+
* Gd2 adapter.
10+
*
911
* @SuppressWarnings(PHPMD.ExcessiveClassComplexity)
1012
*/
1113
class Gd2 extends \Magento\Framework\Image\Adapter\AbstractAdapter
@@ -125,6 +127,7 @@ protected function _getImageNeedMemorySize($file)
125127

126128
/**
127129
* Converts memory value (e.g. 64M, 129K) to bytes.
130+
*
128131
* Case insensitive value might be used.
129132
*
130133
* @param string $memoryValue
@@ -145,6 +148,7 @@ protected function _convertToByte($memoryValue)
145148

146149
/**
147150
* Save image to specific path.
151+
*
148152
* If some folders of path does not exist they will be created
149153
*
150154
* @param null|string $destination
@@ -201,7 +205,10 @@ public function save($destination = null, $newName = null)
201205
}
202206

203207
/**
208+
* Render image and return its binary contents.
209+
*
204210
* @see \Magento\Framework\Image\Adapter\AbstractAdapter::getImage
211+
*
205212
* @return string
206213
*/
207214
public function getImage()
@@ -236,6 +243,7 @@ private function _getCallback($callbackType, $fileType = null, $unsupportedText
236243

237244
/**
238245
* Fill image with main background color.
246+
*
239247
* Returns a color identifier.
240248
*
241249
* @param resource &$imageResourceTo
@@ -741,6 +749,7 @@ protected function _createImageFromText($text)
741749

742750
/**
743751
* Create Image using ttf font
752+
*
744753
* Note: This function requires both the GD library and the FreeType library
745754
*
746755
* @param string $text

lib/internal/Magento/Framework/Image/Adapter/UploadConfigInterface.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,15 @@
1313
interface UploadConfigInterface
1414
{
1515
/**
16+
* Get maximum image width.
17+
*
1618
* @return int
1719
*/
1820
public function getMaxWidth(): int;
1921

2022
/**
23+
* Get maximum image height.
24+
*
2125
* @return int
2226
*/
2327
public function getMaxHeight(): int;

0 commit comments

Comments
 (0)