Skip to content

Commit c136647

Browse files
author
Stanislav Idolov
committed
magento-engcom/magento2ce#2414: Fixed code style issues
1 parent 8831abe commit c136647

File tree

7 files changed

+32
-15
lines changed

7 files changed

+32
-15
lines changed

app/code/Magento/Catalog/Cron/DeleteOutdatedPriceValues.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@
1212
use Magento\Store\Model\Store;
1313

1414
/**
15+
* Cron job for removing outdated prices.
16+
*
1517
* Cron operation is responsible for deleting all product prices on WEBSITE level
1618
* in case 'Catalog Price Scope' configuration parameter is set to GLOBAL.
1719
*/

app/code/Magento/CatalogSearch/Model/Search/QueryChecker/FullTextSearchCheck.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,8 @@ public function isRequiredForQuery(QueryInterface $query)
3737
}
3838

3939
/**
40+
* Process query
41+
*
4042
* @param QueryInterface $query
4143
* @return bool
4244
* @throws \InvalidArgumentException
@@ -62,6 +64,8 @@ private function processQuery(QueryInterface $query)
6264
}
6365

6466
/**
67+
* Process boolean query
68+
*
6569
* @param BoolExpression $query
6670
* @return bool
6771
* @throws \InvalidArgumentException
@@ -90,6 +94,8 @@ private function processBoolQuery(BoolExpression $query)
9094
}
9195

9296
/**
97+
* Process filter query
98+
*
9399
* @param Filter $query
94100
* @return bool
95101
* @throws \InvalidArgumentException

app/code/Magento/Directory/Model/ResourceModel/Country/Collection.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -129,8 +129,8 @@ public function __construct(
129129
/**
130130
* Add top destinition countries to head of option array
131131
*
132-
* @param $emptyLabel
133-
* @param $options
132+
* @param string $emptyLabel
133+
* @param array $options
134134
* @return array
135135
*/
136136
private function addForegroundCountriesToOptionArray($emptyLabel, $options)

app/code/Magento/MysqlMq/Model/QueueManagement.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,9 +107,10 @@ public function addMessagesToQueues($topic, $messages, $queueNames)
107107
}
108108

109109
/**
110-
* Mark messages to be deleted if sufficient amount of time passed since last update
111110
* Delete marked messages
112111
*
112+
* Mark messages to be deleted if sufficient amount of time passed since last update
113+
*
113114
* @return void
114115
*/
115116
public function markMessagesForDelete()

app/code/Magento/Newsletter/Model/ResourceModel/Queue/Collection.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -141,8 +141,7 @@ public function addSubscribersInfo()
141141
}
142142

143143
/**
144-
* Checks if field is 'subscribers_total', 'subscribers_sent'
145-
* to add specific filter or adds regular filter
144+
* Checks if field is 'subscribers_total', 'subscribers_sent' to add specific filter or adds regular filter
146145
*
147146
* @param string $field
148147
* @param null|string|array $condition

app/code/Magento/Quote/Model/Quote/Item/AbstractItem.php

Lines changed: 17 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -418,6 +418,7 @@ public function calcRowTotal()
418418

419419
/**
420420
* Get item price used for quote calculation process.
421+
*
421422
* This method get custom price (if it is defined) or original product final price
422423
*
423424
* @return float
@@ -438,6 +439,7 @@ public function getCalculationPrice()
438439

439440
/**
440441
* Get item price used for quote calculation process.
442+
*
441443
* This method get original custom price applied before tax calculation
442444
*
443445
* @return float
@@ -502,6 +504,7 @@ public function getBaseCalculationPriceOriginal()
502504

503505
/**
504506
* Get original price (retrieved from product) for item.
507+
*
505508
* Original price value is in quote selected currency
506509
*
507510
* @return float
@@ -519,8 +522,8 @@ public function getOriginalPrice()
519522
/**
520523
* Set original price to item (calculation price will be refreshed too)
521524
*
522-
* @param float $price
523-
* @return \Magento\Quote\Model\Quote\Item\AbstractItem
525+
* @param float $price
526+
* @return \Magento\Quote\Model\Quote\Item\AbstractItem
524527
*/
525528
public function setOriginalPrice($price)
526529
{
@@ -540,8 +543,8 @@ public function getBaseOriginalPrice()
540543
/**
541544
* Specify custom item price (used in case when we have apply not product price to item)
542545
*
543-
* @param float $value
544-
* @return \Magento\Quote\Model\Quote\Item\AbstractItem
546+
* @param float $value
547+
* @return \Magento\Quote\Model\Quote\Item\AbstractItem
545548
*/
546549
public function setCustomPrice($value)
547550
{
@@ -563,8 +566,8 @@ public function getPrice()
563566
/**
564567
* Specify item price (base calculation price and converted price will be refreshed too)
565568
*
566-
* @param float $value
567-
* @return $this
569+
* @param float $value
570+
* @return $this
568571
*/
569572
public function setPrice($value)
570573
{
@@ -575,6 +578,7 @@ public function setPrice($value)
575578

576579
/**
577580
* Get item price converted to quote currency
581+
*
578582
* @return float
579583
*/
580584
public function getConvertedPrice()
@@ -589,6 +593,7 @@ public function getConvertedPrice()
589593

590594
/**
591595
* Set new value for converted price
596+
*
592597
* @param float $value
593598
* @return $this
594599
*/
@@ -614,8 +619,7 @@ public function __clone()
614619
}
615620

616621
/**
617-
* Checking if there children calculated or parent item
618-
* when we have parent quote item and its children
622+
* Checking if there children calculated or parent item when we have parent quote item and its children
619623
*
620624
* @return bool
621625
*/
@@ -636,6 +640,8 @@ public function isChildrenCalculated()
636640
}
637641

638642
/**
643+
* Checking can we ship product separately
644+
*
639645
* Checking can we ship product separately (each child separately)
640646
* or each parent product item can be shipped only like one item
641647
*
@@ -658,8 +664,9 @@ public function isShipSeparately()
658664
}
659665

660666
/**
661-
* Returns the total discount amounts of all the child items. If there are no children, returns the discount
662-
* amount of this item.
667+
* Returns the total discount amounts of all the child items.
668+
*
669+
* If there are no children, returns the discount amount of this item.
663670
*
664671
* @return float
665672
*/

lib/internal/Magento/Framework/Backup/Filesystem/Rollback/Fs.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,8 @@ public function run()
9494
}
9595

9696
/**
97+
* Get file system helper instance
98+
*
9799
* @return Helper
98100
* @deprecated 100.2.0
99101
*/

0 commit comments

Comments
 (0)