Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
- Fix code styles.
  • Loading branch information
randallelliott714 committed Nov 13, 2021
1 parent 19cd51e commit f27172b
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,6 @@ private function getSelectMock(): MockObject
'ss.store_id = s.store_id',
['code']
]

)->willReturn($select);
$select->expects($this->once())->method('reset')->with(Select::COLUMNS)->willReturn($select);
$select->expects($this->once())->method('group')->with(['s.code', 'iss.source_code']);
Expand Down
6 changes: 3 additions & 3 deletions src/Aggregator/Category/CategoryCountAggregator.php
Original file line number Diff line number Diff line change
Expand Up @@ -137,9 +137,9 @@ private function getSelect(AdapterInterface $connection): Select
['s' => $connection->getTableName('store')],
'sg.group_id = s.group_id'
)->joinInner(
['cce1' => $connection->getTableName('catalog_category_entity')],
'sg.root_category_id = cce1.entity_id'
)->joinInner(
['cce1' => $connection->getTableName('catalog_category_entity')],
'sg.root_category_id = cce1.entity_id'
)->joinInner(
['cce2' => $connection->getTableName('catalog_category_entity')],
"cce2.path like CONCAT(cce1.path, '%')"
)->joinLeft(
Expand Down
8 changes: 4 additions & 4 deletions src/Aggregator/Shipment/ShipmentCountAggregator.php
Original file line number Diff line number Diff line change
Expand Up @@ -72,10 +72,10 @@ private function getSelect(AdapterInterface $connection): Select
'ss.entity_id = iss.shipment_id',
['source_code']
)->joinInner(
['s' => $connection->getTableName('store')],
'ss.store_id = s.store_id',
['code']
)->reset(Select::COLUMNS)
['s' => $connection->getTableName('store')],
'ss.store_id = s.store_id',
['code']
)->reset(Select::COLUMNS)
->columns(
[
'SHIPMENT_COUNT' => 'COUNT(ss.entity_id)',
Expand Down

0 comments on commit f27172b

Please sign in to comment.