original_string: protected function validateStoragePath()
      {
          if (is_null($this->storagePath)) {
              throw new Exception('A storage path has not been set');
          }
  
          if (! is_dir($this->storagePath) || ! is_writable($this->storagePath)) {
              throw new Exception('The specified storage path is not writable');
          }
      }
code: protected function validateStoragePath()
      {
          if (is_null($this->storagePath)) {
              throw new Exception('A storage path has not been set');
          }
  
          if (! is_dir($this->storagePath) || ! is_writable($this->storagePath)) {
              throw new Exception('The specified storage path is not writable');
          }
      }
code_tokens: protected function validateStoragePath ( ) { if ( is_null ( $ this -> storagePath ) ) { throw new Exception ( 'A storage path has not been set' ) ; } if ( ! is_dir ( $ this -> storagePath ) || ! is_writable ( $ this -> storagePath ) ) { throw new Exception ( 'The specified storage path is not writable' ) ; } }
docstring: Validate that the storage path is set and is writable
  @throws \Exception
docstring_tokens: Validate that the storage path is set and is writable