src/UploadedFile.php
public function moveTo($targetPath)
	{
		if ($this->getError() != UPLOAD_ERR_OK || !is_uploaded_file($this->tmpName) || !move_uploaded_file($this->tmpName, $targetPath)) {
			throw new \RuntimeException('Can\'t move the file');
		}
	}
public function moveTo($targetPath)
	{
		if ($this->getError() != UPLOAD_ERR_OK || !is_uploaded_file($this->tmpName) || !move_uploaded_file($this->tmpName, $targetPath)) {
			throw new \RuntimeException('Can\'t move the file');
		}
	}
{@inheritdoc}