Skip to content

Commit 55177c8

Browse files
committed
Address codesniffer issues
1 parent b0aa3d5 commit 55177c8

18 files changed

+30
-33
lines changed

composer.json

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,6 @@
55
"version": "2002.1.19",
66
"license": "OSL-3.0",
77
"repositories": {
8-
"mcd": {
9-
"type": "vcs",
10-
"url": "https://github.com/magento-commerce/magento-cloud-docker.git"
11-
},
128
"repo.magento.com": {
139
"type": "composer",
1410
"url": "https://repo.magento.com/"
@@ -26,7 +22,7 @@
2622
"guzzlehttp/guzzle": "^7.3 || ^7.5",
2723
"illuminate/config": "^10.0 || ^11.0",
2824
"magento/magento-cloud-components": "^1.0.8",
29-
"magento/magento-cloud-docker": "dev-MCLOUD-13147 as 1.3.99",
25+
"magento/magento-cloud-docker": "^1.0.0",
3026
"magento/magento-cloud-patches": "^1.0.20",
3127
"magento/quality-patches": "^1.1.0",
3228
"monolog/monolog": "^2.3 || ^2.7 || ^3.6",

src/Test/Unit/App/Logger/Gelf/HandlerFactoryTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ public function testCreate(): void
7272
['additional'] => [
7373
'project' => 'some_project'
7474
]
75-
});
75+
});
7676
$series = [
7777
[['http', ['host' => 'localhost']], $httpTransportMock],
7878
[['tcp', ['host' => '127.0.0.1']], $tcpTransportMock],

src/Test/Unit/Command/CronUnlockTest.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,6 @@ public function testExecuteWithJobCode(): void
113113
}),
114114
CronUnlock::UNLOCK_MESSAGE
115115
);
116-
117116

118117
$tester = new CommandTester(
119118
$this->cronUnlockCommand

src/Test/Unit/Command/Dev/UpdateComposerTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ public function testExecute(): void
140140
// withConsecutive() alternative.
141141
->with(
142142
$this->callback(function (string $script) use (&$scripts) {
143-
return array_shift($scripts) === $script;
143+
return array_shift($scripts) === $script;
144144
})
145145
);
146146

src/Test/Unit/Command/Wizard/IdealStateTest.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -92,13 +92,14 @@ public function testExecuteWithErrors()
9292
->method('writeItem')
9393
// withConsecutive() alternative.
9494
->willReturnCallback(
95-
function ($arg1, $arg2) use ($outputMock, $error1, $error2){
95+
function ($arg1, $arg2) use ($outputMock, $error1, $error2) {
9696
if ($arg1 == $outputMock && $arg2 == $error1) {
9797
return $this->outputFormatterMock;
9898
} elseif ($arg1 == $outputMock && $arg2 == $error2) {
9999
return $this->outputFormatterMock;
100100
}
101-
});
101+
}
102+
);
102103
$this->outputFormatterMock->expects($this->once())
103104
->method('writeResult')
104105
->with($outputMock, false, 'State is not ideal');

src/Test/Unit/Config/Validator/Deploy/ServiceVersionTest.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,7 @@ public function testValidateWithErrors(): void
191191
->method('validateService')
192192
// withConsecutive() alternative.
193193
->willReturnCallback(
194-
function ($arg1, $arg2) use ($errorMessages){
194+
function ($arg1, $arg2) use ($errorMessages) {
195195
if ($arg1 == ServiceInterface::NAME_RABBITMQ && $arg2 == '1.5') {
196196
return $errorMessages[0];
197197
} elseif ($arg1 == ServiceInterface::NAME_REDIS && $arg2 == '2.2') {
@@ -205,7 +205,8 @@ function ($arg1, $arg2) use ($errorMessages){
205205
} elseif ($arg1 == ServiceInterface::NAME_DB_MYSQL && $arg2 == '5.7') {
206206
return $errorMessages[5];
207207
}
208-
});
208+
}
209+
);
209210
$this->resultFactoryMock->expects($this->once())
210211
->method('error')
211212
->with($this->anything(), implode(PHP_EOL, $errorMessages));

src/Test/Unit/Config/Validator/GlobalStage/ScdOnDeployTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ public function testGetErrors()
108108
// withConsecutive() alternative.
109109
->with(
110110
$this->callback(function (string $message) use (&$messages) {
111-
return array_shift($messages) === $message;
111+
return array_shift($messages) === $message;
112112
})
113113
);
114114

src/Test/Unit/DB/DumpProcessorTest.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ public function testExecute(array $dbConfig, $expects, bool $removeDefiners)
146146
// withConsecutive() alternative.
147147
->with(
148148
$this->callback(function (string $mock) use (&$mocks) {
149-
return array_shift($mocks) === $mock;
149+
return array_shift($mocks) === $mock;
150150
}),
151151
$this->connectionDataMock,
152152
$removeDefiners
@@ -217,7 +217,7 @@ public function testExecuteWithDatabases(
217217
array $databases,
218218
$expects
219219
) {
220-
$series = [
220+
$series = [
221221
['main', $this->connectionDataMock, true],
222222
['quote', $this->connectionDataMock, true],
223223
['sales', $this->connectionDataMock, true]
@@ -248,7 +248,7 @@ public function testExecuteWithDatabases(
248248
// withConsecutive() alternative.
249249
->with(
250250
$this->callback(function (string $mock) use (&$mocks) {
251-
return array_shift($mocks) === $mock;
251+
return array_shift($mocks) === $mock;
252252
}),
253253
$this->connectionDataMock,
254254
true

src/Test/Unit/Step/Build/DeployStaticContent/GenerateTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ public function testExecute()
9898
1 => $message === "Generating static content for locales: ua_UA fr_FR es_ES en_US\nUsing 3 Threads"
9999
};
100100
}));
101-
$this->commandFactoryMock->expects($this->once())
101+
$this->commandFactoryMock->expects($this->once())
102102
->method('matrix')
103103
->with($this->optionMock, ['some_matrix'])
104104
->willReturn($commands);

src/Test/Unit/Step/Build/EnableEventingTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ public function testExecuteEnableModuleCommandFailed()
137137
if ($arg1 == 'events:generate:module') {
138138
return $this->processMock;
139139
} elseif ($arg1 == 'module:enable Magento_AdobeCommerceEvents') {
140-
throw new ShellException('error during module enablement');
140+
throw new ShellException('error during module enablement');
141141
}
142142
});
143143
$this->loggerMock->expects(self::exactly(2))

0 commit comments

Comments
 (0)