original_string: public function listFiles(array $paths, $pattern = '|\.yaml$|', $levels = -1)
      {
          $list = [];
          foreach ($paths as $folder) {
              $list = array_merge_recursive($list, $this->detectAll($folder, $pattern, $levels));
          }
          return $list;
      }
code: public function listFiles(array $paths, $pattern = '|\.yaml$|', $levels = -1)
      {
          $list = [];
          foreach ($paths as $folder) {
              $list = array_merge_recursive($list, $this->detectAll($folder, $pattern, $levels));
          }
          return $list;
      }
code_tokens: public function listFiles ( array $ paths , $ pattern = '|\.yaml$|' , $ levels = - 1 ) { $ list = [ ] ; foreach ( $ paths as $ folder ) { $ list = array_merge_recursive ( $ list , $ this -> detectAll ( $ folder , $ pattern , $ levels ) ) ; } return $ list ; }
docstring: Return all paths for all the files with a timestamp.
  
  @param  array  $paths    List of folders to look from.
  @param  string $pattern  Pattern to match the file. Pattern will also be removed from the key.
  @param  int    $levels   Maximum number of recursive directories.
  @return array
docstring_tokens: Return all paths for all the files with a timestamp .