original_string: protected function _active()
      {
          $dir = new SplFileInfo($this->_config['path']);
          $path = $dir->getPathname();
          $success = true;
          if (!is_dir($path)) {
              //@codingStandardsIgnoreStart
              $success = @mkdir($path, 0775, true);
              //@codingStandardsIgnoreEnd
          }
  
          $isWritableDir = ($dir->isDir() && $dir->isWritable());
          if (!$success || ($this->_init && !$isWritableDir)) {
              $this->_init = false;
              trigger_error(sprintf(
                  '%s is not writable',
                  $this->_config['path']
              ), E_USER_WARNING);
          }
  
          return $success;
      }
code: protected function _active()
      {
          $dir = new SplFileInfo($this->_config['path']);
          $path = $dir->getPathname();
          $success = true;
          if (!is_dir($path)) {
              //@codingStandardsIgnoreStart
              $success = @mkdir($path, 0775, true);
              //@codingStandardsIgnoreEnd
          }
  
          $isWritableDir = ($dir->isDir() && $dir->isWritable());
          if (!$success || ($this->_init && !$isWritableDir)) {
              $this->_init = false;
              trigger_error(sprintf(
                  '%s is not writable',
                  $this->_config['path']
              ), E_USER_WARNING);
          }
  
          return $success;
      }
code_tokens: protected function _active ( ) { $ dir = new SplFileInfo ( $ this -> _config [ 'path' ] ) ; $ path = $ dir -> getPathname ( ) ; $ success = true ; if ( ! is_dir ( $ path ) ) { //@codingStandardsIgnoreStart $ success = @ mkdir ( $ path , 0775 , true ) ; //@codingStandardsIgnoreEnd } $ isWritableDir = ( $ dir -> isDir ( ) && $ dir -> isWritable ( ) ) ; if ( ! $ success || ( $ this -> _init && ! $ isWritableDir ) ) { $ this -> _init = false ; trigger_error ( sprintf ( '%s is not writable' , $ this -> _config [ 'path' ] ) , E_USER_WARNING ) ; } return $ success ; }
docstring: Determine if cache directory is writable
  
  @return bool
docstring_tokens: Determine if cache directory is writable