original_string: protected static function isFileFromPluginNotInManifest($file, $pluginsInManifest)
      {
          if (strpos($file, 'plugins/') !== 0) {
              return false;
          }
  
          if (substr_count($file, '/') < 2) {
              // must be a file plugins/abc.xyz and not a plugin directory
              return false;
          }
  
          $pluginName = self::getPluginNameFromFilepath($file);
          if(in_array($pluginName, $pluginsInManifest)) {
              return false;
          }
  
          return true;
      }
code: protected static function isFileFromPluginNotInManifest($file, $pluginsInManifest)
      {
          if (strpos($file, 'plugins/') !== 0) {
              return false;
          }
  
          if (substr_count($file, '/') < 2) {
              // must be a file plugins/abc.xyz and not a plugin directory
              return false;
          }
  
          $pluginName = self::getPluginNameFromFilepath($file);
          if(in_array($pluginName, $pluginsInManifest)) {
              return false;
          }
  
          return true;
      }
code_tokens: protected static function isFileFromPluginNotInManifest ( $ file , $ pluginsInManifest ) { if ( strpos ( $ file , 'plugins/' ) !== 0 ) { return false ; } if ( substr_count ( $ file , '/' ) < 2 ) { // must be a file plugins/abc.xyz and not a plugin directory return false ; } $ pluginName = self :: getPluginNameFromFilepath ( $ file ) ; if ( in_array ( $ pluginName , $ pluginsInManifest ) ) { return false ; } return true ; }
docstring: If a plugin folder is not tracked in the manifest then we don't try to report any files in this folder
  Could be a third party plugin or any plugin from the Marketplace
  
  @param $file
  @param $pluginsInManifest
  @return bool
docstring_tokens: If a plugin folder is not tracked in the manifest then we don t try to report any files in this folder Could be a third party plugin or any plugin from the Marketplace