original_string: protected function pathMatchesSearch($path, $words)
      {
          $path = Str::lower($path);
  
          foreach ($words as $word) {
              $word = trim($word);
              if (!strlen($word)) {
                  continue;
              }
  
              if (!Str::contains($path, $word)) {
                  return false;
              }
          }
  
          return true;
      }
code: protected function pathMatchesSearch($path, $words)
      {
          $path = Str::lower($path);
  
          foreach ($words as $word) {
              $word = trim($word);
              if (!strlen($word)) {
                  continue;
              }
  
              if (!Str::contains($path, $word)) {
                  return false;
              }
          }
  
          return true;
      }
code_tokens: protected function pathMatchesSearch ( $ path , $ words ) { $ path = Str :: lower ( $ path ) ; foreach ( $ words as $ word ) { $ word = trim ( $ word ) ; if ( ! strlen ( $ word ) ) { continue ; } if ( ! Str :: contains ( $ path , $ word ) ) { return false ; } } return true ; }
docstring: Determines if file path contains all words form the search term.
  @param string $path Specifies a path to examine.
  @param array $words A list of words to check against.
  @return boolean
docstring_tokens: Determines if file path contains all words form the search term .