} /**
* dependsOn determines, whether a given plugin depends on another one.
*
* @param PluginEntity $plugin the plugin to be checked
* @param PluginEntity $dependency the potential dependency
*/
private function dependsOn(PluginEntity
$plugin, PluginEntity
$dependency): bool
{ $composerName =
$dependency->
getComposerName();
if (!\
is_string($composerName)) { return false;
} if (\
array_key_exists($composerName,
$this->
getPluginDependencies($plugin)['require'
])) { return true;
} return false;
}