This check compares the return type specified in the @return annotation of a function
or method doc comment with the types returned by the function and raises an issue if they
mismatch.
Loading history...
11
*/
12
public function Link($action = null)
13
{
14
if ($url = array_search(get_called_class(), (array)Config::inst()->get('Director', 'rules'))) {
15
// Check for slashes and drop them
16
if ($indexOf = stripos($url, '/')) {
17
$url = substr($url, 0, $indexOf);
18
}
19
return $this->join_links($url, $action);
20
}
21
}
22
23
/**
24
* Retrieves a {@link DMSDocumentCart} instance
25
*
26
* @return DMSDocumentCart
27
*/
28
public function getCart()
29
{
30
return DMSDocumentCart::singleton();
31
}
32
33
/**
34
* Controls the `Continue browsing` link found in DMSCartNavigation.ss. Defaults all requests back to home.
This check compares the return type specified in the @return annotation of a function
or method doc comment with the types returned by the function and raises an issue if they
mismatch.
You can fix this by adding a namespace to your class:
When choosing a vendor namespace, try to pick something that is not too generic to avoid conflicts with other libraries.