Minor - format code

pull/2487/head
jmontoyaa 8 years ago
parent fbfeca9fb5
commit 44f4bf0244
  1. 10
      main/inc/lib/database.lib.php

@ -373,7 +373,6 @@ class Database
public static function query($query) public static function query($query)
{ {
$connection = self::getManager()->getConnection(); $connection = self::getManager()->getConnection();
if (api_get_setting('server_type') == 'test') { if (api_get_setting('server_type') == 'test') {
$result = $connection->executeQuery($query); $result = $connection->executeQuery($query);
} else { } else {
@ -528,8 +527,13 @@ class Database
* @param string $option * @param string $option
* @return array * @return array
*/ */
public static function select($columns, $table_name, $conditions = array(), $type_result = 'all', $option = 'ASSOC') public static function select(
{ $columns,
$table_name,
$conditions = array(),
$type_result = 'all',
$option = 'ASSOC'
) {
$conditions = self::parse_conditions($conditions); $conditions = self::parse_conditions($conditions);
//@todo we could do a describe here to check the columns ... //@todo we could do a describe here to check the columns ...

Loading…
Cancel
Save