From cb5b1786663c90cc77bfa3a1cff3da93734617f8 Mon Sep 17 00:00:00 2001 From: Matthias Schmidt Date: Thu, 25 Dec 2014 11:15:41 +0100 Subject: [PATCH] Fix code formatting --- .../data/paid/subscription/PaidSubscriptionAction.class.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/wcfsetup/install/files/lib/data/paid/subscription/PaidSubscriptionAction.class.php b/wcfsetup/install/files/lib/data/paid/subscription/PaidSubscriptionAction.class.php index 6c6be261bf..4edbf27660 100644 --- a/wcfsetup/install/files/lib/data/paid/subscription/PaidSubscriptionAction.class.php +++ b/wcfsetup/install/files/lib/data/paid/subscription/PaidSubscriptionAction.class.php @@ -38,11 +38,11 @@ class PaidSubscriptionAction extends AbstractDatabaseObjectAction implements ITo $showOrder = $this->parameters['data']['showOrder']; unset($this->parameters['data']['showOrder']); } - + $subscription = parent::create(); $editor = new PaidSubscriptionEditor($subscription); $editor->setShowOrder($showOrder); - + return new PaidSubscription($subscription->subscriptionID); } @@ -51,7 +51,7 @@ class PaidSubscriptionAction extends AbstractDatabaseObjectAction implements ITo */ public function update() { parent::update(); - + if (count($this->objects) == 1 && isset($this->parameters['data']['showOrder']) && $this->parameters['data']['showOrder'] != reset($this->objects)->showOrder) { reset($this->objects)->setShowOrder($this->parameters['data']['showOrder']); } -- 2.20.1