Skip to content

Commit d3e17f2

Browse files
committed
Declare return & parameter types
1 parent b4ab25f commit d3e17f2

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

app/code/Magento/SampleData/Console/Command/SampleDataDeployCommand.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ protected function configure()
107107
* @throws FileSystemException
108108
* @throws LocalizedException
109109
*/
110-
protected function execute(InputInterface $input, OutputInterface $output)
110+
protected function execute(InputInterface $input, OutputInterface $output): int
111111
{
112112
$this->updateMemoryLimit();
113113
$this->createAuthFile();
@@ -162,7 +162,7 @@ protected function execute(InputInterface $input, OutputInterface $output)
162162
* @return void
163163
* @throws LocalizedException
164164
*/
165-
private function createAuthFile()
165+
private function createAuthFile(): void
166166
{
167167
$directory = $this->filesystem->getDirectoryWrite(DirectoryList::COMPOSER_HOME);
168168

@@ -184,7 +184,7 @@ private function createAuthFile()
184184
* @throws InvalidArgumentException
185185
* @return void
186186
*/
187-
private function updateMemoryLimit()
187+
private function updateMemoryLimit(): void
188188
{
189189
if (function_exists('ini_set')) {
190190
// phpcs:ignore Magento2.Functions.DiscouragedFunction
@@ -217,7 +217,7 @@ private function updateMemoryLimit()
217217
* @param string $value
218218
* @return int
219219
*/
220-
private function getMemoryInBytes($value)
220+
private function getMemoryInBytes(string $value): int
221221
{
222222
$unit = strtolower(substr($value, -1, 1));
223223
$value = (int) $value;

0 commit comments

Comments
 (0)