for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
*
* @package sitemaker
* @copyright (c) 2016 Daniel A. (blitze)
* @license http://opensource.org/licenses/gpl-2.0.php GNU General Public License v2
*/
namespace blitze\content\services\actions;
abstract class action_utils
{
/** @var bool */
protected $auto_refresh = true;
protected $redirect = true;
protected $trigger_error = true;
* @param string $u_action
* @return void
protected function redirect($u_action)
$this->redirect ? redirect($u_action) : null;
}
* @param int $time
protected function meta_refresh($time, $u_action)
$time
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.
$this->auto_refresh ? meta_refresh(3, $u_action) : null;
* @param string $message
* @param int $errno
protected function trigger_error($message, $u_action = '', $errno = E_USER_WARNING)
$message .= $u_action ? adm_back_link($u_action) : '';
$this->trigger_error ? trigger_error($message, $errno) : null;
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.