diff --git a/composer.lock b/composer.lock index 043990e..575dba0 100644 --- a/composer.lock +++ b/composer.lock @@ -138,16 +138,16 @@ }, { "name": "nextcloud/coding-standard", - "version": "v1.2.1", + "version": "v1.2.3", "source": { "type": "git", "url": "https://github.com/nextcloud/coding-standard.git", - "reference": "cf5f18d989ec62fb4cdc7fc92a36baf34b3d829e" + "reference": "bc9c53a5306114b60c4363057aff9c2ed10a54da" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/nextcloud/coding-standard/zipball/cf5f18d989ec62fb4cdc7fc92a36baf34b3d829e", - "reference": "cf5f18d989ec62fb4cdc7fc92a36baf34b3d829e", + "url": "https://api.github.com/repos/nextcloud/coding-standard/zipball/bc9c53a5306114b60c4363057aff9c2ed10a54da", + "reference": "bc9c53a5306114b60c4363057aff9c2ed10a54da", "shasum": "" }, "require": { @@ -173,9 +173,9 @@ "description": "Nextcloud coding standards for the php cs fixer", "support": { "issues": "https://github.com/nextcloud/coding-standard/issues", - "source": "https://github.com/nextcloud/coding-standard/tree/v1.2.1" + "source": "https://github.com/nextcloud/coding-standard/tree/v1.2.3" }, - "time": "2024-02-01T14:54:37+00:00" + "time": "2024-08-23T14:32:32+00:00" }, { "name": "nextcloud/ocp", @@ -400,16 +400,16 @@ }, { "name": "php-cs-fixer/shim", - "version": "v3.49.0", + "version": "v3.62.0", "source": { "type": "git", "url": "https://github.com/PHP-CS-Fixer/shim.git", - "reference": "f7d3219cac46632f12362c9aa7c2ac0d2fe92c52" + "reference": "7a91d5ce45c486f5b445d95901228507a02f60ae" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/PHP-CS-Fixer/shim/zipball/f7d3219cac46632f12362c9aa7c2ac0d2fe92c52", - "reference": "f7d3219cac46632f12362c9aa7c2ac0d2fe92c52", + "url": "https://api.github.com/repos/PHP-CS-Fixer/shim/zipball/7a91d5ce45c486f5b445d95901228507a02f60ae", + "reference": "7a91d5ce45c486f5b445d95901228507a02f60ae", "shasum": "" }, "require": { @@ -446,9 +446,9 @@ "description": "A tool to automatically fix PHP code style", "support": { "issues": "https://github.com/PHP-CS-Fixer/shim/issues", - "source": "https://github.com/PHP-CS-Fixer/shim/tree/v3.49.0" + "source": "https://github.com/PHP-CS-Fixer/shim/tree/v3.62.0" }, - "time": "2024-02-02T00:42:09+00:00" + "time": "2024-08-07T17:03:46+00:00" }, { "name": "phpunit/php-code-coverage", diff --git a/lib/Cron/Crawler.php b/lib/Cron/Crawler.php index 9fa7dd6..1f30e09 100644 --- a/lib/Cron/Crawler.php +++ b/lib/Cron/Crawler.php @@ -72,7 +72,7 @@ protected function run(mixed $argument): void { return; } - $rssPubDate = (string) $rss->channel->pubDate; + $rssPubDate = (string)$rss->channel->pubDate; $lastPubDate = $this->config->getAppValue($this->appName, 'pub_date', 'now'); if ($lastPubDate === 'now1') { @@ -89,11 +89,11 @@ protected function run(mixed $argument): void { $lastPubDateTime = new \DateTime($lastPubDate); foreach ($rss->channel->item as $item) { - $id = md5((string) $item->guid); + $id = md5((string)$item->guid); if ($this->config->getAppValue($this->appName, $id, '') === 'published') { continue; } - $pubDate = new \DateTime((string) $item->pubDate); + $pubDate = new \DateTime((string)$item->pubDate); if ($pubDate <= $lastPubDateTime) { continue; @@ -103,8 +103,8 @@ protected function run(mixed $argument): void { $notification->setApp($this->appName) ->setDateTime($pubDate) ->setObject($this->appName, $id) - ->setSubject(Notifier::SUBJECT, [(string) $item->title]) - ->setLink((string) $item->link); + ->setSubject(Notifier::SUBJECT, [(string)$item->title]) + ->setLink((string)$item->link); foreach ($this->getUsersToNotify() as $uid) { $notification->setUser($uid);