mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2024-11-08 20:22:42 +01:00
Fix variable naming in DependencyTest.php
This commit is contained in:
parent
33e8743024
commit
89e5de0c37
@ -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";
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user