* Reads the information of cached files
*
* @param string $cacheType
- * @param strign $cacheDir
+ * @param string $cacheDir
* @param \wcf\system\Regex $ignore
*/
protected function readCacheFiles($cacheType, $cacheDir, Regex $ignore = null, $extension = 'php') {
/**
* Returns the time zone of this user.
*
- * @return DateTimeZone
+ * @return \DateTimeZone
*/
public function getTimeZone() {
if ($this->timezoneObj === null) {
/**
* Returns the list of available user options.
*
- * @return string
+ * @return string[]
*/
protected static function getUserOptions() {
if (self::$userOptions === null) {
* @param string $targetDir
* @param string $files
* @param boolean $deleteEmptyDirectories
- * @param booelan $deleteEmptyTargetDir
+ * @param boolean $deleteEmptyTargetDir
*/
public function deleteFiles($targetDir, $files, $deleteEmptyTargetDir = false, $deleteEmptyDirectories = true) {
new Uninstaller($targetDir, $files, $deleteEmptyTargetDir, $deleteEmptyDirectories);
* Registers a session variable.
*
* @param string $key
- * @param string $value
+ * @param mixed $value
*/
public function register($key, $value) {
$this->variables[$key] = $value;
}
/**
- * Returns the value of a session variable.
+ * Returns the value of a session variable or `null` if the session
+ * variable does not exist.
*
* @param string $key
+ * @return mixed
*/
public function getVar($key) {
if (isset($this->variables[$key])) {
/**
* Generates HTML code for 'previous' link.
*
- * @param type $link
- * @param type $pageNo
+ * @param string $link
+ * @param integer $pageNo
* @return string
*/
protected function makePreviousLink($link, $pageNo) {
/**
* Generates HTML code for 'next' link.
*
- * @param type $link
- * @param type $pageNo
+ * @param string $link
+ * @param integer $pageNo
* @return string
*/
protected function makeNextLink($link, $pageNo, $pages) {