original_string: private function searchFor($name, $withExtension)
      {
          $found = false;
          $fileName = $name;
  
          foreach (self::$paths as $path) {
              $fileName = "{$path}/$withExtension";
              if (is_file($fileName)) {
                  $found = true;
                  break;
              }
          }
  
          return [$found, $fileName];
      }
code: private function searchFor($name, $withExtension)
      {
          $found = false;
          $fileName = $name;
  
          foreach (self::$paths as $path) {
              $fileName = "{$path}/$withExtension";
              if (is_file($fileName)) {
                  $found = true;
                  break;
              }
          }
  
          return [$found, $fileName];
      }
code_tokens: private function searchFor ( $ name , $ withExtension ) { $ found = false ; $ fileName = $ name ; foreach ( self :: $ paths as $ path ) { $ fileName = "{$path}/$withExtension" ; if ( is_file ( $ fileName ) ) { $ found = true ; break ; } } return [ $ found , $ fileName ] ; }
docstring: Search for name in the list of paths
  
  @param string $name
  @param string $withExtension
  
  @return array
docstring_tokens: Search for name in the list of paths