| @@ -4,7 +4,7 @@ | ||
| 4 | 4 | * Simple autoloader, so we don't need Composer just for this. | 
| 5 | 5 | */ | 
| 6 | 6 | |
| 7 | -spl_autoload_register(function ($class) { | |
| 7 | +spl_autoload_register(function($class) { | |
| 8 | 8 |  	if (preg_match('/^DebugBar/', $class)) { | 
| 9 | 9 |  		$file = DOL_DOCUMENT_ROOT.'/includes/maximebf/debugbar/src/'.str_replace('\\', DIRECTORY_SEPARATOR, $class).'.php'; | 
| 10 | 10 | //var_dump($class.' - '.file_exists($file).' - '.$file); | 
| @@ -18,7 +18,7 @@ | ||
| 18 | 18 | |
| 19 | 19 | // Create the autoloader for Luracast | 
| 20 | 20 | require_once DOL_DOCUMENT_ROOT.'/includes/restler/framework/Luracast/Restler/AutoLoader.php'; | 
| 21 | -call_user_func(function () { | |
| 21 | +call_user_func(function() { | |
| 22 | 22 | $loader = Luracast\Restler\AutoLoader::instance(); | 
| 23 | 23 | spl_autoload_register($loader); | 
| 24 | 24 | return $loader; | 
| @@ -166,11 +166,11 @@ | ||
| 166 | 166 | } | 
| 167 | 167 | |
| 168 | 168 | // Clean parameters | 
| 169 | - $this->url = clean_url($this->url, 1); | |
| 169 | + $this->url = clean_url($this->url, 1); | |
| 170 | 170 |  		if (empty($this->label)) { | 
| 171 | 171 | $this->label = basename($this->url); | 
| 172 | 172 | } | 
| 173 | - $this->label = trim($this->label); | |
| 173 | + $this->label = trim($this->label); | |
| 174 | 174 | |
| 175 | 175 | |
| 176 | 176 | $this->db->begin(); | 
| @@ -263,7 +263,7 @@ | ||
| 263 | 263 | echo '<div>'; | 
| 264 | 264 | echo '<table class="noborder centpercent">'; | 
| 265 | 265 | echo '<thead>'; | 
| 266 | -echo '<tr class="liste_titre"><th>' . $langs->trans('Parameter') . '</th><th>' . $langs->trans('Value') . '</th></tr>'; | |
| 266 | +echo '<tr class="liste_titre"><th>'.$langs->trans('Parameter').'</th><th>'.$langs->trans('Value').'</th></tr>'; | |
| 267 | 267 | echo '</thead>'; | 
| 268 | 268 | echo '<tbody>'; | 
| 269 | 269 | |
| @@ -24,7 +24,7 @@ discard block | ||
| 24 | 24 | * \brief Module to show box of members | 
| 25 | 25 | */ | 
| 26 | 26 | |
| 27 | -include_once DOL_DOCUMENT_ROOT . '/core/boxes/modules_boxes.php'; | |
| 27 | +include_once DOL_DOCUMENT_ROOT.'/core/boxes/modules_boxes.php'; | |
| 28 | 28 | |
| 29 | 29 | |
| 30 | 30 | /** | 
| @@ -83,8 +83,8 @@ discard block | ||
| 83 | 83 | |
| 84 | 84 | $this->max = $max; | 
| 85 | 85 | |
| 86 | - include_once DOL_DOCUMENT_ROOT . '/adherents/class/adherent.class.php'; | |
| 87 | - require_once DOL_DOCUMENT_ROOT . '/adherents/class/adherent_type.class.php'; | |
| 86 | + include_once DOL_DOCUMENT_ROOT.'/adherents/class/adherent.class.php'; | |
| 87 | + require_once DOL_DOCUMENT_ROOT.'/adherents/class/adherent_type.class.php'; | |
| 88 | 88 | $memberstatic = new Adherent($this->db); | 
| 89 | 89 | $statictype = new AdherentType($this->db); | 
| 90 | 90 | |
| @@ -100,8 +100,8 @@ discard block | ||
| 100 | 100 | $numb = 0; | 
| 101 | 101 | |
| 102 | 102 | $sql = "SELECT c.subscription, c.dateadh as dateh"; | 
| 103 | - $sql .= " FROM " . MAIN_DB_PREFIX . "adherent as d, " . MAIN_DB_PREFIX . "subscription as c"; | |
| 104 | -			$sql .= " WHERE d.entity IN (" . getEntity('adherent') . ")"; | |
| 103 | + $sql .= " FROM ".MAIN_DB_PREFIX."adherent as d, ".MAIN_DB_PREFIX."subscription as c"; | |
| 104 | +			$sql .= " WHERE d.entity IN (".getEntity('adherent').")"; | |
| 105 | 105 | $sql .= " AND d.rowid = c.fk_adherent"; | 
| 106 | 106 | |
| 107 | 107 | |
| @@ -216,7 +216,7 @@ discard block | ||
| 216 | 216 | $this->info_box_contents[0][0] = array( | 
| 217 | 217 | 'td' => '', | 
| 218 | 218 | 'maxlength' => 500, | 
| 219 | - 'text' => ($this->db->error() . ' sql=' . $sql), | |
| 219 | + 'text' => ($this->db->error().' sql='.$sql), | |
| 220 | 220 | ); | 
| 221 | 221 | } | 
| 222 | 222 |  		} else { | 
| @@ -100,7 +100,7 @@ | ||
| 100 | 100 |  				while ($line < $num) { | 
| 101 | 101 | $objp = $this->db->fetch_object($result); | 
| 102 | 102 | $date = $this->db->jdate($objp->date_movement); | 
| 103 | - $journal = $objp->code_journal; | |
| 103 | + $journal = $objp->code_journal; | |
| 104 | 104 | $label = $objp->label_operation; | 
| 105 | 105 | $amount = $objp->amount; | 
| 106 | 106 | |
| @@ -43,7 +43,7 @@ | ||
| 43 | 43 | * View | 
| 44 | 44 | */ | 
| 45 | 45 | |
| 46 | -$form = new Form($db); // $form is required as global value into dol_banner_tab | |
| 46 | +$form = new Form($db); // $form is required as global value into dol_banner_tab | |
| 47 | 47 | |
| 48 | 48 |  llxHeader('', $langs->trans("CronInfo")); | 
| 49 | 49 | |
| @@ -286,19 +286,19 @@ | ||
| 286 | 286 | |
| 287 | 287 | // sort list | 
| 288 | 288 |  if ($sortfield == "name" && $sortorder == "asc") { | 
| 289 | -	usort($moduleList, function (stdClass $a, stdClass $b) { | |
| 289 | +	usort($moduleList, function(stdClass $a, stdClass $b) { | |
| 290 | 290 | return strcasecmp($a->name, $b->name); | 
| 291 | 291 | }); | 
| 292 | 292 |  } elseif ($sortfield == "name" && $sortorder == "desc") { | 
| 293 | -	usort($moduleList, function (stdClass $a, stdClass $b) { | |
| 293 | +	usort($moduleList, function(stdClass $a, stdClass $b) { | |
| 294 | 294 | return strcasecmp($b->name, $a->name); | 
| 295 | 295 | }); | 
| 296 | 296 |  } elseif ($sortfield == "version" && $sortorder == "asc") { | 
| 297 | -	usort($moduleList, function (stdClass $a, stdClass $b) { | |
| 297 | +	usort($moduleList, function(stdClass $a, stdClass $b) { | |
| 298 | 298 | return strcasecmp($a->version, $b->version); | 
| 299 | 299 | }); | 
| 300 | 300 |  } elseif ($sortfield == "version" && $sortorder == "desc") { | 
| 301 | -	usort($moduleList, function (stdClass $a, stdClass $b) { | |
| 301 | +	usort($moduleList, function(stdClass $a, stdClass $b) { | |
| 302 | 302 | return strcasecmp($b->version, $a->version); | 
| 303 | 303 | }); | 
| 304 | 304 |  } elseif ($sortfield == "id" && $sortorder == "asc") { | 
| @@ -469,7 +469,7 @@ | ||
| 469 | 469 | $object->fetch($obj->rowid); | 
| 470 | 470 | $object->id = $obj->rowid; | 
| 471 | 471 | |
| 472 | - $action = 'anonymize'; // TODO Offer also action "delete" in setup of module | |
| 472 | + $action = 'anonymize'; // TODO Offer also action "delete" in setup of module | |
| 473 | 473 | |
| 474 | 474 |  						if ($action == 'anonymize') { | 
| 475 | 475 |  							if ($object->isObjectUsed($obj->rowid) == 0) {			// If object to clean is used |