Skip to content

Commit 441cd70

Browse files
author
Stanislav Idolov
committed
magento-engcom/magento2ce#2247: Code style fixes
1 parent e3ac37a commit 441cd70

File tree

7 files changed

+21
-7
lines changed

7 files changed

+21
-7
lines changed

app/code/Magento/Config/Model/Config.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212

1313
/**
1414
* Backend config model
15+
*
1516
* Used to save configuration
1617
*
1718
* @author Magento Core Team <[email protected]>
@@ -122,6 +123,7 @@ public function __construct(
122123

123124
/**
124125
* Save config section
126+
*
125127
* Require set: section, website, store and groups
126128
*
127129
* @throws \Exception
@@ -505,6 +507,7 @@ public function setDataByPath($path, $value)
505507

506508
/**
507509
* Get scope name and scopeId
510+
*
508511
* @todo refactor to scope resolver
509512
* @return void
510513
*/
@@ -605,4 +608,4 @@ public function getConfigDataValue($path, &$inherit = null, $configData = null)
605608

606609
return $data;
607610
}
608-
}
611+
}

app/code/Magento/Customer/Model/Metadata/Form/Image.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@
1616
use Magento\Framework\Filesystem;
1717

1818
/**
19+
* Metadata for form image field
20+
*
1921
* @SuppressWarnings(PHPMD.CouplingBetweenObjects)
2022
*/
2123
class Image extends File
@@ -32,7 +34,7 @@ class Image extends File
3234
* @param \Psr\Log\LoggerInterface $logger
3335
* @param \Magento\Customer\Api\Data\AttributeMetadataInterface $attribute
3436
* @param \Magento\Framework\Locale\ResolverInterface $localeResolver
35-
* @param null $value
37+
* @param null|string $value
3638
* @param string $entityTypeCode
3739
* @param bool $isAjax
3840
* @param \Magento\Framework\Url\EncoderInterface $urlEncoder
@@ -78,6 +80,7 @@ public function __construct(
7880

7981
/**
8082
* Validate file by attribute validate rules
83+
*
8184
* Return array of errors
8285
*
8386
* @param array $value

app/code/Magento/Developer/Console/Command/SourceThemeDeployCommand.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ public function __construct(
8080
}
8181

8282
/**
83-
* {@inheritdoc}
83+
* @inheritdoc
8484
*/
8585
protected function configure()
8686
{
@@ -128,7 +128,7 @@ protected function configure()
128128
}
129129

130130
/**
131-
* {@inheritdoc}
131+
* @inheritdoc
132132
* @throws \InvalidArgumentException
133133
*/
134134
protected function execute(InputInterface $input, OutputInterface $output)

app/code/Magento/Eav/Model/Attribute/Data/Image.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ class Image extends \Magento\Eav\Model\Attribute\Data\File
1414
{
1515
/**
1616
* Validate file by attribute validate rules
17+
*
1718
* Return array of errors
1819
*
1920
* @param array $value

app/code/Magento/OfflineShipping/Model/Carrier/Freeshipping.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -138,6 +138,8 @@ protected function _updateFreeMethodQuote($request)
138138
}
139139

140140
/**
141+
* Returns allowed shipping methods
142+
*
141143
* @return array
142144
*/
143145
public function getAllowedMethods()

app/code/Magento/Widget/Model/Widget/Instance.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -340,6 +340,7 @@ public function setCode($code)
340340

341341
/**
342342
* Setter
343+
*
343344
* Prepare widget type
344345
*
345346
* @param string $type
@@ -353,6 +354,7 @@ public function setType($type)
353354

354355
/**
355356
* Getter
357+
*
356358
* Prepare widget type
357359
*
358360
* @return string
@@ -364,6 +366,7 @@ public function getType()
364366

365367
/**
366368
* Getter.
369+
*
367370
* If not set return default
368371
*
369372
* @return string
@@ -379,6 +382,7 @@ public function getArea()
379382

380383
/**
381384
* Getter
385+
*
382386
* Explode to array if string setted
383387
*
384388
* @return array
@@ -393,6 +397,7 @@ public function getStoreIds()
393397

394398
/**
395399
* Getter
400+
*
396401
* Unserialize if serialized string setted
397402
*
398403
* @return array

lib/internal/Magento/Framework/Data/Form/Element/Factory.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,13 @@
44
* See COPYING.txt for license details.
55
*/
66

7-
/**
8-
* @author Magento Core Team <[email protected]>
9-
*/
107
namespace Magento\Framework\Data\Form\Element;
118

129
use Magento\Framework\ObjectManagerInterface;
1310

11+
/**
12+
* Form element Factory
13+
*/
1414
class Factory
1515
{
1616
/**

0 commit comments

Comments
 (0)