aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorChristian Weiske <cweiske@cweiske.de>2014-08-21 17:03:19 +0200
committerChristian Weiske <cweiske@cweiske.de>2014-08-21 17:03:19 +0200
commit849cf18b89186163bc3695c5a0eb2908471b95b3 (patch)
treea82fb8cf8fab337acc8b8cfeefc3efdcdb9062bb /lib
parent9150b1d1f25a5f278ed44e4d3afe32de5ef8ccc3 (diff)
downloadgrauphel-849cf18b89186163bc3695c5a0eb2908471b95b3.tar.gz
grauphel-849cf18b89186163bc3695c5a0eb2908471b95b3.zip
CS: tab2spaces
Diffstat (limited to 'lib')
-rw-r--r--lib/notestorage.php28
1 files changed, 14 insertions, 14 deletions
diff --git a/lib/notestorage.php b/lib/notestorage.php
index 121f5cb..77c8fc6 100644
--- a/lib/notestorage.php
+++ b/lib/notestorage.php
@@ -262,8 +262,8 @@ class NoteStorage
\OC_DB::executeAudited(
'DELETE FROM `*PREFIX*grauphel_notes`'
. ' WHERE `note_user` = ? AND `note_guid` = ?',
- array($username, $guid)
- );
+ array($username, $guid)
+ );
}
/**
@@ -277,15 +277,15 @@ class NoteStorage
*/
public function loadNotesOverview($username, $since = null)
{
- $result = \OC_DB::executeAudited(
+ $result = \OC_DB::executeAudited(
'SELECT `note_guid`, `note_title`, `note_last_sync_revision`'
. ' FROM `*PREFIX*grauphel_notes`'
. ' WHERE note_user = ?',
- array($username)
- );
+ array($username)
+ );
- $notes = array();
- while ($row = $result->fetchRow()) {
+ $notes = array();
+ while ($row = $result->fetchRow()) {
if ($since !== null && $row['note_last_sync_revision'] <= $since) {
continue;
}
@@ -305,7 +305,7 @@ class NoteStorage
),
'title' => $row['note_title'],
);
- }
+ }
return $notes;
}
@@ -321,19 +321,19 @@ class NoteStorage
*/
public function loadNotesFull($username, $since = null)
{
- $result = \OC_DB::executeAudited(
+ $result = \OC_DB::executeAudited(
'SELECT * FROM `*PREFIX*grauphel_notes`'
. ' WHERE note_user = ?',
- array($username)
- );
+ array($username)
+ );
- $notes = array();
- while ($row = $result->fetchRow()) {
+ $notes = array();
+ while ($row = $result->fetchRow()) {
if ($since !== null && $row['note_last_sync_revision'] <= $since) {
continue;
}
$notes[] = $this->noteFromRow($row);
- }
+ }
return $notes;
}