Skip to content

Commit

Permalink
Fixed coding standards
Browse files Browse the repository at this point in the history
  • Loading branch information
jamielsharief committed Jul 19, 2020
1 parent 6493ee4 commit 068d930
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
1 change: 0 additions & 1 deletion src/Console/Application.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
namespace Commands\Console;

use Origin\Console\BaseApplication;
use Origin\Core\Config;

/**
* @codeCoverageIgnore
Expand Down
4 changes: 2 additions & 2 deletions src/Console/Command/DeprecationNoticeTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,9 @@

trait DeprecationNoticeTrait
{
protected function checkForDeprecations() : void
protected function checkForDeprecations(): void
{
if (!Config::exists('App.schemaFormat')) {
if (! Config::exists('App.schemaFormat')) {
deprecationWarning('The Schema.format setting is deprecated use App.schemaFormat instead.');
}
}
Expand Down
6 changes: 3 additions & 3 deletions src/Console/Command/MailboxDownloadCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@
namespace Commands\Console\Command;

use Exception;
use Origin\Core\Config;
use Origin\Mailbox\Mailbox;
use Origin\Console\Command\Command;
use Origin\Core\Config;
use Origin\Mailbox\Model\ImapMessage;
use Origin\Mailbox\Model\InboundEmail;

Expand All @@ -37,7 +37,7 @@ protected function initialize(): void
$this->loadModel('InboundEmail', ['className' => InboundEmail::class]);
$this->loadModel('Imap', ['className' => ImapMessage::class]);

if (!Config::exists('App.mailboxKeepEmails')) {
if (! Config::exists('App.mailboxKeepEmails')) {
deprecationWarning('The mailboxKeepEmails setting is deprecated use App.mailboxKeepEmails instead.');
}
}
Expand Down Expand Up @@ -79,7 +79,7 @@ protected function execute(): void
*
* @return boolean
*/
protected function maintenanceMode() : bool
protected function maintenanceMode(): bool
{
return file_exists(tmp_path('maintenance.json'));
}
Expand Down
3 changes: 2 additions & 1 deletion src/Console/Command/QueueWorkerCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -162,6 +162,7 @@ protected function processQueue(string $queue): bool

return true;
}

return false;
}

Expand All @@ -170,7 +171,7 @@ protected function processQueue(string $queue): bool
*
* @return boolean
*/
protected function maintenanceMode() : bool
protected function maintenanceMode(): bool
{
return file_exists(tmp_path('maintenance.json'));
}
Expand Down

0 comments on commit 068d930

Please sign in to comment.