diff --git a/admin/settings/security.php b/admin/settings/security.php index 4209805932b26..444458035ff21 100644 --- a/admin/settings/security.php +++ b/admin/settings/security.php @@ -28,7 +28,7 @@ $temp->add(new admin_setting_configselect('maxbytes', get_string('maxbytes', 'admin'), get_string('configmaxbytes', 'admin'), 0, $max_upload_choices)); // 100MB $defaultuserquota = 104857600; - $params = new stdclass; + $params = new stdClass(); $params->bytes = $defaultuserquota; $params->displaysize = display_size($defaultuserquota); $temp->add(new admin_setting_configtext('userquota', get_string('userquota', 'admin'), get_string('configuserquota', 'admin', $params), $defaultuserquota)); diff --git a/admin/xmldb/index.php b/admin/xmldb/index.php index 53daf816ed62f..4b80b2862b318 100644 --- a/admin/xmldb/index.php +++ b/admin/xmldb/index.php @@ -112,7 +112,7 @@ print_error('xmldberror'); } } else { - $a = new stdclass; + $a = new stdClass(); $a->action = $action; $a->actionclass = $actionclass; print_error('cannotinstantiateclass', 'xmldb', '', $a); diff --git a/blocks/comments/block_comments.php b/blocks/comments/block_comments.php index c6c009045bfd4..979a8d82cb57a 100644 --- a/blocks/comments/block_comments.php +++ b/blocks/comments/block_comments.php @@ -38,7 +38,7 @@ function get_content() { $this->content->footer = ''; $this->content->text = ''; list($context, $course, $cm) = get_context_info_array($PAGE->context->id); - $args = new stdclass; + $args = new stdClass(); $args->context = $PAGE->context; $args->course = $course; $args->area = 'page_comments'; @@ -50,7 +50,7 @@ function get_content() { $comment = new comment($args); $comment->set_view_permission(true); - $this->content = new stdClass; + $this->content = new stdClass(); $this->content->text = $comment->output(true); $this->content->footer = ''; return $this->content; diff --git a/comment/comment_ajax.php b/comment/comment_ajax.php index adbb0110e3555..8f1ea5cc24da7 100644 --- a/comment/comment_ajax.php +++ b/comment/comment_ajax.php @@ -54,7 +54,7 @@ // initilising comment object if (!empty($client_id)) { - $args = new stdclass; + $args = new stdClass(); $args->context = $context; $args->course = $course; $args->cm = $cm; diff --git a/comment/comment_post.php b/comment/comment_post.php index 9338fc9302e80..e0730def92775 100644 --- a/comment/comment_post.php +++ b/comment/comment_post.php @@ -35,7 +35,7 @@ $returnurl = optional_param('returnurl', '', PARAM_URL); $component = optional_param('component', '', PARAM_ALPHAEXT); -$cmt = new stdclass; +$cmt = new stdClass(); $cmt->contextid = $contextid; $cmt->courseid = $course->id; $cmt->area = $area; diff --git a/comment/lib.php b/comment/lib.php index 61036304d997b..59e6d6e35eded 100644 --- a/comment/lib.php +++ b/comment/lib.php @@ -185,7 +185,7 @@ public function __construct($options) { } // setup options for callback functions - $this->args = new stdclass; + $this->args = new stdClass(); $this->args->context = $this->context; $this->args->courseid = $this->courseid; $this->args->cm = $this->cm; @@ -282,7 +282,7 @@ public function output($return = true) { $murl->remove_params('comment_page'); $this->link = $murl->out(); - $options = new stdclass; + $options = new stdClass(); $options->client_id = $this->cid; $options->commentarea = $this->commentarea; $options->itemid = $this->itemid; @@ -486,7 +486,7 @@ public function add($content, $format = FORMAT_MOODLE) { throw new comment_exception('nopermissiontocomment'); } $now = time(); - $newcmt = new stdclass; + $newcmt = new stdClass(); $newcmt->contextid = $this->contextid; $newcmt->commentarea = $this->commentarea; $newcmt->itemid = $this->itemid; diff --git a/course/format/social/format.php b/course/format/social/format.php index 25f0c8fa6265a..f989f6fc830b2 100644 --- a/course/format/social/format.php +++ b/course/format/social/format.php @@ -13,7 +13,7 @@ /// Print forum intro above posts MDL-18483 if (trim($forum->intro) != '') { - $options = new stdclass; + $options = new stdClass(); $options->para = false; $introcontent = format_module_intro('forum', $forum, $cm->id); diff --git a/files/filebrowser_ajax.php b/files/filebrowser_ajax.php index 8ecc13423a19a..96099863274c6 100755 --- a/files/filebrowser_ajax.php +++ b/files/filebrowser_ajax.php @@ -36,7 +36,7 @@ echo $OUTPUT->header(); // send headers -$err = new stdclass; +$err = new stdClass(); if (isguestuser()) { $err->error = get_string('noguest'); die(json_encode($err)); diff --git a/lib/db/upgrade.php b/lib/db/upgrade.php index ac1f7500909ff..bf9d9d74cfaaa 100644 --- a/lib/db/upgrade.php +++ b/lib/db/upgrade.php @@ -2639,7 +2639,7 @@ function xmldb_main_upgrade($oldversion) { } $active_licenses = array(); - $license = new stdclass; + $license = new stdClass(); // add unknown license $license->shortname = 'unknown'; diff --git a/lib/filelib.php b/lib/filelib.php index 53e044294e3c7..18637a0aa82c2 100644 --- a/lib/filelib.php +++ b/lib/filelib.php @@ -475,7 +475,7 @@ function file_get_drafarea_folders($draftitemid, $filepath, &$data) { if ($files = $fs->get_directory_files($context->id, 'user', 'draft', $draftitemid, $filepath, false)) { foreach ($files as $file) { if ($file->is_directory()) { - $item = new stdclass; + $item = new stdClass(); $item->sortorder = $file->get_sortorder(); $item->filepath = $file->get_filepath(); @@ -505,7 +505,7 @@ function file_get_drafarea_files($draftitemid, $filepath = '/') { $context = get_context_instance(CONTEXT_USER, $USER->id); $fs = get_file_storage(); - $data = new stdclass; + $data = new stdClass(); $data->path = array(); $data->path[] = array('name'=>get_string('files'), 'path'=>'/'); @@ -526,7 +526,7 @@ function file_get_drafarea_files($draftitemid, $filepath = '/') { $maxlength = 12; if ($files = $fs->get_directory_files($context->id, 'user', 'draft', $draftitemid, $filepath, false)) { foreach ($files as $file) { - $item = new stdclass; + $item = new stdClass(); $item->filename = $file->get_filename(); $item->filepath = $file->get_filepath(); $item->fullname = trim($item->filename, '/'); diff --git a/lib/form/editor.php b/lib/form/editor.php index 95af0d1532367..1ca0c371c83be 100644 --- a/lib/form/editor.php +++ b/lib/form/editor.php @@ -161,7 +161,7 @@ function toHtml() { $draftitemid = $this->_values['itemid']; } - $args = new stdclass; + $args = new stdClass(); // need these three to filter repositories list $args->accepted_types = array('image'); $args->return_types = (FILE_INTERNAL | FILE_EXTERNAL); diff --git a/lib/form/filemanager.php b/lib/form/filemanager.php index 8033c2a57fbcd..89640f13c5fee 100644 --- a/lib/form/filemanager.php +++ b/lib/form/filemanager.php @@ -135,7 +135,7 @@ function toHtml() { $client_id = uniqid(); // filemanager options - $options = new stdclass; + $options = new stdClass(); $options->mainfile = $this->_options['mainfile']; $options->maxbytes = $this->_options['maxbytes']; $options->maxfiles = $this->getMaxfiles(); @@ -207,7 +207,7 @@ public function __construct(stdClass $options) { } // building file picker options - $params = new stdclass; + $params = new stdClass(); $params->accepted_types = $options->accepted_types; $params->return_types = $options->return_types; $params->context = $options->context; diff --git a/lib/form/filepicker.php b/lib/form/filepicker.php index 81307651dabc9..1c590486fab11 100644 --- a/lib/form/filepicker.php +++ b/lib/form/filepicker.php @@ -70,7 +70,7 @@ function toHtml() { $client_id = uniqid(); - $args = new stdclass; + $args = new stdClass(); // need these three to filter repositories list $args->accepted_types = $this->_options['accepted_types']?$this->_options['accepted_types']:'*'; $args->return_types = FILE_INTERNAL; diff --git a/lib/form/url.php b/lib/form/url.php index 21cb1e7817ae6..8822aa8ec466a 100755 --- a/lib/form/url.php +++ b/lib/form/url.php @@ -62,7 +62,7 @@ function toHtml(){ $straddlink EOD; - $args = new stdclass; + $args = new stdClass(); $args->accepted_types = '*'; $args->return_types = FILE_EXTERNAL; $args->context = $PAGE->context; diff --git a/lib/licenselib.php b/lib/licenselib.php index b3c3789a5d33d..c6700557653d2 100644 --- a/lib/licenselib.php +++ b/lib/licenselib.php @@ -140,7 +140,7 @@ static private function set_active_licenses() { static public function install_licenses() { $active_licenses = array(); - $license = new stdclass; + $license = new stdClass(); $license->shortname = 'unknown'; $license->fullname = 'Unknown license'; diff --git a/lib/upgradelib.php b/lib/upgradelib.php index 5adeecfe7f40b..2d359cd13a5bb 100644 --- a/lib/upgradelib.php +++ b/lib/upgradelib.php @@ -1428,7 +1428,7 @@ function upgrade_plugin_mnet_functions($component) { $f = $data['filename']; $c = $data['classname']; foreach ($data['methods'] as $method) { - $dataobject = new stdclass; + $dataobject = new stdClass(); $dataobject->plugintype = $type; $dataobject->pluginname = $plugin; $dataobject->enabled = 1; diff --git a/mod/assignment/lib.php b/mod/assignment/lib.php index cdfd76b405ecb..23058952e45bc 100644 --- a/mod/assignment/lib.php +++ b/mod/assignment/lib.php @@ -1001,7 +1001,7 @@ function display_submission($offset=-1,$userid =-1, $display=true) { $this->preprocess_submission($submission); - $mformdata = new stdclass; + $mformdata = new stdClass(); $mformdata->context = $this->context; $mformdata->maxbytes = $this->course->maxbytes; $mformdata->courseid = $this->course->id; diff --git a/mod/assignment/type/upload/upload.php b/mod/assignment/type/upload/upload.php index 93b0f7799ca2a..202efed3547a4 100644 --- a/mod/assignment/type/upload/upload.php +++ b/mod/assignment/type/upload/upload.php @@ -74,7 +74,7 @@ echo $OUTPUT->box_start('generalbox'); if ($instance->can_upload_file($submission) && ($id==null)) { - $data = new stdclass; + $data = new stdClass(); // move submission files to user draft area $data = file_prepare_standard_filemanager($data, 'files', $filemanager_options, $context, 'mod_assignment', 'submission', $submission->id); // set file manager itemid, so it will find the files in draft area diff --git a/mod/chat/chat_ajax.php b/mod/chat/chat_ajax.php index 8542b3dfca45a..836dc49cdf25f 100644 --- a/mod/chat/chat_ajax.php +++ b/mod/chat/chat_ajax.php @@ -126,7 +126,7 @@ $send_user_list = false; if ($messages && ($chat_lasttime != $chat_newlasttime)) { foreach ($messages as $n => &$message) { - $tmp = new stdclass; + $tmp = new stdClass(); // when somebody enter room, user list will be updated if (!empty($message->system)){ $send_user_list = true; diff --git a/mod/chat/gui_ajax/theme/bubble/config.php b/mod/chat/gui_ajax/theme/bubble/config.php index dbdf3c2915136..f427d76e91bf2 100755 --- a/mod/chat/gui_ajax/theme/bubble/config.php +++ b/mod/chat/gui_ajax/theme/bubble/config.php @@ -1,5 +1,5 @@ avatar = true; $chattheme_cfg->align = true; $chattheme_cfg->event_message = <<