diff options
author | Bart Visscher <bartv@thisnet.nl> | 2012-07-21 00:44:34 +0200 |
---|---|---|
committer | Bart Visscher <bartv@thisnet.nl> | 2012-07-21 00:45:30 +0200 |
commit | 1c30a97833235e585528da288d20663f65ac25b3 (patch) | |
tree | a7518e6bd416ccc74630e8119d07f2ad56a91af5 /apps/tasks/lib/app.php | |
parent | 06b5e05c86d29de51a18f13e1d44787a3021a8f0 (diff) | |
download | nextcloud-server-1c30a97833235e585528da288d20663f65ac25b3.tar.gz nextcloud-server-1c30a97833235e585528da288d20663f65ac25b3.zip |
Style fixes
Diffstat (limited to 'apps/tasks/lib/app.php')
-rw-r--r-- | apps/tasks/lib/app.php | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/apps/tasks/lib/app.php b/apps/tasks/lib/app.php index 1b42968f0be..7c23bbc1f49 100644 --- a/apps/tasks/lib/app.php +++ b/apps/tasks/lib/app.php @@ -77,7 +77,7 @@ class OC_Task_App { public static function validateRequest($request) { $errors = array(); - if($request['summary'] == ''){ + if($request['summary'] == '') { $errors['summary'] = self::$l10n->t('Empty Summary'); } @@ -89,10 +89,10 @@ class OC_Task_App { $errors['due'] = self::$l10n->t('Invalid date/time'); } - if ($request['percent_complete'] < 0 || $request['percent_complete'] > 100){ + if ($request['percent_complete'] < 0 || $request['percent_complete'] > 100) { $errors['percent_complete'] = self::$l10n->t('Invalid percent complete'); } - if ($request['percent_complete'] == 100 && !empty($request['completed'])){ + if ($request['percent_complete'] == 100 && !empty($request['completed'])) { try { $timezone = OCP\Config::getUserValue(OCP\User::getUser(), "calendar", "timezone", "Europe/London"); $timezone = new DateTimeZone($timezone); @@ -168,8 +168,8 @@ class OC_Task_App { $vtodo->__unset('PERCENT-COMPLETE'); } - if ($percent_complete == 100){ - if (!$completed){ + if ($percent_complete == 100) { + if (!$completed) { $completed = 'now'; } } else { |