for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Ubiquity\controllers\crud\traits;
/**
* Contains all methods returning the urls for CRUDControllers
*
* @author jc
*/
trait UrlsTrait {
* To override
* Returns the route for refreshing the index route (default : /refresh_)
* @return string
public function getRouteRefresh() {
return "/refresh_";
}
* Returns the route for the detail route, when the user click on a dataTable row (default : /showDetail)
public function getRouteDetails() {
return "/showDetail";
* Returns the route for deleting an instance (default : /delete)
public function getRouteDelete() {
return "/delete";
* Returns the route for editing an instance (default : /edit)
public function getRouteEdit() {
return "/edit";
* Returns the route for displaying an instance (default : /display)
public function getRouteDisplay() {
return "/display";
* Returns the route for refreshing the dataTable (default : /refreshTable)
public function getRouteRefreshTable() {
return "/refreshTable";
* Returns the url associated with a foreign key instance in list
* @param string $model
public function getDetailClickURL($model) {
$model
If this is a false-positive, you can also ignore this issue in your code via the ignore-unused annotation
ignore-unused
public function getDetailClickURL(/** @scrutinizer ignore-unused */ $model) {
This check looks for parameters that have been defined for a function or method, but which are not used in the method body.
return "";
This check looks for parameters that have been defined for a function or method, but which are not used in the method body.