original_string: public function handleDeleteImages(string $json): void
  	{
  		if ($this->request->isAjax()) {
  			$data = Json::decode($json);
  
  			$result = $this->getStorage()->delete($data);
  			foreach ($result as $row) {
  				$this->imageStorage->delete($row);
  			}
  
  			$this->redrawControl('gallery');
  		} else {
  			throw new AbortException;
  		}
  	}
code: public function handleDeleteImages(string $json): void
  	{
  		if ($this->request->isAjax()) {
  			$data = Json::decode($json);
  
  			$result = $this->getStorage()->delete($data);
  			foreach ($result as $row) {
  				$this->imageStorage->delete($row);
  			}
  
  			$this->redrawControl('gallery');
  		} else {
  			throw new AbortException;
  		}
  	}
code_tokens: public function handleDeleteImages ( string $ json ) : void { if ( $ this -> request -> isAjax ( ) ) { $ data = Json :: decode ( $ json ) ; $ result = $ this -> getStorage ( ) -> delete ( $ data ) ; foreach ( $ result as $ row ) { $ this -> imageStorage -> delete ( $ row ) ; } $ this -> redrawControl ( 'gallery' ) ; } else { throw new AbortException ; } }
docstring: Smaze vybrane obrazky
  @param string $json
  @secured
  @throws \Nette\Utils\JsonException
  @throws AbortException
docstring_tokens: Smaze vybrane obrazky