summaryrefslogtreecommitdiff
path: root/modules/aggregator
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2009-05-24 17:39:35 +0000
committerDries Buytaert <dries@buytaert.net>2009-05-24 17:39:35 +0000
commita24a6c2bba2d15ab835e0b0fce9354bb6fb16c5b (patch)
tree9194465a044c0fdad447eba2906f0472a4dff515 /modules/aggregator
parenta5f42fd007bf3646261b431c52cde53657e21564 (diff)
downloadbrdo-a24a6c2bba2d15ab835e0b0fce9354bb6fb16c5b.tar.gz
brdo-a24a6c2bba2d15ab835e0b0fce9354bb6fb16c5b.tar.bz2
- Patch #471070 by stella: millions of code style fixes.
Diffstat (limited to 'modules/aggregator')
-rw-r--r--modules/aggregator/aggregator.admin.inc4
-rw-r--r--modules/aggregator/aggregator.api.php8
-rw-r--r--modules/aggregator/aggregator.processor.inc2
-rw-r--r--modules/aggregator/aggregator.test16
4 files changed, 15 insertions, 15 deletions
diff --git a/modules/aggregator/aggregator.admin.inc b/modules/aggregator/aggregator.admin.inc
index bd218e6b6..111ff821e 100644
--- a/modules/aggregator/aggregator.admin.inc
+++ b/modules/aggregator/aggregator.admin.inc
@@ -55,7 +55,7 @@ function aggregator_view() {
function aggregator_form_feed(&$form_state, stdClass $feed = NULL) {
$period = drupal_map_assoc(array(900, 1800, 3600, 7200, 10800, 21600, 32400, 43200, 64800, 86400, 172800, 259200, 604800, 1209600, 2419200), 'format_interval');
$period[0] = t('Never');
-
+
$form['title'] = array('#type' => 'textfield',
'#title' => t('Title'),
'#default_value' => isset($feed->title) ? $feed->title : '',
@@ -458,7 +458,7 @@ function aggregator_admin_form($form_state) {
'#default_value' => variable_get('aggregator_processors', array('aggregator')),
);
}
- if (count($basic_conf)) {
+ if (count($basic_conf)) {
$form['basic_conf'] = array(
'#type' => 'fieldset',
'#title' => t('Basic configuration'),
diff --git a/modules/aggregator/aggregator.api.php b/modules/aggregator/aggregator.api.php
index 9d758aedf..87ec5dfca 100644
--- a/modules/aggregator/aggregator.api.php
+++ b/modules/aggregator/aggregator.api.php
@@ -109,8 +109,8 @@ function hook_aggregator_parse($feed) {
* parser.
*
* The title and the description provided are shown on admin/settings/aggregator
- * among other places. Use as title the human readable name of the parser and
- * as description a brief (40 to 80 characters) explanation of the parser's
+ * among other places. Use as title the human readable name of the parser and
+ * as description a brief (40 to 80 characters) explanation of the parser's
* functionality.
*
* This hook is only called if your module implements hook_aggregator_parse().
@@ -167,8 +167,8 @@ function hook_aggregator_process($feed) {
* processor.
*
* The title and the description provided are shown most importantly on
- * admin/settings/aggregator. Use as title the natural name of the processor
- * and as description a brief (40 to 80 characters) explanation of the
+ * admin/settings/aggregator. Use as title the natural name of the processor
+ * and as description a brief (40 to 80 characters) explanation of the
* functionality.
*
* This hook is only called if your module implements
diff --git a/modules/aggregator/aggregator.processor.inc b/modules/aggregator/aggregator.processor.inc
index 9692afe81..247ceb7a0 100644
--- a/modules/aggregator/aggregator.processor.inc
+++ b/modules/aggregator/aggregator.processor.inc
@@ -175,7 +175,7 @@ function aggregator_expire($feed) {
// Remove all items that are older than flush item timer.
$age = REQUEST_TIME - $aggregator_clear;
$iids = db_query('SELECT iid FROM {aggregator_item} WHERE fid = :fid AND timestamp < :timestamp', array(
- ':fid' => $feed->fid,
+ ':fid' => $feed->fid,
':timestamp' => $age,
))
->fetchCol();
diff --git a/modules/aggregator/aggregator.test b/modules/aggregator/aggregator.test
index bc29e933f..3d41055c5 100644
--- a/modules/aggregator/aggregator.test
+++ b/modules/aggregator/aggregator.test
@@ -20,7 +20,7 @@ class AggregatorTestCase extends DrupalWebTestCase {
* If given, feed will be created with this URL, otherwise /rss.xml will be used.
* @return $feed
* Full feed object if possible.
- *
+ *
* @see getFeedEditArray()
*/
function createFeed($feed_url = NULL) {
@@ -67,8 +67,8 @@ class AggregatorTestCase extends DrupalWebTestCase {
/**
* Return the count of the randomly created feed array.
- *
- * @return
+ *
+ * @return
* Number of feed items on default feed created by createFeed().
*/
function getDefaultFeedItemCount() {
@@ -117,10 +117,10 @@ class AggregatorTestCase extends DrupalWebTestCase {
/**
* Add and remove feed items and ensure that the count is zero.
- *
- * @param $feed
+ *
+ * @param $feed
* Feed object representing the feed.
- * @param $expected_count
+ * @param $expected_count
* Expected number of feed items.
*/
function updateAndRemove($feed, $expected_count) {
@@ -242,7 +242,7 @@ EOF;
function createSampleNodes() {
// Post 5 articles.
- for($i = 0; $i < 5; $i++) {
+ for ($i = 0; $i < 5; $i++) {
$edit = array();
$edit['title'] = $this->randomName();
$edit['body'] = $this->randomName();
@@ -438,7 +438,7 @@ class RemoveFeedItemTestCase extends AggregatorTestCase {
foreach ($feed_urls as $feed_url) {
$feed = $this->createFeed($feed_url);
// Update and remove items two times in a row to make sure that removal
- // resets all 'modified' information (modified, etag, hash) and allows for
+ // resets all 'modified' information (modified, etag, hash) and allows for
// immediate update.
$this->updateAndRemove($feed, 2);
$this->updateAndRemove($feed, 2);