1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-08 12:12:48 +01:00

Fix variable naming in DependencyTest.php

This commit is contained in:
Benjamin Beganović 2024-02-29 17:37:01 +01:00
parent 33e8743024
commit 89e5de0c37

View File

@ -100,7 +100,7 @@ class DependencyTest extends TestCase
private function checkDependencies(array $steps): array
{
$dependencies = Purchase::$dependencies;
$stepOrder = array_flip($steps);
$step_order = array_flip($steps);
$errors = [];
foreach ($steps as $step) {
@ -111,7 +111,7 @@ class DependencyTest extends TestCase
}
foreach ($dependent as $dependency) {
if (in_array($dependency, $steps) && $stepOrder[$dependency] > $stepOrder[$step]) {
if (in_array($dependency, $steps) && $step_order[$dependency] > $step_order[$step]) {
$errors[] = "Dependency error: $step depends on $dependency";
}
}