]> source.dussan.org Git - nextcloud-server.git/commitdiff
remove a lot of closing php tags and empty lines at a file's end in calendar app
authorGeorg Ehrke <dev@georgswebsite.de>
Sat, 16 Jun 2012 07:45:17 +0000 (09:45 +0200)
committerGeorg Ehrke <dev@georgswebsite.de>
Sat, 16 Jun 2012 07:45:17 +0000 (09:45 +0200)
25 files changed:
apps/calendar/ajax/calendar/activation.php
apps/calendar/ajax/calendar/delete.php
apps/calendar/ajax/calendar/edit.form.php
apps/calendar/ajax/calendar/edit.php
apps/calendar/ajax/calendar/new.form.php
apps/calendar/ajax/calendar/new.php
apps/calendar/ajax/calendar/overview.php
apps/calendar/ajax/calendar/update.php
apps/calendar/ajax/categories/rescan.php
apps/calendar/ajax/event/delete.php
apps/calendar/ajax/event/edit.form.php
apps/calendar/ajax/event/edit.php
apps/calendar/ajax/event/move.php
apps/calendar/ajax/event/new.form.php
apps/calendar/ajax/event/new.php
apps/calendar/ajax/event/resize.php
apps/calendar/ajax/import/dialog.php
apps/calendar/ajax/import/dropimport.php
apps/calendar/ajax/import/import.php
apps/calendar/ajax/settings/getfirstday.php
apps/calendar/ajax/settings/guesstimezone.php
apps/calendar/ajax/settings/setfirstday.php
apps/calendar/ajax/settings/settimeformat.php
apps/calendar/ajax/settings/settimezone.php
apps/calendar/ajax/settings/timeformat.php

index 380db6a9437c46aae0ecc2546459d31c48f8bda5..e31908beb14c28d8ef5c9be678d52f78acdac9e7 100644 (file)
@@ -20,4 +20,4 @@ $calendar = OC_Calendar_App::getCalendar($calendarid);
 OCP\JSON::success(array(
        'active' => $calendar['active'],
        'eventSource' => OC_Calendar_Calendar::getEventSourceInfo($calendar),
-));
+));
\ No newline at end of file
index 9e092f2df1d931d9c4cd9d32bb21db3460c8a412..4d6706f60028e8ef90dcb55c407f8e19f447e6df 100644 (file)
@@ -21,5 +21,4 @@ if($del == true){
        OCP\JSON::success();
 }else{
        OCP\JSON::error(array('error'=>'dberror'));
-}
-?> 
+}
\ No newline at end of file
index 036ed12bb74309a49ba13a7dff67aed8b05d7851..3916c5276372e98f6dbce4bf034905a5cf6ecc63 100644 (file)
@@ -16,5 +16,4 @@ $tmpl = new OCP\Template("calendar", "part.editcalendar");
 $tmpl->assign('new', false);
 $tmpl->assign('calendarcolor_options', $calendarcolor_options);
 $tmpl->assign('calendar', $calendar);
-$tmpl->printPage();
-?>
+$tmpl->printPage();
\ No newline at end of file
index 516c9f6c765c81237ad0265720708e70d346bea8..82f18fe7f44a3dfb60e2e8b4df8d8ef0a30758c2 100644 (file)
@@ -20,5 +20,4 @@ $tmpl = new OCP\Template("calendar", "part.editcalendar");
 $tmpl->assign('new', false);
 $tmpl->assign('calendarcolor_options', $calendarcolor_options);
 $tmpl->assign('calendar', $calendar);
-$tmpl->printPage();
-?>
+$tmpl->printPage();
\ No newline at end of file
index ee46757f56b24325e65bc45dd535e6cbc0215abc..0783b6168f81c7255048cf416f5c67a4021be98f 100644 (file)
@@ -19,5 +19,4 @@ $tmpl = new OCP\Template('calendar', 'part.editcalendar');
 $tmpl->assign('new', true);
 $tmpl->assign('calendarcolor_options', $calendarcolor_options);
 $tmpl->assign('calendar', $calendar);
-$tmpl->printPage();
-?>
+$tmpl->printPage();
\ No newline at end of file
index 76dbef6b9df16fc02f286ab5b73b20e3cc195732..278c8e5520bb99d40b567b740e8942b37ee21ae1 100644 (file)
@@ -34,4 +34,4 @@ $tmpl->assign('calendar', $calendar);
 OCP\JSON::success(array(
        'page' => $tmpl->fetchPage(),
        'eventSource' => OC_Calendar_Calendar::getEventSourceInfo($calendar),
-));
+));
\ No newline at end of file
index 96312537507caf41410b6c7cd5e791d427cb96a4..9d43364ffbf10df0000cb7ec20d6254547486e66 100644 (file)
@@ -11,5 +11,4 @@ $l10n = OC_L10N::get('calendar');
 OCP\JSON::checkLoggedIn();
 OCP\JSON::checkAppEnabled('calendar');
 $output = new OCP\Template("calendar", "part.choosecalendar");
-$output -> printpage();
-?>
+$output -> printpage();
\ No newline at end of file
index dce0027304aba8086bb16b80c1162ac205dc3bcb..5cf63d396f7253a48229f1b6902886f7c2c00f26 100644 (file)
@@ -39,4 +39,4 @@ $tmpl->assign('calendar', $calendar);
 OCP\JSON::success(array(
        'page' => $tmpl->fetchPage(),
        'eventSource' => OC_Calendar_Calendar::getEventSourceInfo($calendar),
-));
+));
\ No newline at end of file
index 93e8c50954a2733fbc37ebc5347a0cf738367504..f0060cb23b29e65b66ea58c0caf8ccc0e91d3ff7 100644 (file)
@@ -39,4 +39,4 @@ if(count($events) == 0) {
 OC_Calendar_App::scanCategories($events);
 $categories = OC_Calendar_App::getCategoryOptions();
 
-OCP\JSON::success(array('data' => array('categories'=>$categories)));
+OCP\JSON::success(array('data' => array('categories'=>$categories)));
\ No newline at end of file
index cb30621af4d4c2d3defb8c7564ef25b161125dd1..f183d431afaddad95a33a8b272467263b5d31bef 100644 (file)
@@ -17,4 +17,4 @@ if($access != 'owner' && $access != 'rw'){
        exit;
 }
 $result = OC_Calendar_Object::delete($id);
-OCP\JSON::success();
+OCP\JSON::success();
\ No newline at end of file
index dbb78edb798f9e3a2419f52c0f687d520158ec1d..6e5709a18dbc745c60768136eebdf796a0a4e9bc 100644 (file)
@@ -261,4 +261,4 @@ if($repeat['repeat'] != 'doesnotrepeat'){
        $tmpl->assign('repeat_date', '');
        $tmpl->assign('repeat_year', 'bydate');
 }
-$tmpl->printpage();
+$tmpl->printpage();
\ No newline at end of file
index e615fb093de018035cbf12b2c603c034a6de856c..1c3babc3d90909ed0bde5fe43f98ab9da4b5ab32 100644 (file)
@@ -42,5 +42,4 @@ if($errarr){
                OC_Calendar_Object::moveToCalendar($id, $cal);
        }
        OCP\JSON::success();
-}
-?>
+}
\ No newline at end of file
index 8added69143b6a85c1064e2f862f074f074c29b5..04cf2fb0513065d65a2c07fcf659e31e01a91105 100644 (file)
@@ -43,4 +43,4 @@ $vevent->setDateTime('DTSTAMP', 'now', Sabre_VObject_Property_DateTime::UTC);
 
 $result = OC_Calendar_Object::edit($id, $vcalendar->serialize());
 $lastmodified = $vevent->__get('LAST-MODIFIED')->getDateTime();
-OCP\JSON::success(array('lastmodified'=>(int)$lastmodified->format('U')));
+OCP\JSON::success(array('lastmodified'=>(int)$lastmodified->format('U')));
\ No newline at end of file
index 91b85fff07f25dc0696e3cb81b58fd5abd8335ff..0b19e7e92f96495b90588cb148a2ce77538b750b 100644 (file)
@@ -72,4 +72,4 @@ $tmpl->assign('repeat_count', '10');
 $tmpl->assign('repeat_weekofmonth', 'auto');
 $tmpl->assign('repeat_date', '');
 $tmpl->assign('repeat_year', 'bydate');
-$tmpl->printpage();
+$tmpl->printpage();
\ No newline at end of file
index 72d57be03bfb204a7d8b912b25dea94467d01192..30e2b0cae36f428df2cc01472c810eb0dd994c3c 100644 (file)
@@ -21,5 +21,4 @@ if($errarr){
        $vcalendar = OC_Calendar_Object::createVCalendarFromRequest($_POST);
        $result = OC_Calendar_Object::add($cal, $vcalendar->serialize());
        OCP\JSON::success();
-}
-?>
+}
\ No newline at end of file
index 0dc0a5fca7f800d7aca138fedb55a814921d2473..56b83205e851522e8238e61b151b2a4565a0749f 100644 (file)
@@ -35,4 +35,4 @@ $vevent->setDateTime('DTSTAMP', 'now', Sabre_VObject_Property_DateTime::UTC);
 
 OC_Calendar_Object::edit($id, $vcalendar->serialize());
 $lastmodified = $vevent->__get('LAST-MODIFIED')->getDateTime();
-OCP\JSON::success(array('lastmodified'=>(int)$lastmodified->format('U')));
+OCP\JSON::success(array('lastmodified'=>(int)$lastmodified->format('U')));
\ No newline at end of file
index 3be02d2a6dbf32b907ac82045b448c8a7e744391..b99c32278c46c3c02f0f3c131966e1fff574935a 100644 (file)
@@ -12,5 +12,4 @@ OCP\App::checkAppEnabled('calendar');
 $tmpl = new OCP\Template('calendar', 'part.import');
 $tmpl->assign('path', $_POST['path']);
 $tmpl->assign('filename', $_POST['filename']);
-$tmpl->printpage();
-?>
+$tmpl->printpage();
\ No newline at end of file
index 684eebf5fdd99f1a55eeb407f76a5933d2ff2d77..87667d4de685d71d1a781c37b6bf0577f21a216a 100644 (file)
@@ -70,5 +70,4 @@ foreach($uids as $uid) {
                OC_Calendar_Object::add($id, $import);
        }
 }
-OCP\JSON::success();
-?>
\ No newline at end of file
+OCP\JSON::success();
\ No newline at end of file
index 6fdad12c085f20ef52994a55ee404593b6b493e6..1facedfe0dae2b522eb760e476904387dbe67233 100644 (file)
@@ -119,4 +119,4 @@ foreach($uids as $uid) {
 writeProgress('100');
 sleep(3);
 OC_Cache::remove($progresskey);
-OCP\JSON::success();
+OCP\JSON::success();
\ No newline at end of file
index 23b71bba043b3b150fdd4acfb6eed31247aa7b46..bc995f7d6e8ed0488e6242af88f6990ca23eb00a 100644 (file)
@@ -8,5 +8,4 @@
  
 OCP\JSON::checkLoggedIn();
 $firstday = OCP\Config::getUserValue( OCP\USER::getUser(), 'calendar', 'firstday', 'mo');
-OCP\JSON::encodedPrint(array('firstday' => $firstday));
-?> 
+OCP\JSON::encodedPrint(array('firstday' => $firstday));
\ No newline at end of file
index f36f3bf061ff919629b72ae90ceea27459273c94..6b6b8bef9c1beea4fea3272293ea262a40a1293c 100644 (file)
@@ -23,5 +23,4 @@ if($timezone == OCP\Config::getUserValue(OCP\USER::getUser(), 'calendar', 'timez
 }
 OCP\Config::setUserValue(OCP\USER::getUser(), 'calendar', 'timezone', $timezone);
 $message = array('message'=> $l->t('New Timezone:') . $timezone);
-OCP\JSON::success($message);
-?>
\ No newline at end of file
+OCP\JSON::success($message);
\ No newline at end of file
index 373eeee796838ad8f1cebba4de35461d67dd737d..056a60375247cd22a0734718b5dba5de9d4e56cb 100644 (file)
@@ -12,6 +12,4 @@ if(isset($_POST["firstday"])){
        OCP\JSON::success();
 }else{
        OCP\JSON::error();
-}
-?> 
+}
\ No newline at end of file
index eae7be54e80ed2740b3b044f26bb866061fbd27e..8e95f6f3bf53142ca853d7b5ee7ab303e812b51f 100644 (file)
@@ -12,6 +12,4 @@ if(isset($_POST["timeformat"])){
        OCP\JSON::success();
 }else{
        OCP\JSON::error();
-}
-?> 
+}
\ No newline at end of file
index d2797a08aae6525769183050982926dcfec939f3..6d029a6643a506f9a8a71d799e061f587452f3a5 100644 (file)
@@ -22,6 +22,4 @@ if( isset( $_POST['timezone'] ) ){
        OCP\JSON::success(array('data' => array( 'message' => $l->t('Timezone changed') )));
 }else{
        OCP\JSON::error(array('data' => array( 'message' => $l->t('Invalid request') )));
-}
-
-?>
+}
\ No newline at end of file
index 809164e870a50b5788fd9bbbf4a2c02eece349f2..eebb687dfac2be15d31d0caa495155d4b8be772a 100644 (file)
@@ -8,5 +8,4 @@
  
 OCP\JSON::checkLoggedIn();
 $timeformat = OCP\Config::getUserValue( OCP\USER::getUser(), 'calendar', 'timeformat', "24");
-OCP\JSON::encodedPrint(array("timeformat" => $timeformat));
-?> 
+OCP\JSON::encodedPrint(array("timeformat" => $timeformat));
\ No newline at end of file