for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Sagitarius29\LaravelSubscriptions\Contracts;
use Illuminate\Database\Eloquent\Model;
interface PlanContract
{
/**
* @param string $name
* @param string $description
* @param int $free_days
$free_days
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 $sort_order
* @param bool $is_active
* @param bool $is_default
* @param GroupContract|null $group
* @return Model|PlanContract
*/
public static function create(
string $name,
string $description,
int $sort_order,
bool $is_active = false,
bool $is_default = false,
GroupContract $group = null
): self;
public function intervals();
public function isDefault(): bool;
public function isEnabled(): bool;
public function isFree(): bool;
public function isNotFree(): bool;
public function hasManyIntervals(): bool;
public function subscriptions();
public function setDefault();
public function myGroup(): ?GroupContract;
public function changeToGroup(GroupContract $group): void;
}
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.