for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* Plugin class
*/
namespace Phile\Plugin\Phile\ParserMarkdown;
use Phile\Core\ServiceLocator;
use Phile\Plugin\AbstractPlugin;
use Phile\Plugin\Phile\ParserMarkdown\Parser\Markdown;
* Class Plugin
* Default Phile parser plugin for Markdown
*
* @author PhileCMS
* @link https://philecms.github.io
* @license http://opensource.org/licenses/MIT
* @package Phile\Plugin\Phile\ParserMarkdown
class Plugin extends AbstractPlugin
{
* {@inheritDoc}
protected $events = ['plugins_loaded' => 'onPluginsLoaded'];
* onPluginsLoaded method
* @param array $data
* @return void
public function onPluginsLoaded($data = null)
$data
If this is a false-positive, you can also ignore this issue in your code via the ignore-unused annotation
ignore-unused
public function onPluginsLoaded(/** @scrutinizer ignore-unused */ $data = null)
This check looks for parameters that have been defined for a function or method, but which are not used in the method body.
ServiceLocator::registerService('Phile_Parser', new Markdown($this->settings));
}
This check looks for parameters that have been defined for a function or method, but which are not used in the method body.