original_string: 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;
      }
code: 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;
      }
code_tokens: 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 ; }
docstring: 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
docstring_tokens: Scans the system plugins to locate any dependencies that are not currently installed . Returns an array of plugin codes that are needed .