for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace CWP\Core\Extension;
use SilverStripe\Core\Extension;
use SilverStripe\Forms\Form;
use SilverStripe\View\Requirements;
/**
* @todo rename file to match class name
* @todo investigate updated HTMLEditorField_Toolbar changes, and find new implementation
*/
class CustomHtmlEditorFieldToolbar extends Extension
{
* @param Form $form
* @return void
public function updateMediaForm(Form $form)
$form
If this is a false-positive, you can also ignore this issue in your code via the ignore-unused annotation
ignore-unused
public function updateMediaForm(/** @scrutinizer ignore-unused */ Form $form)
This check looks for parameters that have been defined for a function or method, but which are not used in the method body.
Requirements::add_i18n_javascript('cwp/cwp-core:javascript/lang');
SilverStripe\View\Requir...::add_i18n_javascript()
If this is a false-positive, you can also ignore this issue in your code via the ignore-deprecated annotation
ignore-deprecated
/** @scrutinizer ignore-deprecated */ Requirements::add_i18n_javascript('cwp/cwp-core:javascript/lang');
Requirements::javascript('cwp/cwp-core:javascript/CustomHtmlEditorFieldToolbar.js');
}
This check looks for parameters that have been defined for a function or method, but which are not used in the method body.