<?php
/**
- * Makes non-critical database adjustments (i.e. everything that is not related
+ * Makes non-critical database adjustments (i.e. everything that is not related
* to sessions).
*
* @author Tim Duesterhus
NotNullVarchar255DatabaseTableColumn::create('status')
->defaultValue('PENDING'),
NotNullInt10DatabaseTableColumn::create('lastFetch')
- ->defaultValue(0)
+ ->defaultValue(0),
])
->indices([
DatabaseTablePrimaryIndex::create()
if (empty(StringUtil::trim($unfurlResponse->getTitle()))) {
$this->save(UnfurlUrl::STATUS_REJECTED);
+
return;
}
throw new DownloadFailed();
}
- $imageHash = sha1($image);
+ $imageHash = \sha1($image);
$path = WCF_DIR . 'images/unfurlUrl/' . \substr($imageHash, 0, 2);
FileUtil::makePath($path);