Showing 3 of 3 total issues
Method hit
has 40 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function hit(Request $request)
{
$this->validate($request, [
'player.name' => 'required',
'player.attack' => 'required',
Method __construct
has 8 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
public function __construct($name, $type, $avatar, $health, $agility, $attack, $defense, $attacks)
Method __construct
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
public function __construct($name, $power, $type, $accuracy, Pokemon $pokemon)