@@ -73,45 +73,45 @@ |
||
73 | 73 | ]; |
74 | 74 | |
75 | 75 | if (!empty($this->dbName)) { |
76 | - $options['database'] = $this->dbName; |
|
76 | + $options[ 'database' ] = $this->dbName; |
|
77 | 77 | } |
78 | 78 | |
79 | 79 | if ($this->socket !== '') { |
80 | - $options['socket'] = "--socket={$this->socket}"; |
|
80 | + $options[ 'socket' ] = "--socket={$this->socket}"; |
|
81 | 81 | } |
82 | 82 | |
83 | 83 | if ($this->skipComments) { |
84 | - $options['skipComments'] = '--skip-comments'; |
|
84 | + $options[ 'skipComments' ] = '--skip-comments'; |
|
85 | 85 | } |
86 | 86 | |
87 | 87 | if (!$this->createTables) { |
88 | - $options['createTables'] = '--no-create-info'; |
|
88 | + $options[ 'createTables' ] = '--no-create-info'; |
|
89 | 89 | } |
90 | 90 | |
91 | 91 | if ($this->singleTransaction) { |
92 | - $options['singleTransaction'] = '--single-transaction'; |
|
92 | + $options[ 'singleTransaction' ] = '--single-transaction'; |
|
93 | 93 | } |
94 | 94 | |
95 | 95 | if ($this->skipLockTables) { |
96 | - $options['skipLockTables'] = '--skip-lock-tables'; |
|
96 | + $options[ 'skipLockTables' ] = '--skip-lock-tables'; |
|
97 | 97 | } |
98 | 98 | |
99 | 99 | if ($this->quick) { |
100 | - $options['quick'] = '--quick'; |
|
100 | + $options[ 'quick' ] = '--quick'; |
|
101 | 101 | } |
102 | 102 | |
103 | 103 | if ($this->defaultCharacterSet) { |
104 | - $options['defaultCharacterSet'] = '--default-character-set=' . $this->defaultCharacterSet; |
|
104 | + $options[ 'defaultCharacterSet' ] = '--default-character-set=' . $this->defaultCharacterSet; |
|
105 | 105 | } |
106 | 106 | |
107 | 107 | if (count($this->tables) > 0) { |
108 | - $options['tables'] = '--tables ' . implode(' ', $this->tables); |
|
108 | + $options[ 'tables' ] = '--tables ' . implode(' ', $this->tables); |
|
109 | 109 | } |
110 | 110 | // Ignore Tables |
111 | - $ignoreTables = []; |
|
111 | + $ignoreTables = [ ]; |
|
112 | 112 | foreach ($this->ignoreTables as $tableName) { |
113 | - $ignoreTables[] = "--ignore-table={$this->dbName}.{$tableName}"; |
|
114 | - $options['ignoreTables'] = implode(' ', $ignoreTables); |
|
113 | + $ignoreTables[ ] = "--ignore-table={$this->dbName}.{$tableName}"; |
|
114 | + $options[ 'ignoreTables' ] = implode(' ', $ignoreTables); |
|
115 | 115 | } |
116 | 116 | |
117 | 117 | // Dump command |