Add curly braces

This commit is contained in:
Romain Neutron
2012-04-26 01:55:12 +02:00
parent ade22295ad
commit 33b10d6746
86 changed files with 2969 additions and 2698 deletions

View File

@@ -255,10 +255,11 @@ class record_exportElement extends record_adapter
*/
public function get_size($name = false)
{
if ($name)
if ($name) {
return $this->size[$name];
else
} else {
return $this->size;
}
}
/**

View File

@@ -196,8 +196,9 @@ class record_preview extends record_adapter
public function get_train($pos = 0, $query = '', searchEngine_adapter $search_engine = null)
{
if ($this->train)
if ($this->train) {
return $this->train;
}
switch ($this->env) {
case 'RESULT':
@@ -257,8 +258,9 @@ class record_preview extends record_adapter
*/
public function get_title($highlight = '', searchEngine_adapter $search_engine = null)
{
if ($this->title)
if ($this->title) {
return $this->title;
}
$this->title = collection::getLogo($this->get_base_id()) . ' ';