for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* _ __ __ _____ _____ ___ ____ _____
* | | / // // ___//_ _// || __||_ _|
* | |/ // /(__ ) / / / /| || | | |
* |___//_//____/ /_/ /_/ |_||_| |_|
* @link https://vistart.me/
* @copyright Copyright (c) 2016 - 2017 vistart
* @license https://vistart.me/license/
*/
namespace rhosocial\organization\exceptions;
use Yii;
use yii\web\UnauthorizedHttpException;
* Class UnauthorizedManageMemberException
* @package rhosocial\organization\exceptions
* @version 1.0
* @author vistart <[email protected]>
class UnauthorizedManageMemberException extends UnauthorizedHttpException
{
* Constructor.
* @param string $message error message
$message
This check looks for PHPDoc comments describing methods or function parameters that do not exist on the corresponding method or function.
Consider the following example. The parameter $italy is not defined by the method finale(...).
$italy
finale(...)
/** * @param array $germany * @param array $island * @param array $italy */ function finale($germany, $island) { return "2:1"; }
The most likely cause is that the parameter was removed, but the annotation was not.
* @param int $code error code
* @param \Exception $previous The previous exception used for the exception chaining.
public function __construct($code = 0, \Exception $previous = null)
parent::__construct(Yii::t('organization', 'You do not have permission to manage member.'), $code, $previous);
}
public function getName()
return 'UnauthorizedManageMemberException';
This check looks for PHPDoc comments describing methods or function parameters that do not exist on the corresponding method or function.
Consider the following example. The parameter
$italy
is not defined by the methodfinale(...)
.The most likely cause is that the parameter was removed, but the annotation was not.