From: Matthias Schmidt Date: Thu, 25 Dec 2014 10:15:41 +0000 (+0100) Subject: Fix code formatting X-Git-Tag: 2.1.0_Beta_3~84 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=cb5b1786663c90cc77bfa3a1cff3da93734617f8;p=GitHub%2FWoltLab%2FWCF.git Fix code formatting --- 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']); }