original_string: protected function searchRecursive( $pattern, $directory )
      {
          $itemArr = glob( $directory . $pattern );
          $dirArr = glob( $directory . "*", GLOB_ONLYDIR );
          foreach ( $dirArr as $dirEntry )
          {
              $result = $this->searchRecursive( $pattern, "$dirEntry/" );
              $itemArr = array_merge( $itemArr, $result );
          }
          return $itemArr;
      }
code: protected function searchRecursive( $pattern, $directory )
      {
          $itemArr = glob( $directory . $pattern );
          $dirArr = glob( $directory . "*", GLOB_ONLYDIR );
          foreach ( $dirArr as $dirEntry )
          {
              $result = $this->searchRecursive( $pattern, "$dirEntry/" );
              $itemArr = array_merge( $itemArr, $result );
          }
          return $itemArr;
      }
code_tokens: protected function searchRecursive ( $ pattern , $ directory ) { $ itemArr = glob ( $ directory . $ pattern ) ; $ dirArr = glob ( $ directory . "*" , GLOB_ONLYDIR ) ; foreach ( $ dirArr as $ dirEntry ) { $ result = $ this -> searchRecursive ( $ pattern , "$dirEntry/" ) ; $ itemArr = array_merge ( $ itemArr , $ result ) ; } return $ itemArr ; }
docstring: Search the storage for data recursively.
  
  @param string $pattern  Pattern used with {@link glob()}.
  @param mixed $directory Directory to search in.
  @return array(int=>string) Found cache items.
docstring_tokens: Search the storage for data recursively .