Skip to content

Commit

Permalink
Ignore PHPCS warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
jissereitsma committed Aug 28, 2023
1 parent 53ad6ca commit 927fb74
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 2 deletions.
3 changes: 2 additions & 1 deletion Utilities/CurrentInstallConfig.php
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,8 @@ public function getValues(): array
}

$values = $this->defaultInstallConfig->getValues();
$values = array_merge($values, include($installConfig));
// phpcs:ignore
$values = array_merge($values, require($installConfig));
return $values;
}

Expand Down
1 change: 1 addition & 0 deletions Utilities/DisableModules.php
Original file line number Diff line number Diff line change
Expand Up @@ -179,6 +179,7 @@ public function disableGraphQl(): DisableModules
*/
public function getModulesFromConfig(): array
{
// phpcs:ignore
$config = require($this->applicationRoot . '/app/etc/config.php');
return $config['modules'];
}
Expand Down
3 changes: 2 additions & 1 deletion Utilities/IntegrationTesting/InstallConfig.php
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ public function __construct(
public function getConfigValues(): array
{
if (empty($this->configValues)) {
// phpcs:ignore
$output = exec('php '.__DIR__.'/InstallConfigExec.php '.$this->directoryList->getRoot());
$this->configValues = json_decode($output, true);
}
Expand Down Expand Up @@ -83,4 +84,4 @@ private function getFilePath(): string

throw new FileNotFound(__(sprintf('%s not found', $file)));
}
}
}
2 changes: 2 additions & 0 deletions Utilities/IntegrationTesting/InstallConfigExec.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
<?php declare(strict_types=1);
// phpcs:ignoreFile

$magentoRoot = $argv[1];

require_once $magentoRoot . '/dev/tests/integration/framework/autoload.php';

$file = $magentoRoot . '/dev/tests/integration/etc/install-config-mysql.php';
Expand Down

0 comments on commit 927fb74

Please sign in to comment.