original_string: public function resolveExtending()
      {
          /**
           * Extending of view.
           */
          preg_match_all('/@extends\(\'([a-zA-Z0-9\.\-]+)\'\)/', $this->prepared, $matches);
  
          if(isset($matches[1][0]))
          {
              $this->extends  = trim($matches[1][0]);
  
              $this->prepared = trim(str_replace($matches[0][0], '', $this->prepared));
          }
  
          /**
           * Tag means that this view should not be extending.
           */
          preg_match_all('/@no-extends/', $this->prepared, $matches);
  
          if(isset($matches[0][0]) && count($matches[0][0]) == 1)
          {
              $this->extends  = false;
  
              $this->prepared = trim(str_replace($matches[0][0], '', $this->prepared));
          }
      }
code: public function resolveExtending()
      {
          /**
           * Extending of view.
           */
          preg_match_all('/@extends\(\'([a-zA-Z0-9\.\-]+)\'\)/', $this->prepared, $matches);
  
          if(isset($matches[1][0]))
          {
              $this->extends  = trim($matches[1][0]);
  
              $this->prepared = trim(str_replace($matches[0][0], '', $this->prepared));
          }
  
          /**
           * Tag means that this view should not be extending.
           */
          preg_match_all('/@no-extends/', $this->prepared, $matches);
  
          if(isset($matches[0][0]) && count($matches[0][0]) == 1)
          {
              $this->extends  = false;
  
              $this->prepared = trim(str_replace($matches[0][0], '', $this->prepared));
          }
      }
code_tokens: public function resolveExtending ( ) { /**
           * Extending of view.
           */ preg_match_all ( '/@extends\(\'([a-zA-Z0-9\.\-]+)\'\)/' , $ this -> prepared , $ matches ) ; if ( isset ( $ matches [ 1 ] [ 0 ] ) ) { $ this -> extends = trim ( $ matches [ 1 ] [ 0 ] ) ; $ this -> prepared = trim ( str_replace ( $ matches [ 0 ] [ 0 ] , '' , $ this -> prepared ) ) ; } /**
           * Tag means that this view should not be extending.
           */ preg_match_all ( '/@no-extends/' , $ this -> prepared , $ matches ) ; if ( isset ( $ matches [ 0 ] [ 0 ] ) && count ( $ matches [ 0 ] [ 0 ] ) == 1 ) { $ this -> extends = false ; $ this -> prepared = trim ( str_replace ( $ matches [ 0 ] [ 0 ] , '' , $ this -> prepared ) ) ; } }
docstring: Extending view.
  
  Examples:
  
  - Extends view by view named by definition: master.index
  @extends('master.index')
  
  - Tells that this view should not be extending.
  @no-extends
docstring_tokens: Extending view .