public function findMissingDependencies()
    {
        $missing = [];

        foreach ($this->plugins as $id => $plugin) {
            if (!$required = $this->getDependencies($plugin)) {
                continue;
            }

            foreach ($required as $require) {
                if ($this->hasPlugin($require)) {
                    continue;
                }

                if (!in_array($require, $missing)) {
                    $missing[] = $require;
                }
            }
        }

        return $missing;
    }
public function findMissingDependencies()
    {
        $missing = [];

        foreach ($this->plugins as $id => $plugin) {
            if (!$required = $this->getDependencies($plugin)) {
                continue;
            }

            foreach ($required as $require) {
                if ($this->hasPlugin($require)) {
                    continue;
                }

                if (!in_array($require, $missing)) {
                    $missing[] = $require;
                }
            }
        }

        return $missing;
    }
public function findMissingDependencies ( ) { $ missing = [ ] ; foreach ( $ this -> plugins as $ id => $ plugin ) { if ( ! $ required = $ this -> getDependencies ( $ plugin ) ) { continue ; } foreach ( $ required as $ require ) { if ( $ this -> hasPlugin ( $ require ) ) { continue ; } if ( ! in_array ( $ require , $ missing ) ) { $ missing [ ] = $ require ; } } } return $ missing ; }
Scans the system plugins to locate any dependencies that are not currently
installed. Returns an array of plugin codes that are needed.

PluginManager::instance()->findMissingDependencies();

@return array
Scans the system plugins to locate any dependencies that are not currently installed . Returns an array of plugin codes that are needed .