for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Iferas93\HistoriableModel\Http\Controllers;
use Iferas93\HistoriableModel\Models\History;
use Illuminate\Http\Request;
class HistoryController extends Controller
{
/**
* Show History of changes column
*
* @return \Illuminate\Contracts\Foundation\Application|\Illuminate\Contracts\View\Factory|\Illuminate\View\View
*/
public function index()
$changelog = History::query()->orderByDesc('id')->paginate();
return view('historiable::index', compact(['changelog']));
}
* Show specific item by ID
* @param History $history
$history
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.
public function show($id)
//return $id;
$changelogById = History::query()->where('id', $id)->first();
return view('historiable::show', compact(['changelogById']));
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.