]> git.mjollnir.org Git - moodle.git/commitdiff
MDL-20700 coding style - new sloppy trailing whitespace fixed, yes I am guilty too :-(
authorPetr Skoda <skodak@moodle.org>
Mon, 9 Nov 2009 11:33:14 +0000 (11:33 +0000)
committerPetr Skoda <skodak@moodle.org>
Mon, 9 Nov 2009 11:33:14 +0000 (11:33 +0000)
group/grouping.php
lib/form/searchableselector.js
lib/form/searchableselector.php
lib/outputrenderers.php
lib/setuplib.php
mod/glossary/db/upgrade.php
mod/glossary/lib.php
pluginfile.php
repository/repository.src.js
tag/edit.php
user/profile/index_category_form.php

index dbea9fcc0153e5c790f02a921d87ecbee5f395c6..7890ab00492baa56fd29f62e83591e73869e5ff9 100644 (file)
@@ -36,7 +36,7 @@ if ($id) {
     if (!$course = $DB->get_record('course', array('id'=>$courseid))) {
         print_error('invalidcourseid');
     }
-    
+
 } else {
     $url->param('courseid', $courseid);
     if (!$course = $DB->get_record('course', array('id'=>$courseid))) {
index 85a2232764c25028455e2762cd8390e9a351d907..71db14e4bf58fd106d036c30fd05de64604f180a 100644 (file)
@@ -64,14 +64,14 @@ selector = {
                 options[i].style.display = 'block';
                 if (matchingoption == -1) { //we found at least one
                     matchingoption = i;
-                } 
+                }
             } else {
                 options[i].disabled = true;
                 options[i].selected = false;
                 options[i].style.display = 'none';
             }
         }
-       
+
         if (matchingoption == -1) { //the search didn't find any matching, color the search text in red
             selector.input.className = "error";
         } else {
index b23f62afa5aa886cd593a5c707664b15001a255e..8b8762c302d0ce400eed96b626e32625e840eabf 100644 (file)
@@ -38,7 +38,7 @@ class MoodleQuickForm_searchableselector extends MoodleQuickForm_select{
     function MoodleQuickForm_searchableselector($elementName=null, $elementLabel=null, $options=null, $attributes=null) {
         //return exception if the selector is set as multiple (TODO: implement multiple support)
         if (!empty($attributes) && key_exists('multiple', $attributes)) {
-            throw new moodle_exception('searchableselectorcannotbemultiple');     
+            throw new moodle_exception('searchableselectorcannotbemultiple');
         }
         //set size default to 12
         if (empty($attributes) || empty($attributes['size'])) {
@@ -58,10 +58,10 @@ class MoodleQuickForm_searchableselector extends MoodleQuickForm_select{
             $PAGE->requires->js('lib/form/searchableselector.js');
             $PAGE->requires->js_function_call('selector.filter_init', array(get_string('search'),$this->getAttribute('id')));
 
-            $strHtml = '';     
+            $strHtml = '';
             $strHtml .= parent::toHtml(); //the select input
             return $strHtml;
         }
     }
-  
+
 }
index 8bd90bfc127e56e75b9fe6c335391dceaaf21a63..2bfe56be4b3dfcd60e5d7702972ff4e8d003ac58 100644 (file)
@@ -880,7 +880,7 @@ class moodle_core_renderer extends moodle_renderer_base {
         $footer = $this->opencontainers->pop('header/footer');
 
         if (debugging() and $DB and $DB->is_transaction_started()) {
-            // TODO: MDL-20625 print warning - transaction will be rolled back 
+            // TODO: MDL-20625 print warning - transaction will be rolled back
         }
 
         // Provide some performance info if required
index 21afafd29315c2a73358a190e3729f6ac7f2c8b0..2aa157b3f1956c476fe742905058fe00515b98f7 100644 (file)
@@ -209,7 +209,7 @@ function abort_all_db_transactions() {
     global $CFG, $DB, $SCRIPT;
 
     // default exception handler MUST not throw any exceptions!!
-    
+
     if ($DB && $DB->is_transaction_started()) {
         error_log('Database transaction aborted automatically in ' . $CFG->dirroot . $SCRIPT);
         // note: transaction blocks should never change current $_SESSION
index 9d0fd5c6b8f96f4459833b2796e940f710a14d46..0d6c9b6d0abf65d134dc255e4d026bc1a2e2ebde 100644 (file)
@@ -206,7 +206,7 @@ function xmldb_glossary_upgrade($oldversion) {
     }
     if ($result && $oldversion < 2009110800) {
         require_once($CFG->libdir . '/commentlib.php');
+
     /// Define table glossary_comments to be dropped
         $table = new xmldb_table('glossary_comments');
 
index 5f32cdb1f0654f44db83409bb8e3dfeacc723f7d..28fdd9feb7bb1b1f1315ad380274a9673b983421 100644 (file)
@@ -2503,7 +2503,7 @@ function glossary_reset_userdata($data) {
          or (!empty($data->reset_glossary_types) and in_array('main', $data->reset_glossary_types) and in_array('secondary', $data->reset_glossary_types))) {
 
         $DB->delete_records_select('glossary_ratings', "entryid IN ($allentriessql)", $params);
-        // TODO: delete comments 
+        // TODO: delete comments
         //$DB->delete_records_select('comments', "entryid IN ($allentriessql)", array());
         $DB->delete_records_select('glossary_entries', "glossaryid IN ($allglossariessql)", $params);
 
index d33a23ebc60e26d5b277d1d7068ce0990907bf71..f1e9f771b4821467194d998dfe03949598d51e47 100644 (file)
@@ -158,7 +158,7 @@ if ($context->contextlevel == CONTEXT_SYSTEM) {
 
         // Must be logged in, if they are not then they obviously can't be this user
         require_login();
-        
+
         // Don't want guests here, potentially saves a DB call
         if (isguestuser()) {
             send_file_not_found();
@@ -300,7 +300,7 @@ if ($context->contextlevel == CONTEXT_SYSTEM) {
         }
 
         $fullpath = $context->id.$filearea.implode('/', $args);
-        
+
         if (!$file = $fs->get_file_by_hash(sha1($fullpath)) or $file->is_directory()) {
             send_file_not_found();
         }
index 9d97541d489e4a6ecf4ea11a33e78680b43e0646..4c69efaa52e692b53c4c299beedc0a6e237bf529 100644 (file)
@@ -29,7 +29,7 @@ var id2clientid = {};
 var id2itemid   = {};
 
 /**
- * repository_client is a javascript class, it contains several static 
+ * repository_client is a javascript class, it contains several static
  * methods you can call it directly without creating an instance.
  * If you are going to create a file picker, you need create an instance
  * repo = new repository_client();
@@ -188,7 +188,7 @@ var repository_client = (function(){
             var container = new YAHOO.util.Element('repo-list-'+this.client_id);
             container.set('innerHTML', '');
             container.on('contentReady', function() {
-                this.init_search();    
+                this.init_search();
                 for(var i in MOODLE.repository.listing[this.client_id]) {
                     var repo = MOODLE.repository.listing[this.client_id][i];
                     var support = false;
index 64a6e549cb1bb0e1c6bb92d20ada589eb8ac534c..a282b8f554536abb4836ab5ee5bdce31f6ffdb55 100644 (file)
@@ -94,7 +94,7 @@ if ($tagnew = $tagform->get_data()) {
     if (empty($errorstring)) {    // All is OK, let's save it
 
         $tagnew = file_postupdate_standard_editor($tagnew, 'description', $editoroptions, $systemcontext, 'tag_description', $tag->id);
-        
+
         tag_description_set($tag_id, $tagnew->description, $tagnew->descriptionformat);
 
         $tagnew->timemodified = time();
index 0d99ac301f69193de5afd719d594a28fd0ad2bdd..e4ab710aa39d2d0beec44551504ba6b1ddf28eb3 100644 (file)
@@ -44,7 +44,7 @@ class category_form extends moodleform {
         else { // new profile category
             $dupfound = $duplicate;
         }
-        
+
         if ($dupfound ) {
             $errors['name'] = get_string('profilecategorynamenotunique', 'admin');
         }