code: protected function extract($filepath, array $data)
      {
          extract($data);
  
          ob_start();
  
          include $filepath;
  
          $contents = ob_get_contents();
  
          ob_end_clean();
  
          return $contents;
      }
docs: Extracts the contents of the specified file.
  
  @param  string $filepath
  @param  array  $data
  @return string