summaryrefslogtreecommitdiffstats
path: root/ajax
diff options
context:
space:
mode:
authorThomas Mueller <thomas.mueller@tmit.eu>2012-09-07 15:21:03 +0200
committerThomas Mueller <thomas.mueller@tmit.eu>2012-09-07 15:21:03 +0200
commita59854cc809828501371dc934362c81a82e83cee (patch)
tree24e9172389f9fdf3aaaac50452f90c8dc9e77ed1 /ajax
parentce2e3bd0cba51d5625c53d14bd58204eca89eaf2 (diff)
adding space between) and {
Diffstat (limited to 'ajax')
-rw-r--r--ajax/movefeedtofolder.php2
-rw-r--r--ajax/setallitemsread.php6
-rw-r--r--ajax/usersettings.php4
3 files changed, 6 insertions, 6 deletions
diff --git a/ajax/movefeedtofolder.php b/ajax/movefeedtofolder.php
index 16439ce3c..3a678515d 100644
--- a/ajax/movefeedtofolder.php
+++ b/ajax/movefeedtofolder.php
@@ -22,7 +22,7 @@ $feedId = $_POST['feedId'];
$feedMapper = new OCA\News\FeedMapper();
$feed = $feedMapper->findById($feedId);
-if($folderId === 0){
+if($folderId === 0) {
$success = $feedMapper->save($feed, $folderId);
} else {
$folderMapper = new OCA\News\FolderMapper();
diff --git a/ajax/setallitemsread.php b/ajax/setallitemsread.php
index 5355ead06..ba084299d 100644
--- a/ajax/setallitemsread.php
+++ b/ajax/setallitemsread.php
@@ -40,12 +40,12 @@ switch ($feedId) {
// FeedMapper instead of iterating through every item and updating as
// necessary
$success = false;
-if($mostRecentItemId !== 0){
+if($mostRecentItemId !== 0) {
$mostRecentItem = $itemMapper->find($mostRecentItemId);
}
-foreach($items as $item){
+foreach($items as $item) {
// FIXME: this should compare the modified date
- if($mostRecentItemId === 0 || $item->getDate() <= $mostRecentItem->getDate()){
+ if($mostRecentItemId === 0 || $item->getDate() <= $mostRecentItem->getDate()) {
$item->setRead();
$success = $itemMapper->update($item);
}
diff --git a/ajax/usersettings.php b/ajax/usersettings.php
index df8d62a44..010bb49b8 100644
--- a/ajax/usersettings.php
+++ b/ajax/usersettings.php
@@ -15,8 +15,8 @@ OCP\JSON::checkLoggedIn();
OCP\JSON::checkAppEnabled('news');
OCP\JSON::callCheck();
-if(isset($_POST['showAll'])){
- if($_POST['showAll'] === 'false'){
+if(isset($_POST['showAll'])) {
+ if($_POST['showAll'] === 'false') {
$showAll = false;
} else {
$showAll = true;