for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* This class takes care of the registration agreement
*
* @name ElkArte Forum
* @copyright ElkArte Forum contributors
* @license BSD http://opensource.org/licenses/BSD-3-Clause
* @version 1.1
*/
* Class PrivacyPolicy
* A simple class to take care of the privacy policy
class PrivacyPolicy extends Agreement
{
* Everything starts here.
* @param string $language the wanted language of the agreement.
* @param string $backup_dir where to store the backup of the privacy policy.
$backup_dir
string|null
This check looks for @param annotations where the type inferred by our type inference engine differs from the declared type.
@param
It makes a suggestion as to what type it considers more descriptive.
Most often this is a case of a parameter that can be null in addition to its declared types.
public function __construct($language, $backup_dir = null)
$this->_log_table_name = '{db_prefix}log_privacy_policy_accept';
$this->_backupdir_name = 'privacypolicies';
$this->_file_name = 'privacypolicy';
parent::__construct($language, $backup_dir);
}
This check looks for
@param
annotations where the type inferred by our type inference engine differs from the declared type.It makes a suggestion as to what type it considers more descriptive.
Most often this is a case of a parameter that can be null in addition to its declared types.