@@ -11,7 +11,7 @@ discard block |
||
| 11 | 11 | { |
| 12 | 12 | use DumperTrait; |
| 13 | 13 | |
| 14 | - public function __construct(array $options = []) |
|
| 14 | + public function __construct(array $options = [ ]) |
|
| 15 | 15 | { |
| 16 | 16 | foreach ($options as $option => $value) { |
| 17 | 17 | if (property_exists($this, $option)) { |
@@ -22,7 +22,7 @@ discard block |
||
| 22 | 22 | /** |
| 23 | 23 | * @return $this |
| 24 | 24 | */ |
| 25 | - public static function create(array $options = []) |
|
| 25 | + public static function create(array $options = [ ]) |
|
| 26 | 26 | { |
| 27 | 27 | return new static($options); |
| 28 | 28 | } |
@@ -136,9 +136,9 @@ discard block |
||
| 136 | 136 | { |
| 137 | 137 | switch (strtolower($this->getDumperClassName())) { |
| 138 | 138 | case 'mysqldumper': |
| 139 | - $ignoreTablesArgs = []; |
|
| 139 | + $ignoreTablesArgs = [ ]; |
|
| 140 | 140 | foreach ($this->ignoreTables as $tableName) { |
| 141 | - $ignoreTablesArgs[] = "--ignore-table={$this->dbName}.{$tableName}"; |
|
| 141 | + $ignoreTablesArgs[ ] = "--ignore-table={$this->dbName}.{$tableName}"; |
|
| 142 | 142 | } |
| 143 | 143 | return (count($ignoreTablesArgs) > 0) ? implode(' ', $ignoreTablesArgs) : ''; |
| 144 | 144 | break; |
@@ -21,9 +21,9 @@ discard block |
||
| 21 | 21 | /*@var int*/ |
| 22 | 22 | protected $timeout = 0; |
| 23 | 23 | /*@var array*/ |
| 24 | - protected $tables = []; |
|
| 24 | + protected $tables = [ ]; |
|
| 25 | 25 | /*@var array*/ |
| 26 | - protected $ignoreTables = []; |
|
| 26 | + protected $ignoreTables = [ ]; |
|
| 27 | 27 | /*@var string*/ |
| 28 | 28 | protected $destinationPath = 'dump.sql'; |
| 29 | 29 | /*@var string*/ |
@@ -99,7 +99,7 @@ discard block |
||
| 99 | 99 | } |
| 100 | 100 | |
| 101 | 101 | if (is_string($tables)) { |
| 102 | - $tables = [$tables]; |
|
| 102 | + $tables = [ $tables ]; |
|
| 103 | 103 | } |
| 104 | 104 | |
| 105 | 105 | $this->tables = $tables; |
@@ -118,7 +118,7 @@ discard block |
||
| 118 | 118 | } |
| 119 | 119 | |
| 120 | 120 | if (is_string($tables)) { |
| 121 | - $tables = [$tables]; |
|
| 121 | + $tables = [ $tables ]; |
|
| 122 | 122 | } |
| 123 | 123 | |
| 124 | 124 | $this->ignoreTables = $tables; |