Fix formatting and interfaces in nearly every file

This commit is contained in:
Nabeel Shahzad
2018-03-19 20:50:40 -05:00
parent 04c5b9e7bf
commit ccf56ddec1
331 changed files with 3282 additions and 2492 deletions

View File

@@ -2,7 +2,7 @@
namespace App\Console\Services;
use Doctrine\DBAL\Driver\PDOException;
use PDOException;
use PDO;
/**
@@ -13,16 +13,16 @@ class Database
{
/**
* Create the base connection DSN, optionally include the DB name
* @param $host
* @param $port
* @param $host
* @param $port
* @param null $name
* @return string
*/
public function createDsn($host, $port, $name=null)
public function createDsn($host, $port, $name = null)
{
$conn = config('database.default');
$dsn = "$conn:host=$host;port=$port";
if(filled($name)) {
if (filled($name)) {
$dsn .= ';dbname='.$name;
}