for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* @company MTE Telecom, Ltd.
* @author Roman Malashin <[email protected]>
*/
namespace Nnx\DataGrid;
use Zend\ServiceManager\AbstractPluginManager;
* Class GridPluginManager
* @package Nnx\DataGrid
class GridPluginManager extends AbstractPluginManager
{
* @var bool
protected $shareByDefault = false;
* Validate the plugin
*
* Checks that the filter loaded is either a valid callback or an instance
* of FilterInterface.
* @param mixed $plugin
* @return void
* @throws Exception\RuntimeException if invalid
public function validatePlugin($plugin)
if ($plugin instanceof GridInterface) {
return;
}
throw new Exception\RuntimeException(sprintf('Grid должен реализовывать интерфейс %s', GridInterface::class));
This check marks files that end in a newline character, i.e. an empy line.
This check marks files that end in a newline character, i.e. an empy line.