Skip to content

Commit

Permalink
Apply php-cs-fixer changes
Browse files Browse the repository at this point in the history
  • Loading branch information
christophboecker authored and github-actions[bot] committed Sep 2, 2024
1 parent 6cdad5c commit 364860e
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion pages/neues.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
* für docs gilt: es sind Vorarbeiten notwendig, damit das Menü korrekt angezeigt
* wird. Daher abweichender Ablauf.
*/
if('neues/docs' === rex_be_controller::getCurrentPage()) {
if ('neues/docs' === rex_be_controller::getCurrentPage()) {
$this->includeFile(__DIR__ . '/neues.docs.php');
return;
}
Expand Down
16 changes: 8 additions & 8 deletions pages/yform.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,17 +23,17 @@
* als Model-Class/Dataset-Class:
* tabelle: wird über rex::getTable($table_name) zu rex_tabelle
* Namespace\Tabelle: wird über $table_name::table()->getTableName() zu rex_tabelle
*
*
* @see https://friendsofredaxo.github.io/tricks/addons/yform/im-addon
* @var \rex_addon $this
* @var rex_addon $this
*/

$yform = $this->getProperty('yform', []);
$yform = $yform[\rex_be_controller::getCurrentPage()] ?? [];
$yform = $yform[rex_be_controller::getCurrentPage()] ?? [];

if( isset($yform['table_name']) ) {
if (isset($yform['table_name'])) {
$table_name = $yform['table_name'];
if( is_subclass_of($table_name,rex_yform_manager_dataset::class)) {
if (is_subclass_of($table_name, rex_yform_manager_dataset::class)) {
// table_name ist eine Dataset-Klasse
$table_name = $table_name::table()->getTableName();
} else {
Expand All @@ -58,22 +58,22 @@
}

if (!$show_title) {
\rex_extension::register(
rex_extension::register(
'YFORM_MANAGER_DATA_PAGE_HEADER',
static function (rex_extension_point $ep) {
if ($ep->getParam('yform')->table->getTableName() === $ep->getParam('table_name')) {
return '';
}
},
\rex_extension::EARLY, ['table_name' => $table_name]
rex_extension::EARLY, ['table_name' => $table_name],
);
}

if ('' !== $wrapper_class) {
echo '<div class="',$wrapper_class,'">';
}

include \rex_path::plugin('yform', 'manager', 'pages/data_edit.php');
include rex_path::plugin('yform', 'manager', 'pages/data_edit.php');

if ('' !== $wrapper_class) {
echo '</div>';
Expand Down

0 comments on commit 364860e

Please sign in to comment.