Cron: Ignore unused parameters in codacy

Signed-off-by: Julius Härtl <jus@bitgrid.net>
This commit is contained in:
Julius Härtl
2017-10-02 12:22:45 +02:00
committed by Julius Härtl
parent e1ac6b0a9e
commit f8c9bc1c7c
3 changed files with 12 additions and 0 deletions

View File

@@ -35,10 +35,17 @@ use OCA\Deck\Db\BoardMapper;
class DeleteCron extends Job {
/** @var BoardMapper */
private $boardMapper;
public function __construct(BoardMapper $boardMapper) {
$this->boardMapper = $boardMapper;
}
/**
* @param $argument
* @SuppressWarnings(PHPMD.UnusedFormalParameter)
*/
protected function run($argument) {
$boards = $this->boardMapper->findToDelete();
foreach ($boards as $board) {

View File

@@ -43,6 +43,10 @@ class ScheduledNotifications extends Job {
$this->notificationHelper = $notificationHelper;
}
/**
* @param $argument
* @SuppressWarnings(PHPMD.UnusedFormalParameter)
*/
public function run($argument) {
// Notify board owner and card creator about overdue cards
$cards = $this->cardMapper->findOverdue();

View File

@@ -23,6 +23,7 @@
namespace OCA\Deck\Db;
use OC\Notification\Notification;
use OCP\AppFramework\Db\Entity;
use OCP\IDBConnection;
use OCP\IUserManager;