Added returned type-int "int"
This commit is contained in:
parent
5d8ebffb4e
commit
4cb5cadba8
|
@ -82,7 +82,7 @@ HELP;
|
|||
AddonCore::loadAddons();
|
||||
}
|
||||
|
||||
protected function doExecute()
|
||||
protected function doExecute(): int
|
||||
{
|
||||
if ($this->getOption('v')) {
|
||||
$this->out('Class: ' . __CLASS__);
|
||||
|
|
|
@ -80,7 +80,7 @@ HELP;
|
|||
$this->l10n = $l10n;
|
||||
}
|
||||
|
||||
protected function doExecute()
|
||||
protected function doExecute(): int
|
||||
{
|
||||
if ($this->getOption('v')) {
|
||||
$this->out('Class: ' . __CLASS__);
|
||||
|
|
|
@ -110,7 +110,7 @@ HELP;
|
|||
$this->dba = $dba;
|
||||
}
|
||||
|
||||
protected function doExecute()
|
||||
protected function doExecute(): int
|
||||
{
|
||||
// Initialise the app
|
||||
$this->out("Initializing setup...");
|
||||
|
|
|
@ -90,7 +90,7 @@ HELP;
|
|||
$this->cache = $cache;
|
||||
}
|
||||
|
||||
protected function doExecute()
|
||||
protected function doExecute(): int
|
||||
{
|
||||
if ($this->getOption('v')) {
|
||||
$this->out('Executable: ' . $this->executable);
|
||||
|
|
|
@ -102,7 +102,7 @@ HELP;
|
|||
$this->config = $config;
|
||||
}
|
||||
|
||||
protected function doExecute()
|
||||
protected function doExecute(): int
|
||||
{
|
||||
if ($this->getOption('v')) {
|
||||
$this->out('Executable: ' . $this->executable);
|
||||
|
|
|
@ -76,7 +76,7 @@ HELP;
|
|||
$this->appMode = $appMode;
|
||||
}
|
||||
|
||||
protected function doExecute()
|
||||
protected function doExecute(): int
|
||||
{
|
||||
if ($this->getOption('v')) {
|
||||
$this->out('Class: ' . __CLASS__);
|
||||
|
|
|
@ -45,7 +45,7 @@ HELP;
|
|||
return $help;
|
||||
}
|
||||
|
||||
protected function doExecute()
|
||||
protected function doExecute(): int
|
||||
{
|
||||
if ($this->getOption('v')) {
|
||||
$this->out('Class: ' . __CLASS__);
|
||||
|
|
|
@ -94,7 +94,7 @@ HELP;
|
|||
$this->basePath = $basePath->getPath();
|
||||
}
|
||||
|
||||
protected function doExecute()
|
||||
protected function doExecute(): int
|
||||
{
|
||||
if ($this->getOption('v')) {
|
||||
$this->out('Class: ' . __CLASS__);
|
||||
|
|
|
@ -71,7 +71,7 @@ HELP;
|
|||
return $help;
|
||||
}
|
||||
|
||||
protected function doExecute()
|
||||
protected function doExecute(): int
|
||||
{
|
||||
if ($this->getOption('v')) {
|
||||
$this->out('Class: ' . __CLASS__);
|
||||
|
|
|
@ -49,7 +49,7 @@ HELP;
|
|||
return $help;
|
||||
}
|
||||
|
||||
protected function doExecute()
|
||||
protected function doExecute(): int
|
||||
{
|
||||
if ($this->getOption('v')) {
|
||||
$this->out('Class: ' . __CLASS__);
|
||||
|
|
|
@ -85,7 +85,7 @@ HELP;
|
|||
$this->l10n = $l10n;
|
||||
}
|
||||
|
||||
protected function doExecute()
|
||||
protected function doExecute(): int
|
||||
{
|
||||
if ($this->getOption('v')) {
|
||||
$this->out('Class: ' . __CLASS__);
|
||||
|
|
|
@ -70,7 +70,7 @@ HELP;
|
|||
$this->l10n = $l10n;
|
||||
}
|
||||
|
||||
protected function doExecute()
|
||||
protected function doExecute(): int
|
||||
{
|
||||
if ($this->getOption('v')) {
|
||||
$this->out('Class: ' . __CLASS__);
|
||||
|
|
|
@ -75,7 +75,7 @@ HELP;
|
|||
$this->dba =$dba;
|
||||
}
|
||||
|
||||
protected function doExecute()
|
||||
protected function doExecute(): int
|
||||
{
|
||||
if ($this->getOption('v')) {
|
||||
$this->out('Class: ' . __CLASS__);
|
||||
|
|
|
@ -84,7 +84,7 @@ HELP;
|
|||
$this->lock = $lock;
|
||||
}
|
||||
|
||||
protected function doExecute()
|
||||
protected function doExecute(): int
|
||||
{
|
||||
if ($this->getOption('v')) {
|
||||
$this->out('Executable: ' . $this->executable);
|
||||
|
|
|
@ -77,7 +77,7 @@ HELP;
|
|||
$this->config = $config;
|
||||
}
|
||||
|
||||
protected function doExecute()
|
||||
protected function doExecute(): int
|
||||
{
|
||||
if ($this->getOption('v')) {
|
||||
$this->out('Class: ' . __CLASS__);
|
||||
|
|
|
@ -67,7 +67,7 @@ HELP;
|
|||
$this->l10n = $l10n;
|
||||
}
|
||||
|
||||
protected function doExecute()
|
||||
protected function doExecute(): int
|
||||
{
|
||||
$duplicates = $this->dba->p("SELECT COUNT(*) AS `total`, `uri-id`, MAX(`url`) AS `url` FROM `contact` WHERE `uid` = 0 GROUP BY `uri-id` HAVING total > 1");
|
||||
while ($duplicate = $this->dba->fetch($duplicates)) {
|
||||
|
|
|
@ -85,7 +85,7 @@ HELP;
|
|||
$this->config = $config;
|
||||
}
|
||||
|
||||
protected function doExecute()
|
||||
protected function doExecute(): int
|
||||
{
|
||||
if (!$this->config->get('system', 'avatar_cache')) {
|
||||
$this->err($this->l10n->t('The avatar cache needs to be enabled to use this command.'));
|
||||
|
|
|
@ -63,7 +63,7 @@ HELP;
|
|||
return $help;
|
||||
}
|
||||
|
||||
protected function doExecute()
|
||||
protected function doExecute(): int
|
||||
{
|
||||
if ($this->getOption('v')) {
|
||||
$this->out('Class: ' . __CLASS__);
|
||||
|
|
|
@ -50,7 +50,7 @@ HELP;
|
|||
return $help;
|
||||
}
|
||||
|
||||
protected function doExecute()
|
||||
protected function doExecute(): int
|
||||
{
|
||||
if ($this->getOption('v')) {
|
||||
$this->out('Class: ' . __CLASS__);
|
||||
|
|
|
@ -69,7 +69,7 @@ HELP;
|
|||
$this->l10n = $l10n;
|
||||
}
|
||||
|
||||
protected function doExecute()
|
||||
protected function doExecute(): int
|
||||
{
|
||||
$a = \Friendica\DI::app();
|
||||
|
||||
|
|
|
@ -76,7 +76,7 @@ HELP;
|
|||
$this->dba = $dba;
|
||||
}
|
||||
|
||||
protected function doExecute()
|
||||
protected function doExecute(): int
|
||||
{
|
||||
if ($this->getOption('v')) {
|
||||
$this->out('Executable: ' . $this->executable);
|
||||
|
|
|
@ -74,7 +74,7 @@ HELP;
|
|||
$this->config = $config;
|
||||
}
|
||||
|
||||
protected function doExecute()
|
||||
protected function doExecute(): int
|
||||
{
|
||||
if (count($this->args) == 0) {
|
||||
$this->out($this->getHelp());
|
||||
|
|
|
@ -79,7 +79,7 @@ HELP;
|
|||
$this->config = $config;
|
||||
}
|
||||
|
||||
protected function doExecute()
|
||||
protected function doExecute(): int
|
||||
{
|
||||
if (count($this->args) == 0) {
|
||||
$this->printBlockedServers($this->config);
|
||||
|
|
|
@ -69,7 +69,7 @@ HELP;
|
|||
return $help;
|
||||
}
|
||||
|
||||
protected function doExecute()
|
||||
protected function doExecute(): int
|
||||
{
|
||||
if ($this->getOption('v')) {
|
||||
$this->out('Executable: ' . $this->executable);
|
||||
|
|
|
@ -42,7 +42,7 @@ HELP;
|
|||
return $help;
|
||||
}
|
||||
|
||||
protected function doExecute()
|
||||
protected function doExecute(): int
|
||||
{
|
||||
if ($this->getOption('v')) {
|
||||
$this->out('Class: ' . __CLASS__);
|
||||
|
|
|
@ -60,7 +60,7 @@ HELP;
|
|||
$this->config = $config;
|
||||
}
|
||||
|
||||
protected function doExecute()
|
||||
protected function doExecute(): int
|
||||
{
|
||||
if ($this->getOption('v')) {
|
||||
$this->out('Class: ' . __CLASS__);
|
||||
|
|
|
@ -97,7 +97,7 @@ HELP;
|
|||
$this->pConfig = $pConfig;
|
||||
}
|
||||
|
||||
protected function doExecute()
|
||||
protected function doExecute(): int
|
||||
{
|
||||
if ($this->getOption('v')) {
|
||||
$this->out('Class: ' . __CLASS__);
|
||||
|
|
|
@ -121,7 +121,7 @@ HELP;
|
|||
$this->dice = $dice;
|
||||
}
|
||||
|
||||
protected function doExecute()
|
||||
protected function doExecute(): int
|
||||
{
|
||||
if ($this->getOption('v')) {
|
||||
$this->out('Executable: ' . $this->executable);
|
||||
|
|
Loading…
Reference in a new issue