original_string: public function makeLayoutPartial($partial, $params = [])
      {
          if (!File::isLocalPath($partial) && !File::isPathSymbol($partial)) {
              $folder = strpos($partial, '/') !== false ? dirname($partial) . '/' : '';
              $partial = $folder . '_' . strtolower(basename($partial));
          }
  
          return $this->makeLayout($partial, $params);
      }
code: public function makeLayoutPartial($partial, $params = [])
      {
          if (!File::isLocalPath($partial) && !File::isPathSymbol($partial)) {
              $folder = strpos($partial, '/') !== false ? dirname($partial) . '/' : '';
              $partial = $folder . '_' . strtolower(basename($partial));
          }
  
          return $this->makeLayout($partial, $params);
      }
code_tokens: public function makeLayoutPartial ( $ partial , $ params = [ ] ) { if ( ! File :: isLocalPath ( $ partial ) && ! File :: isPathSymbol ( $ partial ) ) { $ folder = strpos ( $ partial , '/' ) !== false ? dirname ( $ partial ) . '/' : '' ; $ partial = $ folder . '_' . strtolower ( basename ( $ partial ) ) ; } return $ this -> makeLayout ( $ partial , $ params ) ; }
docstring: Renders a layout partial
  @param string $partial The view to load.
  @param array $params Parameter variables to pass to the view.
  @return string The layout partial contents
docstring_tokens: Renders a layout partial