]> source.dussan.org Git - nextcloud-server.git/commitdiff
coding-style fixes
authorBjoern Schiessle <schiessle@owncloud.com>
Tue, 3 Sep 2013 11:37:06 +0000 (13:37 +0200)
committerBjoern Schiessle <schiessle@owncloud.com>
Tue, 3 Sep 2013 11:37:06 +0000 (13:37 +0200)
core/ajax/share.php
core/js/share.js
lib/defaults.php

index 1e954ac4f9d4bafcf6fadabd177f64947e8f4d3c..8f5432a0fcb63c61bd372797885e39c388d694e6 100644 (file)
@@ -129,7 +129,13 @@ if (isset($_POST['action']) && isset($_POST['itemType']) && isset($_POST['itemSo
                                        }
 
                                        $url = \OCP\Util::linkToAbsolute('files', 'index.php', array("dir" => $foldername));
-                                       $text = $defaults->getShareNotificationText(\OCP\User::getDisplayName(), $filename, $itemType, $url, $expiration);
+                                       $text = $defaults->getShareNotificationText(
+                                                               \OCP\User::getDisplayName(),
+                                                               $filename,
+                                                               $itemType,
+                                                               $url,
+                                                               $expiration
+                                                       );
 
                                        try {
                                                OCP\Util::sendMail(
@@ -153,7 +159,13 @@ if (isset($_POST['action']) && isset($_POST['itemType']) && isset($_POST['itemSo
                        if (empty($noMail)) {
                                OCP\JSON::success();
                        } else {
-                               OCP\JSON::error(array('data' => array('message' => $l->t("Couldn't send mail to following users: %s ", implode(', ', $noMail)))));
+                               OCP\JSON::error(array(
+                                       'data' => array(
+                                               'message' => $l->t("Couldn't send mail to following users: %s ",
+                                                               implode(', ', $noMail)
+                                                               )
+                                               )
+                                       ));
                        }
                        break;
                case 'informRecipientsDisabled':
index e253f77ef2755b2a0adf078c0097e549fe65f820..763713e7cf284e9ff0f75a64bc02b6e15f757a56 100644 (file)
@@ -493,7 +493,7 @@ $(document).ready(function() {
                                $('input:[type=checkbox]', this).hide();
                                $('label', this).hide();
                        }
-               } else {
+               } else {
                        $('a.unshare', this).hide();
                }
        });
index 0685fbb16c02f22111ca6c4fae77e537b36e7eb4..efb6c2c7b327eb5f4749462502d70ffb7501acfa 100644 (file)
@@ -72,9 +72,14 @@ class OC_Defaults {
                        return $this->theme->getShareNotificationText($sender, $itemName, $itemType, $link, $expiration);
                } else {
                        if ($expiration) {
-                               return $this->l->t("%s shared a %s called %s with you. The share will expire at %s. You can find the %s here: %s", array($sender, $itemType, $itemName, $expiration, $itemType, $link));
+                               return $this->l->t("%s shared a %s called %s with you. " .
+                                               "The share will expire at %s. ".
+                                               "You can find the %s here: %s",
+                                               array($sender, $itemType, $itemName, $expiration, $itemType, $link));
                        } else {
-                               return $this->l->t("%s shared a %s called %s with you. You can find the %s here: %s", array($sender, $itemType, $itemName, $itemType, $link));
+                               return $this->l->t("%s shared a %s called %s with you. ".
+                                               "You can find the %s here: %s",
+                                               array($sender, $itemType, $itemName, $itemType, $link));
                        }
                }
        }