for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace OCA\Analytics\Datasource;
use OCP\EventDispatcher\Event;
/**
* Class CommentsEntityEvent
*
* @since 9.1.0
*/
class DatasourceEvent extends Event
{
/** @var string */
protected $event;
/** @var \Closure[] */
protected $collections;
* DispatcherEvent constructor.
* @param string $event
public function __construct($event)
$this->event = $event;
$this->collections = [];
}
* @param OCA\Analytics\Datasource\IDatasource $datasource
public function registerDatasource(OCA\Analytics\Datasource\IDatasource $datasource)
OCA\Analytics\Datasource...\Datasource\IDatasource
OCA\Analytics\Datasource\IDatasource
\
$datasource
If this is a false-positive, you can also ignore this issue in your code via the ignore-unused annotation
ignore-unused
public function registerDatasource(/** @scrutinizer ignore-unused */ OCA\Analytics\Datasource\IDatasource $datasource)
This check looks for parameters that have been defined for a function or method, but which are not used in the method body.
//
* @return \Closure[]
public function getDataSources()
return $this->collections;