Skip to content

Commit 2cf6b14

Browse files
author
Stanislav Idolov
committed
magento-engcom/magento2ce#2169: fix coding style
1 parent 76b4061 commit 2cf6b14

File tree

10 files changed

+145
-15
lines changed

10 files changed

+145
-15
lines changed

app/code/Magento/Backend/Block/Media/Uploader.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,8 @@ public function __construct(
6565
}
6666

6767
/**
68+
* Initialize block.
69+
*
6870
* @return void
6971
*/
7072
protected function _construct()

app/code/Magento/Catalog/Block/Adminhtml/Product/Helper/Form/Gallery.php

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,9 @@
1818
use Magento\Eav\Model\Entity\Attribute;
1919
use Magento\Catalog\Api\Data\ProductInterface;
2020

21+
/**
22+
* Adminhtml gallery block
23+
*/
2124
class Gallery extends \Magento\Framework\View\Element\AbstractBlock
2225
{
2326
/**
@@ -79,6 +82,7 @@ class Gallery extends \Magento\Framework\View\Element\AbstractBlock
7982
* @param Registry $registry
8083
* @param \Magento\Framework\Data\Form $form
8184
* @param array $data
85+
* @param DataPersistorInterface|null $dataPersistor
8286
*/
8387
public function __construct(
8488
\Magento\Framework\View\Element\Context $context,
@@ -96,6 +100,8 @@ public function __construct(
96100
}
97101

98102
/**
103+
* Returns element html.
104+
*
99105
* @return string
100106
*/
101107
public function getElementHtml()
@@ -148,6 +154,8 @@ public function getContentHtml()
148154
}
149155

150156
/**
157+
* Returns html id
158+
*
151159
* @return string
152160
*/
153161
protected function getHtmlId()
@@ -156,6 +164,8 @@ protected function getHtmlId()
156164
}
157165

158166
/**
167+
* Returns name
168+
*
159169
* @return string
160170
*/
161171
public function getName()
@@ -164,6 +174,8 @@ public function getName()
164174
}
165175

166176
/**
177+
* Returns suffix for field name
178+
*
167179
* @return string
168180
*/
169181
public function getFieldNameSuffix()
@@ -172,6 +184,8 @@ public function getFieldNameSuffix()
172184
}
173185

174186
/**
187+
* Returns data scope html id
188+
*
175189
* @return string
176190
*/
177191
public function getDataScopeHtmlId()
@@ -256,7 +270,6 @@ public function getDataObject()
256270
/**
257271
* Retrieve attribute field name
258272
*
259-
*
260273
* @param Attribute $attribute
261274
* @return string
262275
*/
@@ -270,6 +283,8 @@ public function getAttributeFieldName($attribute)
270283
}
271284

272285
/**
286+
* Returns html content of the block
287+
*
273288
* @return string
274289
*/
275290
public function toHtml()

app/code/Magento/Catalog/Block/Adminhtml/Product/Helper/Form/Gallery/Content.php

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,9 @@
1818
use Magento\Framework\App\Filesystem\DirectoryList;
1919
use Magento\Framework\Exception\FileSystemException;
2020

21+
/**
22+
* Block for gallery content.
23+
*/
2124
class Content extends \Magento\Backend\Block\Widget
2225
{
2326
/**
@@ -58,6 +61,8 @@ public function __construct(
5861
}
5962

6063
/**
64+
* Prepare layout.
65+
*
6166
* @return AbstractBlock
6267
*/
6368
protected function _prepareLayout()
@@ -103,6 +108,8 @@ public function getUploaderHtml()
103108
}
104109

105110
/**
111+
* Returns js object name
112+
*
106113
* @return string
107114
*/
108115
public function getJsObjectName()
@@ -111,6 +118,8 @@ public function getJsObjectName()
111118
}
112119

113120
/**
121+
* Returns buttons for add image action.
122+
*
114123
* @return string
115124
*/
116125
public function getAddImagesButton()
@@ -124,6 +133,8 @@ public function getAddImagesButton()
124133
}
125134

126135
/**
136+
* Returns image json
137+
*
127138
* @return string
128139
*/
129140
public function getImagesJson()
@@ -169,6 +180,8 @@ private function sortImagesByPosition($images)
169180
}
170181

171182
/**
183+
* Returns image values json
184+
*
172185
* @return string
173186
*/
174187
public function getImagesValuesJson()
@@ -243,6 +256,8 @@ public function getImageTypesJson()
243256
}
244257

245258
/**
259+
* Returns image helper object.
260+
*
246261
* @return \Magento\Catalog\Helper\Image
247262
* @deprecated 101.0.3
248263
*/

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

Lines changed: 16 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@
1414
use Magento\Framework\Indexer\SaveHandler\Batch;
1515

1616
/**
17+
* Catalog search indexer handler.
18+
*
1719
* @api
1820
* @since 100.0.2
1921
* @deprecated CatalogSearch will be removed in 2.4, and {@see \Magento\ElasticSearch}
@@ -92,7 +94,7 @@ public function __construct(
9294
}
9395

9496
/**
95-
* {@inheritdoc}
97+
* @inheritdoc
9698
*/
9799
public function saveIndex($dimensions, \Traversable $documents)
98100
{
@@ -102,7 +104,7 @@ public function saveIndex($dimensions, \Traversable $documents)
102104
}
103105

104106
/**
105-
* {@inheritdoc}
107+
* @inheritdoc
106108
*/
107109
public function deleteIndex($dimensions, \Traversable $documents)
108110
{
@@ -113,7 +115,7 @@ public function deleteIndex($dimensions, \Traversable $documents)
113115
}
114116

115117
/**
116-
* {@inheritdoc}
118+
* @inheritdoc
117119
*/
118120
public function cleanIndex($dimensions)
119121
{
@@ -122,7 +124,7 @@ public function cleanIndex($dimensions)
122124
}
123125

124126
/**
125-
* {@inheritdoc}
127+
* @inheritdoc
126128
*/
127129
public function isAvailable($dimensions = [])
128130
{
@@ -134,6 +136,8 @@ public function isAvailable($dimensions = [])
134136
}
135137

136138
/**
139+
* Returns table name.
140+
*
137141
* @param Dimension[] $dimensions
138142
* @return string
139143
*/
@@ -143,6 +147,8 @@ private function getTableName($dimensions)
143147
}
144148

145149
/**
150+
* Returns index name.
151+
*
146152
* @return string
147153
*/
148154
private function getIndexName()
@@ -151,6 +157,8 @@ private function getIndexName()
151157
}
152158

153159
/**
160+
* Add documents to storage.
161+
*
154162
* @param array $documents
155163
* @param Dimension[] $dimensions
156164
* @return void
@@ -169,6 +177,8 @@ private function insertDocuments(array $documents, array $dimensions)
169177
}
170178

171179
/**
180+
* Searchable filter preparation.
181+
*
172182
* @param array $documents
173183
* @return array
174184
*/
@@ -189,6 +199,8 @@ private function prepareSearchableFields(array $documents)
189199
}
190200

191201
/**
202+
* Prepare fields.
203+
*
192204
* @return void
193205
*/
194206
private function prepareFields()

app/code/Magento/Elasticsearch/Model/Indexer/IndexerHandler.php

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,9 @@
1212
use Magento\Elasticsearch\Model\Adapter\Index\IndexNameResolver;
1313
use Magento\Framework\App\ScopeResolverInterface;
1414

15+
/**
16+
* Indexer Handler for Elasticsearch engine.
17+
*/
1518
class IndexerHandler implements IndexerInterface
1619
{
1720
/**
@@ -82,7 +85,7 @@ public function __construct(
8285
}
8386

8487
/**
85-
* {@inheritdoc}
88+
* @inheritdoc
8689
*/
8790
public function saveIndex($dimensions, \Traversable $documents)
8891
{
@@ -97,7 +100,7 @@ public function saveIndex($dimensions, \Traversable $documents)
97100
}
98101

99102
/**
100-
* {@inheritdoc}
103+
* @inheritdoc
101104
*/
102105
public function deleteIndex($dimensions, \Traversable $documents)
103106
{
@@ -112,7 +115,7 @@ public function deleteIndex($dimensions, \Traversable $documents)
112115
}
113116

114117
/**
115-
* {@inheritdoc}
118+
* @inheritdoc
116119
*/
117120
public function cleanIndex($dimensions)
118121
{
@@ -122,14 +125,16 @@ public function cleanIndex($dimensions)
122125
}
123126

124127
/**
125-
* {@inheritdoc}
128+
* @inheritdoc
126129
*/
127130
public function isAvailable($dimensions = [])
128131
{
129132
return $this->adapter->ping();
130133
}
131134

132135
/**
136+
* Returns indexer id.
137+
*
133138
* @return string
134139
*/
135140
private function getIndexerId()

lib/internal/Magento/Framework/File/Uploader.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -191,8 +191,7 @@ protected function _afterSave($result)
191191
}
192192

193193
/**
194-
* Used to save uploaded file into destination folder with
195-
* original or new file name (if specified)
194+
* Used to save uploaded file into destination folder with original or new file name (if specified)
196195
*
197196
* @param string $destinationFolder
198197
* @param string $newFileName
@@ -269,6 +268,8 @@ private function validateDestination($destinationFolder)
269268
}
270269

271270
/**
271+
* Set 0777 rights for the file.
272+
*
272273
* @param string $file
273274
* @return void
274275
*

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@
77

88
namespace Magento\Framework\Image\Adapter;
99

10+
/**
11+
* Image config provider.
12+
*/
1013
class Config implements ConfigInterface, UploadConfigInterface
1114
{
1215
const XML_PATH_IMAGE_ADAPTER = 'dev/image/default_adapter';

0 commit comments

Comments
 (0)