Skip to content

Commit 60cd97f

Browse files
author
Oleksii Korshenko
committed
MAGETWO-65199: [GitHub][PR] [PSR-2 Compliance] Fix #8612: Hundreds of PHPCS-based static tests violations in mainline #8685
- fixed code style issues
1 parent dad1fb4 commit 60cd97f

File tree

9 files changed

+19
-4
lines changed

9 files changed

+19
-4
lines changed

app/code/Magento/Backend/Model/View/Layout/Reader/Block.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,13 @@
1414
class Block extends Layout\Reader\Block
1515
{
1616
/**
17+
* Initialize dependencies.
18+
*
1719
* @param Layout\ScheduledStructure\Helper $helper
1820
* @param Layout\Argument\Parser $argumentParser
1921
* @param Layout\ReaderPool $readerPool
2022
* @param InterpreterInterface $argumentInterpreter
21-
* @param null $scopeType
23+
* @param string|null $scopeType
2224
*/
2325
public function __construct(
2426
Layout\ScheduledStructure\Helper $helper,

app/code/Magento/Braintree/Block/Customer/PayPal/VaultTokenRenderer.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,8 @@ class VaultTokenRenderer extends AbstractTokenRenderer
2222
private $config;
2323

2424
/**
25+
* Initialize dependencies.
26+
*
2527
* @param Template\Context $context
2628
* @param Config $config
2729
* @param array $data

app/code/Magento/Braintree/Gateway/Config/PayPal/Config.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,8 @@ class Config extends \Magento\Payment\Gateway\Config\Config
3636
private $icon = [];
3737

3838
/**
39+
* Initialize dependencies.
40+
*
3941
* @param ScopeConfigInterface $scopeConfig
4042
* @param CcConfig $ccConfig
4143
* @param null $methodCode

app/code/Magento/Braintree/Model/Ui/PayPal/ConfigProvider.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,8 @@ class ConfigProvider implements ConfigProviderInterface
2929
private $resolver;
3030

3131
/**
32+
* Initialize dependencies.
33+
*
3234
* @param Config $config
3335
* @param ResolverInterface $resolver
3436
*/
@@ -39,6 +41,8 @@ public function __construct(Config $config, ResolverInterface $resolver)
3941
}
4042

4143
/**
44+
* Retrieve assoc array of checkout configuration
45+
*
4246
* @return array
4347
*/
4448
public function getConfig()

app/code/Magento/Customer/Model/Plugin/CustomerNotification.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,8 @@ class CustomerNotification
3737
private $state;
3838

3939
/**
40+
* Initialize dependencies.
41+
*
4042
* @param Session $session
4143
* @param NotificationStorage $notificationStorage
4244
* @param State $state

app/code/Magento/Quote/Observer/Frontend/Quote/Address/CollectTotalsObserver.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,8 @@ class CollectTotalsObserver implements ObserverInterface
4747
protected $groupManagement;
4848

4949
/**
50+
* Initialize dependencies.
51+
*
5052
* @param \Magento\Customer\Helper\Address $customerAddressHelper
5153
* @param \Magento\Customer\Model\Vat $customerVat
5254
* @param VatValidator $vatValidator

app/code/Magento/Review/Block/Adminhtml/Rating/Edit/Tab/Form.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -243,6 +243,7 @@ protected function initFieldset($formId, array $config)
243243
if (!$this->getForm()->getElement($formId)) {
244244
$this->fieldset[$formId] = $this->getForm()->addFieldset($formId, $config);
245245
} elseif ($this->getForm()->getElement($formId)) {
246+
//do nothing
246247
}
247248
}
248249
}

dev/tests/static/framework/Magento/TestFramework/Dependency/DiRule.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ private function getHardDependencies(DOMDocument $doc)
141141
$result = [];
142142
$xpath = new DOMXPath($doc);
143143
$textNodes = $xpath->query('//*[@xsi:type="object"]');
144-
/** @var \DOMElement $node */
144+
/** @var \DOMElement $node */
145145
foreach ($textNodes as $node) {
146146
$result[] = $node->nodeValue;
147147
}

pub/errors/processor.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -329,10 +329,10 @@ protected function _prepareConfig()
329329
$config->skin = self::DEFAULT_SKIN;
330330

331331
//combine xml data to one object
332-
if ($design === null && (string)$design->skin) {
332+
if ($design !== null && (string)$design->skin) {
333333
$this->_setSkin((string)$design->skin, $config);
334334
}
335-
if ($local === null) {
335+
if ($local !== null) {
336336
if ((string)$local->report->action) {
337337
$config->action = $local->report->action;
338338
}

0 commit comments

Comments
 (0)