Minor - format code replace "TRUE" with "true"

pull/2487/head
jmontoyaa 9 years ago
parent c077a622d4
commit e0903aa2b9
  1. 2
      main/admin/specific_fields.php
  2. 6
      main/exercise/question.class.php
  3. 8
      main/inc/lib/geometry.lib.php
  4. 4
      main/inc/lib/search/search_widget.php
  5. 12
      main/inc/lib/search/xapian/XapianIndexer.class.php

@ -36,7 +36,7 @@ $number_of_extra_fields = count($extra_fields);
$table = new SortableTableFromArrayConfig($extra_fields,2,50,'',$column_show,$column_order);
$table->set_header(0, ' ', false,null,'width="2%"', 'style="display:none"');
$table->set_header(1, get_lang('Code'), TRUE, 'width="10%"');
$table->set_header(1, get_lang('Code'), true, 'width="10%"');
$table->set_header(2, get_lang('Name'));
$table->set_header(3, get_lang('Modify'),false,'width="10%"');
$table->set_column_filter(3, 'edit_filter');

@ -1111,7 +1111,7 @@ abstract class Question
$se_ref = Database::fetch_array($res);
$se_doc = $di->get_document((int) $se_ref['search_did']);
if ($se_doc !== false) {
if (($se_doc_data = $di->get_document_data($se_doc)) !== FALSE) {
if (($se_doc_data = $di->get_document_data($se_doc)) !== false) {
$se_doc_data = unserialize($se_doc_data);
if (
isset($se_doc_data[SE_DATA]['type']) &&
@ -1600,9 +1600,9 @@ abstract class Question
// Categories
$tabCat = TestCategory::getCategoriesIdAndName();
$form->addElement('select', 'questionCategory', get_lang('Category'), $tabCat);
global $text;
switch ($this->type) {
case UNIQUE_ANSWER:
$buttonGroup = array();

@ -254,12 +254,12 @@ function poly_result(&$poly1, &$poly2, $max) {
for ($i=0; $i<$max['x']; $i++)
for($j=0; $j<$max['y']; $j++) {
if (isset($poly1[$i][$j]) && ($poly1[$i][$j] == TRUE)) {
if (isset($poly1[$i][$j]) && ($poly1[$i][$j] == true)) {
$surfaceOf1++;
if (isset($poly2[$i][$j]) && ($poly2[$i][$j] == FALSE))
if (isset($poly2[$i][$j]) && ($poly2[$i][$j] == false))
$onlyIn1++;
}
if (isset($poly2[$i][$j]) && ($poly2[$i][$j] == TRUE))
if (isset($poly2[$i][$j]) && ($poly2[$i][$j] == true))
$surfaceOf2++;
}
@ -290,7 +290,7 @@ function poly_touch(&$poly1, &$poly2, $max) {
}
}
}
return FALSE;
return false;
}
/**

@ -360,11 +360,11 @@ function search_widget_show($action='index.php')
$show_thesaurus = false;
foreach ($url_params as $param) {
if (isset($_REQUEST[$param]) && is_array($_REQUEST[$param])) {
$thesaurus_decided = FALSE;
$thesaurus_decided = false;
foreach ($_REQUEST[$param] as $term) {
if (!empty($term)) {
$show_thesaurus = true;
$thesaurus_decided = TRUE;
$thesaurus_decided = true;
break;
}
}

@ -188,7 +188,7 @@ abstract class XapianIndexer
}
try {
if (!is_a($doc, 'XapianDocument')) {
return FALSE;
return false;
}
$doc_data = $doc->get_data();
return $doc_data;
@ -235,7 +235,7 @@ abstract class XapianIndexer
}
if (is_numeric($did) && $did > 0) {
$doc = $this->get_document($did);
if ($doc !== FALSE) {
if ($doc !== false) {
$this->db->delete_document($did);
$this->db->flush();
}
@ -252,7 +252,7 @@ abstract class XapianIndexer
function add_term_to_doc($term, $doc)
{
if (!is_a($doc, 'XapianDocument')) {
return FALSE;
return false;
}
try {
$doc->add_term($term);
@ -272,7 +272,7 @@ abstract class XapianIndexer
function remove_term_from_doc($term, $doc)
{
if (!is_a($doc, 'XapianDocument')) {
return FALSE;
return false;
}
try {
$doc->remove_term($term);
@ -291,7 +291,7 @@ abstract class XapianIndexer
function replace_document($doc, $did)
{
if (!is_a($doc, 'XapianDocument')) {
return FALSE;
return false;
}
if ($this->db == null) {
$this->connectDb();
@ -305,7 +305,6 @@ abstract class XapianIndexer
}
}
/**
* Class destructor
*/
@ -314,5 +313,4 @@ abstract class XapianIndexer
unset($this->db);
unset($this->stemmer);
}
}

Loading…
Cancel
Save