-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
SDK-5463 update phpstan evaluator (#271)
* SDK-5463 update phpstan evaluator * SDK-5463 update tests * SDK-5463 uncomment services back * SDK-5463 update tests * SDK-5463 add additional check --------- Co-authored-by: Dmytro Klyman <dmytro.klyman@spryker.com>
- Loading branch information
1 parent
ac8ee14
commit f2a84ed
Showing
20 changed files
with
1,049 additions
and
67 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
38 changes: 38 additions & 0 deletions
38
...aluator/Application/Checker/BrokenPhpFilesChecker/SprykerModule/SprykerModuleComparer.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
<?php | ||
|
||
/** | ||
* Copyright © 2016-present Spryker Systems GmbH. All rights reserved. | ||
* Use of this software requires acceptance of the Evaluation License Agreement. See LICENSE file. | ||
*/ | ||
|
||
declare(strict_types=1); | ||
|
||
namespace DynamicEvaluator\Application\Checker\BrokenPhpFilesChecker\SprykerModule; | ||
|
||
class SprykerModuleComparer implements SprykerModuleComparerInterface | ||
{ | ||
/** | ||
* @param array<string, string> $previousSprykerModules array{ name: version } | ||
* @param array<string, string> $newSprykerModules array{ name: version } | ||
* | ||
* @return array<string> | ||
*/ | ||
public function compareForUpdatedModules(array $previousSprykerModules, array $newSprykerModules): array | ||
{ | ||
$modulesDiff = []; | ||
|
||
foreach ($newSprykerModules as $moduleName => $moduleVersion) { | ||
if (!isset($previousSprykerModules[$moduleName])) { | ||
continue; | ||
} | ||
|
||
if ($previousSprykerModules[$moduleName] === $moduleVersion) { | ||
continue; | ||
} | ||
|
||
$modulesDiff[] = $moduleName; | ||
} | ||
|
||
return array_unique($modulesDiff); | ||
} | ||
} |
21 changes: 21 additions & 0 deletions
21
...pplication/Checker/BrokenPhpFilesChecker/SprykerModule/SprykerModuleComparerInterface.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
<?php | ||
|
||
/** | ||
* Copyright © 2016-present Spryker Systems GmbH. All rights reserved. | ||
* Use of this software requires acceptance of the Evaluation License Agreement. See LICENSE file. | ||
*/ | ||
|
||
declare(strict_types=1); | ||
|
||
namespace DynamicEvaluator\Application\Checker\BrokenPhpFilesChecker\SprykerModule; | ||
|
||
interface SprykerModuleComparerInterface | ||
{ | ||
/** | ||
* @param array<string, string> $previousSprykerModules array{ name: version } | ||
* @param array<string, string> $newSprykerModules array{ name: version } | ||
* | ||
* @return array<string> | ||
*/ | ||
public function compareForUpdatedModules(array $previousSprykerModules, array $newSprykerModules): array; | ||
} |
Oops, something went wrong.