@@ -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*/ |
@@ -101,7 +101,7 @@ discard block |
||
101 | 101 | } |
102 | 102 | |
103 | 103 | if (is_string($tables)) { |
104 | - $tables = [$tables]; |
|
104 | + $tables = [ $tables ]; |
|
105 | 105 | } |
106 | 106 | |
107 | 107 | if (!is_array($tables)) { |
@@ -124,7 +124,7 @@ discard block |
||
124 | 124 | } |
125 | 125 | |
126 | 126 | if (is_string($tables)) { |
127 | - $tables = [$tables]; |
|
127 | + $tables = [ $tables ]; |
|
128 | 128 | } |
129 | 129 | |
130 | 130 | if (!is_array($tables)) { |
@@ -85,7 +85,7 @@ |
||
85 | 85 | $this->tempFile = tempnam(sys_get_temp_dir(), 'pgsqlpass'); |
86 | 86 | $handler = fopen($this->tempFile, 'r+'); |
87 | 87 | fwrite($handler, $credentials); |
88 | - $env = ['PGPASSFILE' => $this->tempFile]; |
|
88 | + $env = [ 'PGPASSFILE' => $this->tempFile ]; |
|
89 | 89 | $process = $this->prepareProcessCommand($this->command); |
90 | 90 | if ($this->debug) { |
91 | 91 | $process->mustRun(null, $env); |
@@ -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 | } |
@@ -143,9 +143,9 @@ discard block |
||
143 | 143 | { |
144 | 144 | switch (strtolower($this->getClassName())) { |
145 | 145 | case 'mysqldumper': |
146 | - $ignoreTablesArgs = []; |
|
146 | + $ignoreTablesArgs = [ ]; |
|
147 | 147 | foreach ($this->ignoreTables as $tableName) { |
148 | - $ignoreTablesArgs[] = "--ignore-table={$this->dbName}.{$tableName}"; |
|
148 | + $ignoreTablesArgs[ ] = "--ignore-table={$this->dbName}.{$tableName}"; |
|
149 | 149 | } |
150 | 150 | $ignoreTablesArg = (count($ignoreTablesArgs) > 0) ? implode(' ', $ignoreTablesArgs) : ''; |
151 | 151 | break; |