Code style fixes
This commit is contained in:
parent
0868eb9c69
commit
6891b8a75f
87 changed files with 598 additions and 603 deletions
|
|
@ -34,7 +34,7 @@ class Sqlite implements \PHPCI\Plugin
|
|||
/**
|
||||
* @var array
|
||||
*/
|
||||
protected $queries = array();
|
||||
protected $queries = [];
|
||||
|
||||
/**
|
||||
* @var string
|
||||
|
|
@ -46,7 +46,7 @@ class Sqlite implements \PHPCI\Plugin
|
|||
* @param Build $build
|
||||
* @param array $options
|
||||
*/
|
||||
public function __construct(Builder $phpci, Build $build, array $options = array())
|
||||
public function __construct(Builder $phpci, Build $build, array $options = [])
|
||||
{
|
||||
$this->phpci = $phpci;
|
||||
$this->build = $build;
|
||||
|
|
@ -66,8 +66,8 @@ class Sqlite implements \PHPCI\Plugin
|
|||
public function execute()
|
||||
{
|
||||
try {
|
||||
$opts = array(PDO::ATTR_ERRMODE => PDO::ERRMODE_EXCEPTION);
|
||||
$pdo = new PDO('sqlite:' . $this->path, $opts);
|
||||
$opts = [PDO::ATTR_ERRMODE => PDO::ERRMODE_EXCEPTION];
|
||||
$pdo = new PDO('sqlite:' . $this->path, $opts);
|
||||
|
||||
foreach ($this->queries as $query) {
|
||||
$pdo->query($this->phpci->interpolate($query));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue