Skip to content

Commit 88197c8

Browse files
author
Pratik Oza
committed
Remove useless semicolon statements
1 parent fcf9eed commit 88197c8

File tree

20 files changed

+23
-23
lines changed

20 files changed

+23
-23
lines changed

app/code/Magento/Catalog/view/adminhtml/templates/catalog/product/attribute/set/main/tree/attribute.phtml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@
22
/**
33
* Copyright © Magento, Inc. All rights reserved.
44
* See COPYING.txt for license details.
5-
*/;
5+
*/

app/code/Magento/CatalogSearch/Model/Indexer/Fulltext/Action/Full.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -400,7 +400,7 @@ public function rebuildStoreIndex($storeId, $productIds = null)
400400
}
401401
$products = $this->dataProvider
402402
->getSearchableProducts($storeId, $staticFields, $productIds, $lastProductId, $this->batchSize);
403-
};
403+
}
404404
}
405405

406406
/**

app/code/Magento/GiftMessage/Model/ItemRepository.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ public function get($cartId, $itemId)
8888
throw new NoSuchEntityException(
8989
__('No item with the provided ID was found in the Cart. Verify the ID and try again.')
9090
);
91-
};
91+
}
9292
$messageId = $item->getGiftMessageId();
9393
if (!$messageId) {
9494
return null;
@@ -121,7 +121,7 @@ public function save($cartId, \Magento\GiftMessage\Api\Data\MessageInterface $gi
121121
$itemId
122122
)
123123
);
124-
};
124+
}
125125

126126
if ($item->getIsVirtual()) {
127127
throw new InvalidTransitionException(__('Gift messages can\'t be used for virtual products.'));

app/code/Magento/GiftMessage/Model/OrderItemRepository.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ public function get($orderId, $orderItemId)
8989
throw new NoSuchEntityException(
9090
__('No item with the provided ID was found in the Order. Verify the ID and try again.')
9191
);
92-
};
92+
}
9393

9494
if (!$this->helper->isMessagesAllowed('order_item', $orderItem, $this->storeManager->getStore())) {
9595
throw new NoSuchEntityException(
@@ -123,7 +123,7 @@ public function save($orderId, $orderItemId, \Magento\GiftMessage\Api\Data\Messa
123123
throw new NoSuchEntityException(
124124
__('No item with the provided ID was found in the Order. Verify the ID and try again.')
125125
);
126-
};
126+
}
127127

128128
if ($order->getIsVirtual()) {
129129
throw new InvalidTransitionException(__("Gift messages can't be used for virtual products."));

app/code/Magento/GiftMessage/Model/OrderRepository.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ public function save($orderId, \Magento\GiftMessage\Api\Data\MessageInterface $g
106106
$order = $this->orderFactory->create()->load($orderId);
107107
if (!$order->getEntityId()) {
108108
throw new NoSuchEntityException(__('No order exists with this ID. Verify your information and try again.'));
109-
};
109+
}
110110

111111
if (0 == $order->getTotalItemCount()) {
112112
throw new InputException(

app/code/Magento/Indexer/Console/Command/IndexerReindexCommand.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,7 @@ private function getDependentIndexerIds(string $indexerId)
187187
$this->getDependentIndexerIds($id)
188188
);
189189
}
190-
};
190+
}
191191

192192
return array_unique($dependentIndexerIds);
193193
}

app/code/Magento/Indexer/Model/DimensionModes.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ public function __construct(array $dimensions)
2626
$result = [];
2727
foreach ($dimensions as $dimension) {
2828
$result[$dimension->getName()] = $dimension;
29-
};
29+
}
3030
return $result;
3131
})(...$dimensions);
3232
}

app/code/Magento/Sales/Model/Order/Validation/CanInvoice.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ private function isStateReadyForInvoice(OrderInterface $order)
4444
$order->getState() === Order::STATE_CLOSED
4545
) {
4646
return false;
47-
};
47+
}
4848

4949
return true;
5050
}

app/code/Magento/TaxImportExport/view/adminhtml/templates/importExportHeader.phtml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@
22
/**
33
* Copyright © Magento, Inc. All rights reserved.
44
* See COPYING.txt for license details.
5-
*/;
5+
*/

app/code/Magento/Theme/Model/Design/Config/Validator.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ public function validate(DesignConfigInterface $designConfig)
8080
["templateName" => $name]
8181
)
8282
);
83-
};
83+
}
8484
}
8585
}
8686
}

app/code/Magento/Theme/view/frontend/templates/text.phtml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,6 @@ if (!empty($attr)) {
1010
foreach ($block->getAttributes() as $attribute => $value) {
1111
$attributes .= ' ' . $attribute . '="' . $value . '"';
1212
}
13-
};
13+
}
1414
echo
1515
'<' . $block->getTag() . $attributes . '>' . $block->getText() . '</' . $block->getTag() . '>';

dev/tests/api-functional/testsuite/Magento/Catalog/Api/ProductCustomOptionRepositoryTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,7 @@ public function optionDataProvider()
180180
$fixtureOptions[$item['type']] = [
181181
'optionData' => $item,
182182
];
183-
};
183+
}
184184

185185
return $fixtureOptions;
186186
}
@@ -230,7 +230,7 @@ public function optionNegativeDataProvider()
230230
$fixtureOptions[$key] = [
231231
'optionData' => $item,
232232
];
233-
};
233+
}
234234

235235
return $fixtureOptions;
236236
}

dev/tests/functional/tests/app/Magento/Cms/Test/Block/Adminhtml/Page/Edit/PageForm.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ public function openTab($tabName)
8787
if ($tabHeader->isVisible() && strpos($tabHeader->getAttribute('class'), '_show') === false) {
8888
$tabHeader->hover();
8989
$tabHeader->click();
90-
};
90+
}
9191
return $this;
9292
}
9393

dev/tests/functional/tests/app/Magento/ImportExport/Test/Fixture/Import/File.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -316,7 +316,7 @@ private function prepareCsv($csvContent)
316316
$explodedArray = $compiledData['explodedArray'];
317317
} else {
318318
$explodedArray[$i] = str_replace('"', '', $explodedArray[$i]);
319-
};
319+
}
320320
}
321321
$data = array_diff($explodedArray, ['%to_delete%']);
322322
$this->csv[] = $data;

dev/tests/integration/testsuite/Magento/Deploy/_files/theme.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ function rcopy($src, $destination)
2424
// If source is not a directory stop processing
2525
if (!is_dir($src)) {
2626
return false;
27-
};
27+
}
2828

2929
// If the destination directory does not exist create it
3030
// If the destination directory could not be created stop processing

dev/tests/integration/testsuite/Magento/GiftMessage/_files/quote_with_item_message_rollback.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
if ($product->getId()) {
2121
$product->delete();
2222
}
23-
};
23+
}
2424
$quote->delete();
2525
$registry->unregister('isSecureArea');
2626
$registry->register('isSecureArea', false);

dev/tests/static/testsuite/Magento/Test/Integrity/Magento/Backend/ControllerAclTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ public function testAcl()
9797
$inheritanceMessage = "Backend controller $className have to inherit " . AbstractAction::class;
9898
$errorMessages[] = $inheritanceMessage;
9999
continue;
100-
};
100+
}
101101

102102
$isAclRedefinedInTheChildClass = $this->isConstantOverwritten($controllerClass)
103103
|| $this->isMethodOverwritten($controllerClass);

lib/internal/Magento/Framework/Indexer/Config/DependencyInfoProvider.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ public function getIndexerIdsToRunAfter(string $indexerId): array
4949
if (array_search($indexerId, $indexerData['dependencies']) !== false) {
5050
$result[] = $id;
5151
}
52-
};
52+
}
5353

5454
return $result;
5555
}

lib/internal/Magento/Framework/Setup/OldDbValidator.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ public function getNotUpToDateMessage(): string
4747
$requiredVersion = $versionParser->parseConstraints('>' . $error[DbVersionInfo::KEY_REQUIRED]);
4848
if ($requiredVersion->matches($currentVersion)) {
4949
$codebaseUpdateNeeded = true;
50-
};
50+
}
5151

5252
$messages[] = sprintf(
5353
"<info>%20s %10s: %11s -> %-11s</info>",

lib/internal/Magento/Framework/TestFramework/Unit/Autoloader/GeneratedClassesAutoloader.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ public function load($className)
6565
include $classSourceFile;
6666
return true;
6767
}
68-
};
68+
}
6969
}
7070

7171
return false;

0 commit comments

Comments
 (0)