for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace SilverStripe\CMS\Tests\Model;
use SilverStripe\CMS\Model\SiteTreeExtension;
use SilverStripe\Control\Controller;
use SilverStripe\Dev\TestOnly;
class SiteTreeTest_ExtensionB extends SiteTreeExtension implements TestOnly
{
public static $can_publish = true;
public function canPublish($member)
return static::$can_publish;
}
public function updateLink(&$link, $action = null)
$action
If this is a false-positive, you can also ignore this issue in your code via the ignore-unused annotation
ignore-unused
public function updateLink(&$link, /** @scrutinizer ignore-unused */ $action = null)
This check looks for parameters that have been defined for a function or method, but which are not used in the method body.
$link = Controller::join_links('http://www.updatedhost.com', $link);
This check looks for parameters that have been defined for a function or method, but which are not used in the method body.