for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* @link http://www.tintsoft.com/
* @copyright Copyright (c) 2012 TintSoft Technology Co. Ltd.
* @license http://www.tintsoft.com/license/
*/
namespace yuncms\notifications;
use yii\base\BaseObject;
use yuncms\notifications\channels\Channel;
use yuncms\notifications\contracts\NotificationInterface;
* Class Notification
*
* @author Tongle Xu <[email protected]>
* @since 3.0
class Notification extends BaseObject implements NotificationInterface
{
* Determines if the notification can be sent.
* @param Channel $channel
* @return bool
public function shouldSend($channel): bool
$channel
If this is a false-positive, you can also ignore this issue in your code via the ignore-unused annotation
ignore-unused
public function shouldSend(/** @scrutinizer ignore-unused */ $channel): bool
This check looks for parameters that have been defined for a function or method, but which are not used in the method body.
return true;
}
This check looks for parameters that have been defined for a function or method, but which are not used in the method body.