From: Christian Weiske Date: Thu, 21 Aug 2014 15:03:19 +0000 (+0200) Subject: CS: tab2spaces X-Git-Tag: v0.1.0~15 X-Git-Url: https://git.cweiske.de/grauphel.git/commitdiff_plain/849cf18b89186163bc3695c5a0eb2908471b95b3?ds=sidebyside CS: tab2spaces --- diff --git a/controller/apicontroller.php b/controller/apicontroller.php index 7f6bc67..4c7af48 100644 --- a/controller/apicontroller.php +++ b/controller/apicontroller.php @@ -34,13 +34,13 @@ use \OCA\Grauphel\Lib\Response\ErrorResponse; */ class ApiController extends Controller { - /** - * constructor of the controller + /** + * constructor of the controller * - * @param string $appName Name of the app - * @param IRequest $request Instance of the request - */ - public function __construct($appName, \OCP\IRequest $request, $user) + * @param string $appName Name of the app + * @param IRequest $request Instance of the request + */ + public function __construct($appName, \OCP\IRequest $request, $user) { parent::__construct($appName, $request); $this->user = $user; diff --git a/controller/guicontroller.php b/controller/guicontroller.php index e3753d7..79c6447 100644 --- a/controller/guicontroller.php +++ b/controller/guicontroller.php @@ -29,13 +29,13 @@ use \OCP\AppFramework\Http\TemplateResponse; */ class GuiController extends Controller { - /** - * constructor of the controller + /** + * constructor of the controller * - * @param string $appName Name of the app - * @param IRequest $request Instance of the request - */ - public function __construct($appName, \OCP\IRequest $request, $user, $urlGen) + * @param string $appName Name of the app + * @param IRequest $request Instance of the request + */ + public function __construct($appName, \OCP\IRequest $request, $user, $urlGen) { parent::__construct($appName, $request); $this->user = $user; diff --git a/controller/oauthcontroller.php b/controller/oauthcontroller.php index ceaa935..d02b7b8 100644 --- a/controller/oauthcontroller.php +++ b/controller/oauthcontroller.php @@ -41,13 +41,13 @@ class OauthController extends Controller { protected $user; - /** - * constructor of the controller + /** + * constructor of the controller * - * @param string $appName Name of the app - * @param IRequest $request Instance of the request - */ - public function __construct($appName, \OCP\IRequest $request, $user) + * @param string $appName Name of the app + * @param IRequest $request Instance of the request + */ + public function __construct($appName, \OCP\IRequest $request, $user) { parent::__construct($appName, $request); $this->user = $user; 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; } diff --git a/templates/settings.php b/templates/settings.php index 476a202..7f22bc9 100755 --- a/templates/settings.php +++ b/templates/settings.php @@ -1,8 +1,8 @@
-
-

t('App Template'));?>

- -
- -
+
+

t('App Template'));?>

+ +
+ +