for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/*
* NOTICE OF LICENSE
*
* Part of the Rinvex Fort Package.
* This source file is subject to The MIT License (MIT)
* that is bundled with this package in the LICENSE file.
* Package: Rinvex Fort Package
* License: The MIT License (MIT)
* Link: https://rinvex.com
*/
namespace Rinvex\Fort\Notifications;
use Illuminate\Support\Facades\Lang;
use Illuminate\Notifications\Notification;
use Illuminate\Notifications\Messages\MailMessage;
class VerificationSuccessNotification extends Notification
{
/**
* Indicates if the user is moderated or not.
* @var bool
public $moderated;
* Create a notification instance.
* @param bool $social
$social
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.
* @return void
@return
Adding a @return annotation to a constructor is not recommended, since a constructor does not have a meaningful return value.
Please refer to the PHP core documentation on constructors.
public function __construct($moderated = false)
$this->moderated = $moderated;
}
* Get the notification's channels.
* @param mixed $notifiable
* @return array|string
public function via($notifiable)
$notifiable
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.
return ['mail'];
* Build the mail representation of the notification.
* @return \Illuminate\Notifications\Messages\MailMessage
public function toMail()
if ($this->moderated) {
$phrase = Lang::get('rinvex.fort::email.verification.email.success.intro_moderation');
} else {
$phrase = Lang::get('rinvex.fort::email.verification.email.success.intro_default');
return (new MailMessage)
->subject(Lang::get('rinvex.fort::email.verification.email.success.subject'))
->line($phrase);
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.