summaryrefslogtreecommitdiff
path: root/src/Database
diff options
context:
space:
mode:
Diffstat (limited to 'src/Database')
-rw-r--r--src/Database/DatabaseServiceProvider.php4
-rw-r--r--src/Database/Db.php2
2 files changed, 4 insertions, 2 deletions
diff --git a/src/Database/DatabaseServiceProvider.php b/src/Database/DatabaseServiceProvider.php
index 364816cc..49fb4af5 100644
--- a/src/Database/DatabaseServiceProvider.php
+++ b/src/Database/DatabaseServiceProvider.php
@@ -12,7 +12,9 @@ class DatabaseServiceProvider extends ServiceProvider
{
$config = $this->app->get('config');
Db::connect(
- 'mysql:host=' . $config->get('database')['host'] . ';dbname=' . $config->get('database')['db'] . ';charset=utf8',
+ 'mysql:host=' . $config->get('database')['host']
+ . ';dbname=' . $config->get('database')['db']
+ . ';charset=utf8',
$config->get('database')['user'],
$config->get('database')['pw']
) || $this->exitOnError();
diff --git a/src/Database/Db.php b/src/Database/Db.php
index 7042998f..114bd8fc 100644
--- a/src/Database/Db.php
+++ b/src/Database/Db.php
@@ -71,7 +71,7 @@ class Db
*
* @param string $query
* @param array $bindings
- * @return array
+ * @return array[]
*/
public static function select($query, array $bindings = [])
{