Remove unnecessary trailing commas
authorMatthias Schmidt <gravatronics@live.com>
Fri, 10 Jun 2016 15:54:17 +0000 (17:54 +0200)
committerMatthias Schmidt <gravatronics@live.com>
Fri, 10 Jun 2016 15:54:17 +0000 (17:54 +0200)
18 files changed:
wcfsetup/install/files/lib/acp/form/BBCodeAddForm.class.php
wcfsetup/install/files/lib/acp/form/BBCodeEditForm.class.php
wcfsetup/install/files/lib/acp/page/LabelListPage.class.php
wcfsetup/install/files/lib/action/AJAXInvokeAction.class.php
wcfsetup/install/files/lib/data/media/MediaAction.class.php
wcfsetup/install/files/lib/data/paid/subscription/user/PaidSubscriptionUserAction.class.php
wcfsetup/install/files/lib/data/user/UserAction.class.php
wcfsetup/install/files/lib/data/user/ignore/UserIgnoreAction.class.php
wcfsetup/install/files/lib/form/MailForm.class.php
wcfsetup/install/files/lib/form/RegisterForm.class.php
wcfsetup/install/files/lib/system/menu/user/profile/content/AboutUserProfileMenuContent.class.php
wcfsetup/install/files/lib/system/menu/user/profile/content/LikesUserProfileMenuContent.class.php
wcfsetup/install/files/lib/system/message/QuickReplyManager.class.php
wcfsetup/install/files/lib/system/option/user/MessageUserOptionOutput.class.php
wcfsetup/install/files/lib/system/package/plugin/BBCodePackageInstallationPlugin.class.php
wcfsetup/install/files/lib/system/page/PageLocationManager.class.php
wcfsetup/install/files/lib/system/upload/UploadFile.class.php
wcfsetup/install/files/lib/system/worker/SendNewPasswordWorker.class.php

index 531ff8223d898e23ee6ca41567303164596cfe18..82826a1760cdef8af1aede0f1d45af370c455f2c 100644 (file)
@@ -238,7 +238,7 @@ class BBCodeAddForm extends AbstractForm {
                                'attributeHtml' => $attribute->attributeHtml,
                                'validationPattern' => $attribute->validationPattern,
                                'required' => $attribute->required,
-                               'useText' => $attribute->useText,
+                               'useText' => $attribute->useText
                        ]]);
                        $attributeAction->executeAction();
                }
index 358f7b92ad42ac8f54a1550c97fc73fe79160576..4ea27e2699a9598ab9098841b880c755d7fb2574 100644 (file)
@@ -118,7 +118,7 @@ class BBCodeEditForm extends BBCodeAddForm {
                                'attributeHtml' => $attribute->attributeHtml,
                                'validationPattern' => $attribute->validationPattern,
                                'required' => $attribute->required,
-                               'useText' => $attribute->useText,
+                               'useText' => $attribute->useText
                        ]]);
                        $attributeAction->executeAction();
                }
index 9b6633d8185d75076c046ae1c3ba7295621f6bfd..fbc3ad6b3b5bf0d08bafb8582a482c09eaaa55cc 100644 (file)
@@ -127,7 +127,7 @@ class LabelListPage extends SortablePage {
                                $this->objectList->getConditionBuilder()->add('(label LIKE ? OR labelID IN (?))', ['%'.addcslashes($this->label, '_%').'%', $labelIDs]);
                        }
                        else {
-                               $this->objectList->getConditionBuilder()->add('label LIKE ?', ['%'.addcslashes($this->label, '_%').'%',]);
+                               $this->objectList->getConditionBuilder()->add('label LIKE ?', ['%'.addcslashes($this->label, '_%').'%']);
                        }
                }
        }
index 3dd726c4796593dea262b1c986170554f9c9e718..b6a410dd2e876aadf0705882970cc78065bf2aff 100644 (file)
@@ -190,7 +190,7 @@ class AJAXInvokeAction extends AbstractSecureAction {
                        throw new AJAXException($exception->getMessage(), AJAXException::BAD_PARAMETERS, $e->getTraceAsString(), [
                                'errorMessage' => $exception->getMessage(),
                                'errorType' => $e->getType(),
-                               'fieldName' => $exception->getFieldName(),
+                               'fieldName' => $exception->getFieldName()
                        ]);
                }
                else if ($e instanceof ValidateActionException) {
index 32c2df9e00876700558679da1a36c670fba9067b..adf062cb23ae2fff5f23b3e6e1f3f155253888f1 100644 (file)
@@ -214,7 +214,7 @@ class MediaAction extends AbstractDatabaseObjectAction implements ISearchAction,
                                $mediaData[$row['mediaID']] = [
                                        'altText' => [],
                                        'caption' => [],
-                                       'title' => [],
+                                       'title' => []
                                ];
                        }
                        
index 264b23915d0faa10e49919f82cd1e1b53317bc23..6546d2b4995b38edd61a367e6e237cb6a32247e3 100644 (file)
@@ -233,7 +233,7 @@ class PaidSubscriptionUserAction extends AbstractDatabaseObjectAction {
                        }
                        if (!empty($groupIDs)) {
                                $action = new UserAction([$subscriptionUser->userID], 'removeFromGroups', [
-                                       'groups' => $groupIDs,
+                                       'groups' => $groupIDs
                                ]);
                                $action->executeAction();
                        }
index d3b87b15d06ccc7bd4e10e1db41656386351e96b..d5b595f72867e969176f9b5e58d15a2d3545e768 100644 (file)
@@ -610,7 +610,7 @@ class UserAction extends AbstractDatabaseObjectAction implements IClipboardActio
                        'data' => [
                                'activationCode' => UserRegistrationUtil::getActivationCode()
                        ],
-                       'removeGroups' => UserGroup::getGroupIDsByType([UserGroup::USERS]),
+                       'removeGroups' => UserGroup::getGroupIDsByType([UserGroup::USERS])
                ]);
                $action->executeAction();
                $action = new UserAction($this->objects, 'addToGroups', [
index 663d5507b9ad68f7d2726261853651be6911c8e8..138673a7fae47d3ef268299cdb8a1fe8b8278a1a 100644 (file)
@@ -54,7 +54,7 @@ class UserIgnoreAction extends AbstractDatabaseObjectAction {
                        UserIgnoreEditor::create([
                                'ignoreUserID' => $this->parameters['data']['userID'],
                                'time' => TIME_NOW,
-                               'userID' => WCF::getUser()->userID,
+                               'userID' => WCF::getUser()->userID
                        ]);
                        
                        UserStorageHandler::getInstance()->reset([WCF::getUser()->userID], 'ignoredUserIDs');
index 16b619ad6426c47813d0bd6e90cc8a315b002766..a248a35963cd3cef326ed00bb79c426bb46507a3 100644 (file)
@@ -144,7 +144,7 @@ class MailForm extends AbstractCaptchaForm {
                $messageData = [
                        'message' => $this->message,
                        'recipient' => $this->user,
-                       'username' => WCF::getUser()->userID ? WCF::getUser()->username : $this->email,
+                       'username' => WCF::getUser()->userID ? WCF::getUser()->username : $this->email
                ];
                
                // build mail
index 62dc53d2600a716b3148caa0c9eb99e1e1a36934..e628783bce7824c7e2982fe68a4992617647a22a 100644 (file)
@@ -433,7 +433,7 @@ class RegisterForm extends UserAddForm {
                        'data' => array_merge($this->additionalFields, [
                                'username' => $this->username,
                                'email' => $this->email,
-                               'password' => $this->password,
+                               'password' => $this->password
                        ]),
                        'groups' => $this->groupIDs,
                        'languageIDs' => $this->visibleLanguages,
index 2d0d4c272855b5216a85cd5c524406d5374ca5ed..0a0d666a4b6f6dd8ac1d5a572fff4f929a314c3f 100644 (file)
@@ -37,7 +37,7 @@ class AboutUserProfileMenuContent extends SingletonFactory implements IUserProfi
                
                WCF::getTPL()->assign([
                        'options' => $this->optionHandler->getOptionTree(),
-                       'userID' => $user->userID,
+                       'userID' => $user->userID
                ]);
                
                return WCF::getTPL()->fetch('userProfileAbout');
index 3e9f0d9686bfb564ac1bd382fd6b2fae5615c388..e3e9d93cb331b80c2cbea0bcc3602ceb9ff5355a 100644 (file)
@@ -28,7 +28,7 @@ class LikesUserProfileMenuContent extends SingletonFactory implements IUserProfi
                WCF::getTPL()->assign([
                        'likeList' => $likeList,
                        'userID' => $userID,
-                       'lastLikeTime' => $likeList->getLastLikeTime(),
+                       'lastLikeTime' => $likeList->getLastLikeTime()
                ]);
                
                return WCF::getTPL()->fetch('userProfileLikes');
index 9cc3f4d656450ec585fd3189fe8d7585e59883a9..c1c2c6babf5481ebf85413a1831e27328867e7a3 100644 (file)
@@ -230,7 +230,7 @@ class QuickReplyManager extends SingletonFactory {
                                'container' => $this->container,
                                'objects' => $messageList,
                                'startIndex' => $startIndex,
-                               'sortOrder' => $sortOrder,
+                               'sortOrder' => $sortOrder
                        ]);
                        
                        // assign 'to top' link
index 3608c2a8c3b682595eecaac62f9fefa506635c6d..c1f9880e92d46ef58514a92e5128b6223ace0a1e 100644 (file)
@@ -30,7 +30,7 @@ class MessageUserOptionOutput implements IUserOptionOutput {
                
                WCF::getTPL()->assign([
                        'option' => $option,
-                       'value' => MessageParser::getInstance()->parse($value),
+                       'value' => MessageParser::getInstance()->parse($value)
                ]);
                return WCF::getTPL()->fetch('messageUserOptionOutput');
        }
index 4e43d601fc9a3cb27491b6fea7ec8d2bf245e431..54d633f0834426db265e93a3835821fe870bb202 100644 (file)
@@ -180,7 +180,7 @@ class BBCodePackageInstallationPlugin extends AbstractXMLPackageInstallationPlug
                                                'attributeHtml' => (!empty($attribute['html']) ? $attribute['html'] : ''),
                                                'validationPattern' => (!empty($attribute['validationpattern']) ? $attribute['validationpattern'] : ''),
                                                'required' => (!empty($attribute['required']) ? $attribute['required'] : 0),
-                                               'useText' => (!empty($attribute['usetext']) ? $attribute['usetext'] : 0),
+                                               'useText' => (!empty($attribute['usetext']) ? $attribute['usetext'] : 0)
                                        ]);
                                }
                        }
index 87f27ff31a3084260dd4843cd49b490bf2c9d7cf..f560a28afb62bdf4c003109dbfaa5c8c62fd37e0 100644 (file)
@@ -100,7 +100,7 @@ class PageLocationManager extends SingletonFactory {
                        'pageID' => $page->pageID,
                        'pageObjectID' => $pageObjectID,
                        'title' => $title,
-                       'useAsParentLocation' => $useAsParentLocation,
+                       'useAsParentLocation' => $useAsParentLocation
                ];
        }
        
index 2df6a040b1450a2d602135cd53a071bf9fa35bec..6ce0a815d13ecb69f21cec496edf579582071dc7 100644 (file)
@@ -172,7 +172,7 @@ class UploadFile {
                                return [
                                        'width' => $imageData[0],
                                        'height' => $imageData[1],
-                                       'mimeType' => $imageData['mime'],
+                                       'mimeType' => $imageData['mime']
                                ];
                        }
                }
index 70edf06c00e12c63281ff3e60d62b4bbc4e754f7..62090401a905e19043341a64f3252865a1591146 100644 (file)
@@ -92,7 +92,7 @@ class SendNewPasswordWorker extends AbstractWorker {
                // send mail
                $mail = new Mail([$userEditor->username => $userEditor->email], $userEditor->getLanguage()->getDynamicVariable('wcf.acp.user.sendNewPassword.mail.subject'), $userEditor->getLanguage()->getDynamicVariable('wcf.acp.user.sendNewPassword.mail', [
                        'password' => $newPassword,
-                       'username' => $userEditor->username,
+                       'username' => $userEditor->username
                ]));
                $mail->send();
        }