for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Jabe\Application\Impl;
use Jabe\ProcessEngineInterface;
use Jabe\Application\{
AbstractProcessApplication,
ProcessApplicationReferenceInterface
};
class ProcessApplicationReferenceImpl implements ProcessApplicationReferenceInterface
{
//private static ProcessApplicationLogger LOG = ProcessEngineLogger.PROCESS_APPLICATION_LOGGER;
/** reference to the process application */
protected $processApplication;
protected $name;
public function __construct(AbstractProcessApplication $processApplication)
$this->processApplication = $processApplication;
$this->name = $processApplication->getName();
}
public function getName(): string
return $this->name;
public function getProcessApplication(): ?AbstractProcessApplication
$application = $this->processApplication->get();
if ($application === null) {
//throw LOG.processApplicationUnavailableException(name);
} else {
return $application;
public function processEngineStopping(ProcessEngineInterface $processEngine): void
$processEngine
If this is a false-positive, you can also ignore this issue in your code via the ignore-unused annotation
ignore-unused
public function processEngineStopping(/** @scrutinizer ignore-unused */ ProcessEngineInterface $processEngine): void
This check looks for parameters that have been defined for a function or method, but which are not used in the method body.
// do nothing
public function clear(): void
$this->processApplication->clear();
This check looks for parameters that have been defined for a function or method, but which are not used in the method body.