for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Cowglow\InstagramGallery\Infrastructure;
/**
* Class AbstractPort
* @package Cowglow\InstagramGallery\Infrastructure
*/
class AbstractPort
{
* @var string
protected $dataBind = '';
protected $dataType = '';
* AbstractPort constructor.
*
* @param string $dataBind
* @param string $dataType
public function __construct(string $dataBind, string $dataType)
$dataType
If this is a false-positive, you can also ignore this issue in your code via the ignore-unused annotation
ignore-unused
public function __construct(string $dataBind, /** @scrutinizer ignore-unused */ string $dataType)
This check looks for parameters that have been defined for a function or method, but which are not used in the method body.
$this->dataBind = $dataBind;
$this->dataType = $dataBind;
}
* Load Grams
* @return array
* @throws \Exception
protected function loadGrams(): array
return ['working on it!' => 'loading grams..'];
// $dispatcher = new DispatchController($this->dataType);
// return $dispatcher->Initialize();
//
// /**
// * Get a configuration value
// *
// * @param null $key Optional: config value key
// * @return mixed Configuration value(s)
// */
// public static function getConfig($key = null)
// {
// if ($key === null) {
// return self::$config;
// }
// $config =& self::$config;
// return $config->xpath('//'.$key);
This check looks for parameters that have been defined for a function or method, but which are not used in the method body.