for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
declare(strict_types=1);
/**
* balloon
*
* @copyright Copryright (c) 2012-2018 gyselroth GmbH (https://gyselroth.com)
* @license GPL-3.0 https://opensource.org/licenses/GPL-3.0
*/
namespace Balloon\App\Cli\Console;
use Balloon\Hook;
use GetOpt\GetOpt;
use Psr\Log\LoggerInterface;
use TaskScheduler\Async;
class Jobs
{
* Logger.
* @var LoggerInterface
protected $logger;
* Getopt.
* @var GetOpt
protected $getopt;
* Async.
* @var Async
protected $async;
* Hook.
* @var Hook
protected $hook;
* Constructor.
* @param App $app
$app
This check looks for PHPDoc comments describing methods or function parameters that do not exist on the corresponding method or function.
Consider the following example. The parameter $italy is not defined by the method finale(...).
$italy
finale(...)
/** * @param array $germany * @param array $island * @param array $italy */ function finale($germany, $island) { return "2:1"; }
The most likely cause is that the parameter was removed, but the annotation was not.
* @param Async $async
* @param LoggerInterface $logger
* @param GetOpt $getopt
public function __construct(Hook $hook, Async $async, LoggerInterface $logger, GetOpt $getopt)
$this->async = $async;
$this->hook = $hook;
$this->logger = $logger;
$this->getopt = $getopt;
}
* Get description.
* @return string
public function getDescription(): string
return 'Handles asynchronous job queue';
* Start.
* @return bool
public function listen(): bool
$this->logger->info('daemon execution requested, fire up daemon', [
'category' => get_class($this),
]);
$this->hook->run('preExecuteAsyncJobs');
$this->async->startDaemon();
/*
public function once(): bool
$this->async->startOnce();
$this->hook->run('postExecuteAsyncJobs');
return true;
This check looks for PHPDoc comments describing methods or function parameters that do not exist on the corresponding method or function.
Consider the following example. The parameter
$italy
is not defined by the methodfinale(...)
.The most likely cause is that the parameter was removed, but the annotation was not.