Browse files

Code style

  • Loading branch information...
1 parent 5452f50 commit bd5c4efd416857770088061daac62f7b50b131dc @ginatrapani ginatrapani committed Jan 21, 2011
View
6 webapp/_lib/controller/class.ExportController.php
@@ -74,8 +74,8 @@ public function authControl() {
$this->exportReplies();
break;
case 'favorites':
- $this->exportAllFavPosts();
- break;
+ $this->exportAllFavPosts();
+ break;
case 'posts':
default:
$this->exportAllPosts();
@@ -98,7 +98,7 @@ protected function exportAllPosts() {
self::outputCSV($posts_it, $column_labels, 'posts-'.$_GET['u'].'-'.$_GET['n']);
}
-
+
protected function exportAllFavPosts() {
$fpost_dao = DAOFactory::getDAO('FavoritePostDAO');
$posts_it = $fpost_dao->getAllFavoritePostsByUsernameIterator($_GET['u'], $_GET['n']);
View
12 webapp/_lib/controller/class.GridController.php
@@ -31,33 +31,28 @@
*
*/
class GridController extends ThinkUpAuthController {
-
/**
* const max rows for grid
*/
const MAX_ROWS = 5000;
-
/**
* number of days to look back for retweeted posts
*/
const MAX_RT_DAYS = 30;
-
/**
* Required query string parameters
* @var array u = instance username, n = network
*/
var $REQUIRED_PARAMS = array('u', 'n');
-
/**
*
* @var boolean
*/
var $is_missing_param = false;
-
/**
* Constructor
* @param bool $session_started
- * @return InlineViewController
+ * @return GridController
*/
public function __construct($session_started=false) {
parent::__construct($session_started);
@@ -80,7 +75,7 @@ public function __construct($session_started=false) {
}
/**
- * Outputs javascript callback string with json array/list of post as an argument
+ * Outputs JavaScript callback string with json array/list of post as an argument
*/
public function authControl() {
$this->setContentType('text/javascript');
@@ -111,7 +106,7 @@ public function authControl() {
$cnt = 0;
foreach($posts_it as $key => $value) {
$cnt++;
- $data = array('id' => $cnt, 'text' => $value->post_text,
+ $data = array('id' => $cnt, 'text' => $value->post_text,
'post_id_str' => $value->post_id . '_str', 'author' => $value->author_username,
'date' => $value->adj_pub_date);
echo json_encode($data) . ",\n";
@@ -128,6 +123,5 @@ public function authControl() {
} else {
echo '{"status":"failed","message":"Missing Parameters"}';
}
-
}
}
View
5 webapp/_lib/model/interface.PostDAO.php
@@ -69,9 +69,8 @@ public function getRepliesToPost($post_id, $network, $order_by = 'default', $uni
* @param int $count Defaults to 350
* @return Iterator Posts with author object set, and optional link object set
*/
- public function getRepliesToPostIterator($post_id, $network, $order_by = 'default', $unit = 'km', $is_public = false,
- $count = 350);
-
+ public function getRepliesToPostIterator($post_id, $network, $order_by = 'default', $unit = 'km',
+ $is_public = false, $count = 350);
/**
* Get retweets of post
View
15 webapp/plugins/twitter/auth.php
@@ -9,24 +9,23 @@
*
* This file is part of ThinkUp (http://thinkupapp.com).
*
- * ThinkUp is free software: you can redistribute it and/or modify it under the terms of the GNU General Public
- * License as published by the Free Software Foundation, either version 2 of the License, or (at your option) any
+ * ThinkUp is free software: you can redistribute it and/or modify it under the terms of the GNU General Public
+ * License as published by the Free Software Foundation, either version 2 of the License, or (at your option) any
* later version.
*
- * ThinkUp is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied
- * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
+ * ThinkUp is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied
+ * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
* details.
*
- * You should have received a copy of the GNU General Public License along with ThinkUp. If not, see
+ * You should have received a copy of the GNU General Public License along with ThinkUp. If not, see
* <http://www.gnu.org/licenses/>.
-*/
-/**
+ *
* @author Gina Trapani <ginatrapani[at]gmail[dot]com>
* @author Mark Wilkie <mark[at]bitterpill[dot]org>
* @author Christoffer Viken <christoffer[at]viken[dot]me>
* @license http://www.gnu.org/licenses/gpl.html
* @copyright 2009-2010 Gina Trapani, Mark Wilkie, Christoffer Viken
-*/
+ */
chdir("..");
chdir("..");
require_once 'init.php';

0 comments on commit bd5c4ef

Please sign in to comment.