summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--modules/filter/filter.test8
-rw-r--r--modules/node/node.install2
-rw-r--r--modules/poll/poll.module2
-rw-r--r--modules/profile/profile.module2
-rw-r--r--scripts/generate-d6-content.sh6
5 files changed, 10 insertions, 10 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;
diff --git a/scripts/generate-d6-content.sh b/scripts/generate-d6-content.sh
index bba61caee..5079c2338 100644
--- a/scripts/generate-d6-content.sh
+++ b/scripts/generate-d6-content.sh
@@ -100,7 +100,7 @@ module_load_include('inc', 'node', 'node.pages');
for ($i = 0; $i < 24; $i++) {
$uid = intval($i / 8) + 3;
$user = user_load($uid);
- $node = new stdClass;
+ $node = new stdClass();
$node->uid = $uid;
$node->type = $i < 12 ? 'page' : 'story';
$node->sticky = 0;
@@ -148,7 +148,7 @@ for ($i = 0; $i < 24; $i++) {
for ($i = 0; $i < 12; $i++) {
$uid = intval($i / 4) + 3;
$user = user_load($uid);
- $node = new stdClass;
+ $node = new stdClass();
$node->uid = $uid;
$node->type = 'poll';
$node->sticky = 0;
@@ -187,7 +187,7 @@ for ($i = 0; $i < 12; $i++) {
$uid = 6;
$user = user_load($uid);
-$node = new stdClass;
+$node = new stdClass();
$node->uid = $uid;
$node->type = 'broken';
$node->sticky = 0;