Skip to content

Commit 303bd7e

Browse files
author
Afonso Gloeden
committed
array() changed to []
1 parent 0340489 commit 303bd7e

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/Database/Connection.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -505,7 +505,7 @@ private function compileNewQuery($query, $bindings)
505505
return $newQuery;
506506
}
507507

508-
public function compileOffset($offset, $query, $bindings = array(), $me)
508+
public function compileOffset($offset, $query, $bindings = [], $me)
509509
{
510510
$limit = $this->queryGrammar->getBuilder()->limit;
511511
$from = explode(" ", $this->queryGrammar->getBuilder()->from)[0];
@@ -638,7 +638,7 @@ private function queryStringForPrimaries($from)
638638
* @param bool $useReadPdo
639639
* @return array
640640
*/
641-
public function select($query, $bindings = array(), $useReadPdo = true)
641+
public function select($query, $bindings = [], $useReadPdo = true)
642642
{
643643
return $this->run($query, $bindings, function (
644644
$query,
@@ -675,7 +675,7 @@ public function select($query, $bindings = array(), $useReadPdo = true)
675675
* @param mixed array $bindings
676676
* @return bool
677677
*/
678-
public function statement($query, $bindings = array())
678+
public function statement($query, $bindings = [])
679679
{
680680
return $this->run($query, $bindings, function ($query, $bindings) {
681681
if ($this->pretending()) {

src/Database/Query/Grammar.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ protected function compileOffset(Builder $query, $offset)
120120
public function compileTruncate(Builder $query)
121121
{
122122
return [
123-
'truncate table ' . $this->wrapTable($query->from) => array()
123+
'truncate table ' . $this->wrapTable($query->from) => []
124124
];
125125
}
126126

0 commit comments

Comments
 (0)