@@ -12,7 +12,7 @@ discard block |
||
12 | 12 | { |
13 | 13 | use DumperTrait, PrepareOptionsTrait; |
14 | 14 | |
15 | - public function __construct(array $options = []) |
|
15 | + public function __construct(array $options = [ ]) |
|
16 | 16 | { |
17 | 17 | foreach ($options as $option => $value) { |
18 | 18 | if (property_exists($this, $option)) { |
@@ -23,7 +23,7 @@ discard block |
||
23 | 23 | /** |
24 | 24 | * @return $this |
25 | 25 | */ |
26 | - public static function create(array $options = []) |
|
26 | + public static function create(array $options = [ ]) |
|
27 | 27 | { |
28 | 28 | return new static($options); |
29 | 29 | } |
@@ -68,9 +68,9 @@ |
||
68 | 68 | { |
69 | 69 | switch (strtolower($this->getDumperClassName())) { |
70 | 70 | case 'mysqldumper': |
71 | - $ignoreTablesArgs = []; |
|
71 | + $ignoreTablesArgs = [ ]; |
|
72 | 72 | foreach ($this->ignoreTables as $tableName) { |
73 | - $ignoreTablesArgs[] = "--ignore-table={$this->dbName}.{$tableName}"; |
|
73 | + $ignoreTablesArgs[ ] = "--ignore-table={$this->dbName}.{$tableName}"; |
|
74 | 74 | } |
75 | 75 | return (count($ignoreTablesArgs) > 0) ? implode(' ', $ignoreTablesArgs) : ''; |
76 | 76 | case 'pgsqldumper'; |
@@ -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*/ |
@@ -92,7 +92,7 @@ discard block |
||
92 | 92 | throw new \Exception("You can choose only once between tables and ignoreTables at a time"); |
93 | 93 | } |
94 | 94 | if (is_string($tables)) { |
95 | - $tables = [$tables]; |
|
95 | + $tables = [ $tables ]; |
|
96 | 96 | } |
97 | 97 | $this->tables = $tables; |
98 | 98 | return $this; |
@@ -107,7 +107,7 @@ discard block |
||
107 | 107 | throw new \Exception("You can choose only once between tables and ignoreTables at a time"); |
108 | 108 | } |
109 | 109 | if (is_string($tables)) { |
110 | - $tables = [$tables]; |
|
110 | + $tables = [ $tables ]; |
|
111 | 111 | } |
112 | 112 | $this->ignoreTables = $tables; |
113 | 113 | return $this; |