original_string: public static function getData($plugin, $key = null)
      {
          $data = self::_checkData($plugin);
          if (empty($data) && $path = self::getManifestPath($plugin)) {
              if (FS::isFile($path)) {
                  /** @noinspection PhpIncludeInspection */
                  $plgData = include $path;
                  $plgData = (array) $plgData;
                  if (!empty($plgData)) {
                      self::$_data[$plugin] = $plgData;
                      $data = $plgData;
                  }
              }
          }
  
          return self::_getPluginData($data, $key);
      }
code: public static function getData($plugin, $key = null)
      {
          $data = self::_checkData($plugin);
          if (empty($data) && $path = self::getManifestPath($plugin)) {
              if (FS::isFile($path)) {
                  /** @noinspection PhpIncludeInspection */
                  $plgData = include $path;
                  $plgData = (array) $plgData;
                  if (!empty($plgData)) {
                      self::$_data[$plugin] = $plgData;
                      $data = $plgData;
                  }
              }
          }
  
          return self::_getPluginData($data, $key);
      }
code_tokens: public static function getData ( $ plugin , $ key = null ) { $ data = self :: _checkData ( $ plugin ) ; if ( empty ( $ data ) && $ path = self :: getManifestPath ( $ plugin ) ) { if ( FS :: isFile ( $ path ) ) { /** @noinspection PhpIncludeInspection */ $ plgData = include $ path ; $ plgData = ( array ) $ plgData ; if ( ! empty ( $ plgData ) ) { self :: $ _data [ $ plugin ] = $ plgData ; $ data = $ plgData ; } } } return self :: _getPluginData ( $ data , $ key ) ; }
docstring: Get plugin manifest data.
  
  @param string $plugin
  @param null|string $key
  @return Data
docstring_tokens: Get plugin manifest data .