Test Failed
Push — master ( e59e29...f69517 )
by Jean-Christophe
14:19
created

UrlsTrait::getDetailClickURL()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 2
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 1
c 1
b 0
f 0
dl 0
loc 2
rs 10
cc 1
nc 1
nop 1
1
<?php
2
3
namespace Ubiquity\controllers\crud\traits;
4
5
/**
6
 * Contains all methods returning the urls for CRUDControllers
7
 *
8
 * @author jc
9
 *
10
 */
11
trait UrlsTrait {
12
13
	/**
14
	 * To override
15
	 * Returns the route for refreshing the index route (default : /refresh_)
16
	 *
17
	 * @return string
18
	 */
19
	public function getRouteRefresh() {
20
		return "/refresh_";
21
	}
22
23
	/**
24
	 * To override
25
	 * Returns the route for the detail route, when the user click on a dataTable row (default : /showDetail)
26
	 *
27
	 * @return string
28
	 */
29
	public function getRouteDetails() {
30
		return "/showDetail";
31
	}
32
33
	/**
34
	 * To override
35
	 * Returns the route for deleting an instance (default : /delete)
36
	 *
37
	 * @return string
38
	 */
39
	public function getRouteDelete() {
40
		return "/delete";
41
	}
42
43
	/**
44
	 * To override
45
	 * Returns the route for editing an instance (default : /edit)
46
	 *
47
	 * @return string
48
	 */
49
	public function getRouteEdit() {
50
		return "/edit";
51
	}
52
53
	/**
54
	 * To override
55
	 * Returns the route for displaying an instance (default : /display)
56
	 *
57
	 * @return string
58
	 */
59
	public function getRouteDisplay() {
60
		return "/display";
61
	}
62
63
	/**
64
	 * To override
65
	 * Returns the route for refreshing the dataTable (default : /refreshTable)
66
	 *
67
	 * @return string
68
	 */
69
	public function getRouteRefreshTable() {
70
		return "/refreshTable";
71
	}
72
73
	/**
74
	 * To override
75
	 * Returns the url associated with a foreign key instance in list
76
	 *
77
	 * @param string $model
78
	 * @return string
79
	 */
80
	public function getDetailClickURL($model) {
1 ignored issue
show
Unused Code introduced by
The parameter $model is not used and could be removed. ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-unused  annotation

80
	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.

Loading history...
81
		return "";
82
	}
83
}
84
85