original_string: protected function setDirectoryImage()
      {
          $imagestyle_directory = GC_DIR_IMAGE_CACHE . "/$this->data_imagestyle_id";
          $image_directory = pathinfo($this->data_path, PATHINFO_DIRNAME);
  
          if (!empty($image_directory)) {
              $imagestyle_directory = GC_DIR_IMAGE_CACHE . "/$this->data_imagestyle_id/$image_directory";
          }
  
          $this->data_imagestyle_directory = $imagestyle_directory;
          $this->data_cached_file = "$imagestyle_directory/" . basename($this->data_path);
      }
code: protected function setDirectoryImage()
      {
          $imagestyle_directory = GC_DIR_IMAGE_CACHE . "/$this->data_imagestyle_id";
          $image_directory = pathinfo($this->data_path, PATHINFO_DIRNAME);
  
          if (!empty($image_directory)) {
              $imagestyle_directory = GC_DIR_IMAGE_CACHE . "/$this->data_imagestyle_id/$image_directory";
          }
  
          $this->data_imagestyle_directory = $imagestyle_directory;
          $this->data_cached_file = "$imagestyle_directory/" . basename($this->data_path);
      }
code_tokens: protected function setDirectoryImage ( ) { $ imagestyle_directory = GC_DIR_IMAGE_CACHE . "/$this->data_imagestyle_id" ; $ image_directory = pathinfo ( $ this -> data_path , PATHINFO_DIRNAME ) ; if ( ! empty ( $ image_directory ) ) { $ imagestyle_directory = GC_DIR_IMAGE_CACHE . "/$this->data_imagestyle_id/$image_directory" ; } $ this -> data_imagestyle_directory = $ imagestyle_directory ; $ this -> data_cached_file = "$imagestyle_directory/" . basename ( $ this -> data_path ) ; }
docstring: Set the current image style directory
docstring_tokens: Set the current image style directory