@@ -173,8 +173,7 @@ discard block |
||
173 | 173 | } |
174 | 174 | foreach ($messages as $message) { |
175 | 175 | switch (isset($message['type']) ? $message['type'] : false) { |
176 | - case 'table': |
|
177 | - $tableHelper = new Table($this->output); |
|
176 | + case 'table' : $tableHelper = new Table($this->output); |
|
178 | 177 | $tableHelper |
179 | 178 | ->setHeaders($message['data'][0]) |
180 | 179 | ->setRows($message['data'][1]) |
@@ -201,8 +200,7 @@ discard block |
||
201 | 200 | } else { |
202 | 201 | foreach ($messages as $message) { |
203 | 202 | switch (isset($message['type']) ? $message['type'] : false) { |
204 | - case 'table': |
|
205 | - $result = []; |
|
203 | + case 'table' : $result = []; |
|
206 | 204 | $headers = $message['data'][0]; |
207 | 205 | array_map('strtolower', $headers); |
208 | 206 | foreach ($message['data'][1] as $row) { |
@@ -1,16 +1,16 @@ |
||
1 | 1 | <?php |
2 | 2 | /** |
3 | - * Magedownload CLI |
|
4 | - * |
|
5 | - * PHP version 5 |
|
6 | - * |
|
7 | - * @category MageDownload |
|
8 | - * @package MageDownload |
|
9 | - * @author Steve Robbins <[email protected]> |
|
10 | - * @copyright 2015 Steve Robbins |
|
11 | - * @license http://creativecommons.org/licenses/by/4.0/ CC BY 4.0 |
|
12 | - * @link https://github.com/steverobbins/magedownload-cli |
|
13 | - */ |
|
3 | + * Magedownload CLI |
|
4 | + * |
|
5 | + * PHP version 5 |
|
6 | + * |
|
7 | + * @category MageDownload |
|
8 | + * @package MageDownload |
|
9 | + * @author Steve Robbins <[email protected]> |
|
10 | + * @copyright 2015 Steve Robbins |
|
11 | + * @license http://creativecommons.org/licenses/by/4.0/ CC BY 4.0 |
|
12 | + * @link https://github.com/steverobbins/magedownload-cli |
|
13 | + */ |
|
14 | 14 | |
15 | 15 | require_once __DIR__ . '/../vendor/autoload.php'; |
16 | 16 |
@@ -84,7 +84,7 @@ discard block |
||
84 | 84 | if ($filters) { |
85 | 85 | $action = 'filter'; |
86 | 86 | } |
87 | - $info = new Info; |
|
87 | + $info = new Info; |
|
88 | 88 | $result = $info->sendCommand( |
89 | 89 | $action . $filters, |
90 | 90 | $this->getAccountId(), |
@@ -195,7 +195,7 @@ discard block |
||
195 | 195 | $bits = preg_split('/\-{5,}/', $info); |
196 | 196 | $versions = explode("\n", trim($bits[1])); |
197 | 197 | usort($versions, 'version_compare'); |
198 | - array_walk($versions, function (&$value) { |
|
198 | + array_walk($versions, function(&$value) { |
|
199 | 199 | $value = [$value]; |
200 | 200 | }); |
201 | 201 | $this->out([[ |
@@ -1,16 +1,16 @@ |
||
1 | 1 | <?php |
2 | 2 | /** |
3 | - * Magedownload CLI |
|
4 | - * |
|
5 | - * PHP version 5 |
|
6 | - * |
|
7 | - * @category MageDownload |
|
8 | - * @package MageDownload |
|
9 | - * @author Steve Robbins <[email protected]> |
|
10 | - * @copyright 2015 Steve Robbins |
|
11 | - * @license http://creativecommons.org/licenses/by/4.0/ CC BY 4.0 |
|
12 | - * @link https://github.com/steverobbins/magedownload-cli |
|
13 | - */ |
|
3 | + * Magedownload CLI |
|
4 | + * |
|
5 | + * PHP version 5 |
|
6 | + * |
|
7 | + * @category MageDownload |
|
8 | + * @package MageDownload |
|
9 | + * @author Steve Robbins <[email protected]> |
|
10 | + * @copyright 2015 Steve Robbins |
|
11 | + * @license http://creativecommons.org/licenses/by/4.0/ CC BY 4.0 |
|
12 | + * @link https://github.com/steverobbins/magedownload-cli |
|
13 | + */ |
|
14 | 14 | |
15 | 15 | require_once __DIR__ . '/../vendor/autoload.php'; |
16 | 16 |
@@ -1,16 +1,16 @@ |
||
1 | 1 | <?php |
2 | 2 | /** |
3 | - * Magedownload CLI |
|
4 | - * |
|
5 | - * PHP version 5 |
|
6 | - * |
|
7 | - * @category MageDownload |
|
8 | - * @package MageDownload |
|
9 | - * @author Steve Robbins <[email protected]> |
|
10 | - * @copyright 2015 Steve Robbins |
|
11 | - * @license http://creativecommons.org/licenses/by/4.0/ CC BY 4.0 |
|
12 | - * @link https://github.com/steverobbins/magedownload-cli |
|
13 | - */ |
|
3 | + * Magedownload CLI |
|
4 | + * |
|
5 | + * PHP version 5 |
|
6 | + * |
|
7 | + * @category MageDownload |
|
8 | + * @package MageDownload |
|
9 | + * @author Steve Robbins <[email protected]> |
|
10 | + * @copyright 2015 Steve Robbins |
|
11 | + * @license http://creativecommons.org/licenses/by/4.0/ CC BY 4.0 |
|
12 | + * @link https://github.com/steverobbins/magedownload-cli |
|
13 | + */ |
|
14 | 14 | |
15 | 15 | require_once __DIR__ . '/../vendor/autoload.php'; |
16 | 16 |
@@ -1,16 +1,16 @@ |
||
1 | 1 | <?php |
2 | 2 | /** |
3 | - * Magedownload CLI |
|
4 | - * |
|
5 | - * PHP version 5 |
|
6 | - * |
|
7 | - * @category MageDownload |
|
8 | - * @package MageDownload |
|
9 | - * @author Steve Robbins <[email protected]> |
|
10 | - * @copyright 2015 Steve Robbins |
|
11 | - * @license http://creativecommons.org/licenses/by/4.0/ CC BY 4.0 |
|
12 | - * @link https://github.com/steverobbins/magedownload-cli |
|
13 | - */ |
|
3 | + * Magedownload CLI |
|
4 | + * |
|
5 | + * PHP version 5 |
|
6 | + * |
|
7 | + * @category MageDownload |
|
8 | + * @package MageDownload |
|
9 | + * @author Steve Robbins <[email protected]> |
|
10 | + * @copyright 2015 Steve Robbins |
|
11 | + * @license http://creativecommons.org/licenses/by/4.0/ CC BY 4.0 |
|
12 | + * @link https://github.com/steverobbins/magedownload-cli |
|
13 | + */ |
|
14 | 14 | |
15 | 15 | require_once __DIR__ . '/../vendor/autoload.php'; |
16 | 16 |
@@ -1,16 +1,16 @@ |
||
1 | 1 | <?php |
2 | 2 | /** |
3 | - * Magedownload CLI |
|
4 | - * |
|
5 | - * PHP version 5 |
|
6 | - * |
|
7 | - * @category MageDownload |
|
8 | - * @package MageDownload |
|
9 | - * @author Steve Robbins <[email protected]> |
|
10 | - * @copyright 2015 Steve Robbins |
|
11 | - * @license http://creativecommons.org/licenses/by/4.0/ CC BY 4.0 |
|
12 | - * @link https://github.com/steverobbins/magedownload-cli |
|
13 | - */ |
|
3 | + * Magedownload CLI |
|
4 | + * |
|
5 | + * PHP version 5 |
|
6 | + * |
|
7 | + * @category MageDownload |
|
8 | + * @package MageDownload |
|
9 | + * @author Steve Robbins <[email protected]> |
|
10 | + * @copyright 2015 Steve Robbins |
|
11 | + * @license http://creativecommons.org/licenses/by/4.0/ CC BY 4.0 |
|
12 | + * @link https://github.com/steverobbins/magedownload-cli |
|
13 | + */ |
|
14 | 14 | |
15 | 15 | require_once __DIR__ . '/../vendor/autoload.php'; |
16 | 16 |