Skip to content

Commit a36769e

Browse files
authored
ENGCOM-5108: Grammatical mistake in the comments #22858
2 parents 5f6ec2e + 4466d13 commit a36769e

File tree

7 files changed

+11
-10
lines changed

7 files changed

+11
-10
lines changed

lib/internal/Magento/Framework/Setup/Declaration/Schema/Db/StatementAggregator.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ private function canDoMerge(Statement $bankStatement, Statement $statement)
3636
}
3737

3838
/**
39-
* If we add trigger after some specific statement, than we say that statement is final
39+
* If we add trigger after some specific statement, then we say that statement is final
4040
* and can`t be updated anymore. Otherwise trigger can fail.
4141
*
4242
* Example: while migrating data from one column to another and another column should be removed,

lib/internal/Magento/Framework/Setup/Declaration/Schema/Dto/Columns/ColumnNullableAwareInterface.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
/**
99
* Provides nullable flag for element.
10-
* If column element implement this interface, than it will have NULL or NOT NULL flag in column definition.
10+
* If column element implement this interface, then it will have NULL or NOT NULL flag in column definition.
1111
*/
1212
interface ColumnNullableAwareInterface
1313
{

lib/internal/Magento/Framework/Setup/Declaration/Schema/Dto/Columns/ColumnUnsignedAwareInterface.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
/**
99
* Unsigned flag provider for element.
10-
* If column element implement this interface, than it will have UNSIGNED flag in column
10+
* If column element implement this interface, then it will have UNSIGNED flag in column
1111
* definition.
1212
*/
1313
interface ColumnUnsignedAwareInterface

lib/internal/Magento/Framework/Setup/Declaration/Schema/Operations/AddColumn.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ private function setupTriggersIfExists(Statement $statement, ElementHistory $ele
164164
}
165165
$statements = [$statement];
166166
/**
167-
* If column has triggers, only than we need to create temporary index on it.
167+
* If column has triggers, only then we need to create temporary index on it.
168168
* As triggers means, that we will not enable primary key until all data will be transferred,
169169
* so column can left without key (as primary key is disabled) and this cause an error.
170170
*/

lib/internal/Magento/Framework/Setup/Patch/PatchInterface.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ public function getAliases();
1919

2020
/**
2121
* Run code inside patch
22-
* If code fails, patch must be reverted, in case when we are speaking about schema - than under revert
22+
* If code fails, patch must be reverted, in case when we are speaking about schema - then under revert
2323
* means run PatchInterface::revert()
2424
*
2525
* If we speak about data, under revert means: $transaction->rollback()

lib/internal/Magento/Framework/Setup/Patch/PatchRegistry.php

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ public function __construct(PatchFactory $patchFactory, PatchHistory $patchHisto
6868
/**
6969
* Register all dependents to patch
7070
*
71-
* @param string | DependentPatchInterface $patchName
71+
* @param string|DependentPatchInterface $patchName
7272
*/
7373
private function registerDependents(string $patchName)
7474
{
@@ -130,6 +130,8 @@ private function getDependentPatches(string $patch)
130130
}
131131

132132
/**
133+
* Get patch dependencies.
134+
*
133135
* @param string $patch
134136
* @return string[]
135137
*/
@@ -146,7 +148,7 @@ private function getDependencies(string $patch)
146148

147149
$depInstance = $this->registerPatch($dep);
148150
/**
149-
* If a patch already have applied dependency - than we definently know
151+
* If a patch already have applied dependency - then we definitely know
150152
* that all other dependencies in dependency chain are applied too, so we can skip this dep
151153
*/
152154
if (!$depInstance) {
@@ -189,7 +191,7 @@ public function getReverseIterator()
189191
/**
190192
* Retrieve iterator of all patch instances
191193
*
192-
* If patch have dependencies, than first of all dependencies should be installed and only then desired patch
194+
* If patch have dependencies, then first of all dependencies should be installed and only then desired patch
193195
*
194196
* @return \ArrayIterator
195197
*/

lib/internal/Magento/Framework/Setup/Patch/PatchVersionInterface.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,10 @@ interface PatchVersionInterface
1414
{
1515
/**
1616
* This version associate patch with Magento setup version.
17-
* For example, if Magento current setup version is 2.0.3 and patch version is 2.0.2 than
17+
* For example, if Magento current setup version is 2.0.3 and patch version is 2.0.2 then
1818
* this patch will be added to registry, but will not be applied, because it is already applied
1919
* by old mechanism of UpgradeData.php script
2020
*
21-
*
2221
* @return string
2322
* @deprecated since appearance, required for backward compatibility
2423
*/

0 commit comments

Comments
 (0)