From c6974e62caa306366bddb47c2b01654cbc28e1fb Mon Sep 17 00:00:00 2001 From: christophboecker Date: Sat, 14 Sep 2024 09:53:22 +0200 Subject: [PATCH 1/2] Cronjob umbenennen #116 --- install.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/install.php b/install.php index f284dfa..c814004 100644 --- a/install.php +++ b/install.php @@ -66,7 +66,7 @@ * -> rex_cronjob_neues_publish ändern in FriendsOfRedaxo\Neues\Cronjob\Publish. */ $sql->setTable(rex::getTable('cronjob')); - $sql->setValue('type', Publish::class); + $sql->setValue('type', 'FriendsOfRedaxo\\Neues\\Cronjob\\Publish'); $sql->setWhere('`type` = :class', [':class' => 'rex_cronjob_neues_publish']); $sql->update(); @@ -74,7 +74,7 @@ * Fehlenden CronJob eintragen. */ $sql->setTable(rex::getTable('cronjob')); - $sql->setWhere('`type` = :class', [':class' => Publish::class]); + $sql->setWhere('`type` = :class', [':class' => 'FriendsOfRedaxo\\Neues\\Cronjob\\Publish']); $sql->select(); if (0 === $sql->getRows()) { From 6d1705cc98863060654cdc7677a5a8e99263ec05 Mon Sep 17 00:00:00 2001 From: christophboecker Date: Sat, 14 Sep 2024 07:54:15 +0000 Subject: [PATCH 2/2] Apply php-cs-fixer changes --- fragments/neues/Article.json-ld.php | 16 +++++++--------- fragments/neues/NewsArticle.json-ld.php | 16 +++++++--------- 2 files changed, 14 insertions(+), 18 deletions(-) diff --git a/fragments/neues/Article.json-ld.php b/fragments/neues/Article.json-ld.php index 0f8762c..edd344b 100644 --- a/fragments/neues/Article.json-ld.php +++ b/fragments/neues/Article.json-ld.php @@ -2,8 +2,6 @@ namespace FriendsOfRedaxo\Neues; -use IntlDateFormatter; - /** @var \rex_fragment $this */ $entry = $this->getVar('entry'); /** @var Entry $entry */ @@ -12,15 +10,15 @@ { "@context": "https://schema.org", "@type": "Article", - "url": "getUrl()); ?>", + "url": "getUrl()) ?>", "publisher":{ "@type":"Organization", - "name":"", + "name":"", }, - "headline": "getName()); ?>", - "mainEntityOfPage": "getUrl()); ?>", - "articleBody": "getDescriptionAsPlaintext()); ?>", - "image": getImages())); ?>, - "datePublished": "getPublishDate()))->format(\DateTime::ATOM)); ?>" + "headline": "getName()) ?>", + "mainEntityOfPage": "getUrl()) ?>", + "articleBody": "getDescriptionAsPlaintext()) ?>", + "image": getImages())) ?>, + "datePublished": "getPublishDate()))->format(\DateTime::ATOM)) ?>" } diff --git a/fragments/neues/NewsArticle.json-ld.php b/fragments/neues/NewsArticle.json-ld.php index d15e58c..80c972e 100644 --- a/fragments/neues/NewsArticle.json-ld.php +++ b/fragments/neues/NewsArticle.json-ld.php @@ -2,8 +2,6 @@ namespace FriendsOfRedaxo\Neues; -use IntlDateFormatter; - /** @var \rex_fragment $this */ $entry = $this->getVar('entry'); /** @var Entry $entry */ @@ -12,15 +10,15 @@ { "@context": "https://schema.org", "@type": "NewsArticle", - "url": "getUrl()); ?>", + "url": "getUrl()) ?>", "publisher":{ "@type":"Organization", - "name":"", + "name":"", }, - "headline": "getName()); ?>", - "mainEntityOfPage": "getUrl()); ?>", - "articleBody": "getDescriptionAsPlaintext()); ?>", - "image": getImages())); ?>, - "datePublished": "getPublishDate()))->format(\DateTime::ATOM)); ?>" + "headline": "getName()) ?>", + "mainEntityOfPage": "getUrl()) ?>", + "articleBody": "getDescriptionAsPlaintext()) ?>", + "image": getImages())) ?>, + "datePublished": "getPublishDate()))->format(\DateTime::ATOM)) ?>" }