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

@@ -76,8 +76,9 @@ abstract class base implements cache_cacheableInterface
*/
public function get_schema()
{
if ($this->schema)
if ($this->schema) {
return $this->schema;
}
$this->load_schema();
@@ -223,9 +224,9 @@ abstract class base implements cache_cacheableInterface
public function get_version()
{
if ($this->version)
if ($this->version) {
return $this->version;
}
$version = '0.0.0';
@@ -251,10 +252,11 @@ abstract class base implements cache_cacheableInterface
public function upgradeavailable()
{
if ($this->get_version())
if ($this->get_version()) {
return version_compare(\Alchemy\Phrasea\Core\Version::getNumber(), $this->get_version(), '>');
else
} else {
return true;
}
}
protected function upgradeDb($apply_patches, Setup_Upgrade &$upgrader)
@@ -375,8 +377,9 @@ abstract class base implements cache_cacheableInterface
*/
protected function load_schema()
{
if ($this->schema)
if ($this->schema) {
return $this;
}
$structure = simplexml_load_file(__DIR__ . "/../../lib/conf.d/bases_structure.xml");