diff options
author | webchick <webchick@24967.no-reply.drupal.org> | 2011-07-18 00:56:06 -0700 |
---|---|---|
committer | webchick <webchick@24967.no-reply.drupal.org> | 2011-07-18 00:56:06 -0700 |
commit | e30853303f6ef852e6d8f46ce07c9e8af14de63b (patch) | |
tree | 7a7c7c1351c86fffdedb34ce772d8d9867ea2c6f /modules | |
parent | dafc861fa3b0bf474524f04b9d9d1b7bfe67d27f (diff) | |
download | brdo-e30853303f6ef852e6d8f46ce07c9e8af14de63b.tar.gz brdo-e30853303f6ef852e6d8f46ce07c9e8af14de63b.tar.bz2 |
Issue #348448 follow-up by jbrown: Coding standard fixes to E_STRICT tests.
Diffstat (limited to 'modules')
-rw-r--r-- | modules/filter/filter.test | 8 | ||||
-rw-r--r-- | modules/node/node.install | 2 | ||||
-rw-r--r-- | modules/poll/poll.module | 2 | ||||
-rw-r--r-- | modules/profile/profile.module | 2 |
4 files changed, 7 insertions, 7 deletions
diff --git a/modules/filter/filter.test b/modules/filter/filter.test index a3d1bde40..67d08333d 100644 --- a/modules/filter/filter.test +++ b/modules/filter/filter.test @@ -792,7 +792,7 @@ class FilterUnitTestCase extends DrupalUnitTestCase { */ function testLineBreakFilter() { // Setup dummy filter object. - $filter = new stdClass; + $filter = new stdClass(); $filter->callback = '_filter_autop'; // Since the line break filter naturally needs plenty of newlines in test @@ -1156,7 +1156,7 @@ class FilterUnitTestCase extends DrupalUnitTestCase { */ function testHtmlEscapeFilter() { // Setup dummy filter object. - $filter = new stdClass; + $filter = new stdClass(); $filter->callback = '_filter_html_escape'; $tests = array( @@ -1174,7 +1174,7 @@ class FilterUnitTestCase extends DrupalUnitTestCase { */ function testUrlFilter() { // Setup dummy filter object. - $filter = new stdClass; + $filter = new stdClass(); $filter->callback = '_filter_url'; $filter->settings = array( 'filter_url_length' => 496, @@ -1509,7 +1509,7 @@ www.example.com with a newline in comments --> */ function testUrlFilterContent() { // Setup dummy filter object. - $filter = new stdClass; + $filter = new stdClass(); $filter->settings = array( 'filter_url_length' => 496, ); diff --git a/modules/node/node.install b/modules/node/node.install index a08e99757..d4fce3f01 100644 --- a/modules/node/node.install +++ b/modules/node/node.install @@ -476,7 +476,7 @@ function _update_7000_node_get_types() { $extra_types = array_diff($all_types, array_keys($node_types)); foreach ($extra_types as $type) { - $type_object = new stdClass; + $type_object = new stdClass(); $type_object->type = $type; // In Drupal 6, whether you have a body field or not is a flag in the node diff --git a/modules/poll/poll.module b/modules/poll/poll.module index 561e160c4..861969573 100644 --- a/modules/poll/poll.module +++ b/modules/poll/poll.module @@ -486,7 +486,7 @@ function poll_load($nodes) { $poll = db_query("SELECT runtime, active FROM {poll} WHERE nid = :nid", array(':nid' => $node->nid))->fetchObject(); if (empty($poll)) { - $poll = new stdClass; + $poll = new stdClass(); } // Load the appropriate choices into the $poll object. diff --git a/modules/profile/profile.module b/modules/profile/profile.module index 1da4c6f47..8cac6d797 100644 --- a/modules/profile/profile.module +++ b/modules/profile/profile.module @@ -544,7 +544,7 @@ function template_preprocess_profile_block(&$variables) { // Supply filtered version of $fields that have values. foreach ($variables['fields'] as $field) { if ($field->value) { - $variables['profile'][$field->name] = new stdClass; + $variables['profile'][$field->name] = new stdClass(); $variables['profile'][$field->name]->title = check_plain($field->title); $variables['profile'][$field->name]->value = $field->value; $variables['profile'][$field->name]->type = $field->type; |