original_string: public function getInstalledPackage($slug)
      {
          if (isset($this->installed['plugins'][$slug])) {
              return $this->installed['plugins'][$slug];
          }
  
          if (isset($this->installed['themes'][$slug])) {
              return $this->installed['themes'][$slug];
          }
  
          return null;
      }
code: public function getInstalledPackage($slug)
      {
          if (isset($this->installed['plugins'][$slug])) {
              return $this->installed['plugins'][$slug];
          }
  
          if (isset($this->installed['themes'][$slug])) {
              return $this->installed['themes'][$slug];
          }
  
          return null;
      }
code_tokens: public function getInstalledPackage ( $ slug ) { if ( isset ( $ this -> installed [ 'plugins' ] [ $ slug ] ) ) { return $ this -> installed [ 'plugins' ] [ $ slug ] ; } if ( isset ( $ this -> installed [ 'themes' ] [ $ slug ] ) ) { return $ this -> installed [ 'themes' ] [ $ slug ] ; } return null ; }
docstring: Return the instance of a specific Package
  
  @param  string $slug The slug of the Package
  @return Local\Package The instance of the Package
docstring_tokens: Return the instance of a specific Package