Use new code style

This commit is contained in:
David Stone
2025-02-07 19:02:33 -07:00
parent 0181024ae1
commit 8433379d90
672 changed files with 37107 additions and 45249 deletions

View File

@ -47,21 +47,16 @@ abstract class Table extends \BerlinDB\Database\Table {
*/
public function is_upgradeable() {
if (!is_main_network()) {
if ( ! is_main_network()) {
return false;
}
} // end if;
if (!is_main_site()) {
if ( ! is_main_site()) {
return false;
} // end if;
}
return true;
} // end is_upgradeable;
}
/**
* Adds a caching layer to the parent exists method.
@ -72,13 +67,9 @@ abstract class Table extends \BerlinDB\Database\Table {
public function exists() {
if ($this->_exists === null) {
$this->_exists = parent::exists();
} // end if;
}
return $this->_exists;
} // end exists;
} // end class Table;
}
}