Skip to content

Commit

Permalink
Apply php-cs-fixer changes
Browse files Browse the repository at this point in the history
  • Loading branch information
schorschy authored and github-actions[bot] committed Jun 21, 2024
1 parent ddb286d commit 5440c8a
Show file tree
Hide file tree
Showing 5 changed files with 20 additions and 31 deletions.
3 changes: 1 addition & 2 deletions boot.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,21 +4,20 @@

use rex;
use rex_addon;
use rex_api_function;
use rex_be_controller;
use rex_config;
use rex_cronjob_manager;
use rex_csrf_token;
use rex_extension;
use rex_extension_point;
use rex_plugin;
use rex_api_function;
use rex_url;
use rex_yform_manager_dataset;
use rex_yform_manager_table;
use rex_yform_rest;
use rex_yform_rest_route;


if (rex_addon::get('cronjob')->isAvailable() && !rex::isSafeMode()) {
rex_cronjob_manager::registerType(rex_cronjob_neues_publish::class);
}
Expand Down
2 changes: 1 addition & 1 deletion fragments/neues/list.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
<?php } else { ?>
<div class="placeholder">
<?php if(rex_config::get('neues', 'no_entries_placeholder')) { ?>
<p><?php echo rex_i18n::msg('no_entries_placeholder'); ?></p>
<p><?= rex_i18n::msg('no_entries_placeholder') ?></p>
<?php } ?>
</div>
<?php } ?>
Expand Down
40 changes: 15 additions & 25 deletions lib/compatibility_classes.php
Original file line number Diff line number Diff line change
@@ -1,41 +1,31 @@
<?php

use FriendsOfRedaxo\neues\Author;
use FriendsOfRedaxo\neues\Category;
use FriendsOfRedaxo\neues\Entry;
use FriendsOfRedaxo\neues\EntryLang;

/**
* @deprecated Use FriendsOfRedaxo\neues\Author instead.
* @deprecated use FriendsOfRedaxo\neues\Author instead
*/
class neues_author extends FriendsOfRedaxo\neues\Author
{

}
class neues_author extends Author {}

/**
* @deprecated Use FriendsOfRedaxo\neues\Category instead.
* @deprecated use FriendsOfRedaxo\neues\Category instead
*/
class neues_category extends FriendsOfRedaxo\neues\Category
{

}
class neues_category extends Category {}

/**
* @deprecated Use FriendsOfRedaxo\neues\Entry instead.
* @deprecated use FriendsOfRedaxo\neues\Entry instead
*/
class neues_entry extends FriendsOfRedaxo\neues\Entry
{

}
class neues_entry extends Entry {}

/**
* @deprecated Use FriendsOfRedaxo\neues\EntryLang instead.
* @deprecated use FriendsOfRedaxo\neues\EntryLang instead
*/
class neues_entry_lang extends FriendsOfRedaxo\neues\EntryLang
{

}
class neues_entry_lang extends EntryLang {}

/**
* @deprecated Use FriendsOfRedaxo\neues\Neues instead.
* @deprecated use FriendsOfRedaxo\neues\Neues instead
*/
class neues extends FriendsOfRedaxo\neues\Neues
{

}
class neues extends FriendsOfRedaxo\neues\Neues {}
4 changes: 1 addition & 3 deletions lib/neues_rss_api.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,7 @@

use rex;
use rex_clang;
use rex_escape;
use rex_path;
use rex_request;
use rex_response;
use rex_string;
use rex_yform_manager_collection;
Expand Down Expand Up @@ -50,7 +48,7 @@ public static function joinUrls($url1, $url2)
return rtrim($url1, '/') . '/' . ltrim($url2, '/');
}

public static function createRssFeed(\rex_yform_manager_collection $collection, $domain, $lang, $description, $filename = 'rss.neues.xml')
public static function createRssFeed(rex_yform_manager_collection $collection, $domain, $lang, $description, $filename = 'rss.neues.xml')
{
$xml = new SimpleXMLElement('<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom"></rss>');

Expand Down
2 changes: 2 additions & 0 deletions lib/rex_cronjob_neues_publish.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@
use rex_cronjob;
use rex_i18n;

use function count;

class rex_cronjob_neues_publish extends rex_cronjob
{
public function execute()
Expand Down

0 comments on commit 5440c8a

Please sign in to comment.