| @@ -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 | |
| @@ -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 = array(); | |
| 203 | + case 'table' : $result = array(); | |
| 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 | |
| @@ -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 | |
| @@ -81,7 +81,7 @@ | ||
| 81 | 81 |              $bits = preg_split('/\-{5,}/', $info); | 
| 82 | 82 |              $versions = explode("\n", trim($bits[1])); | 
| 83 | 83 | usort($versions, 'version_compare'); | 
| 84 | -            array_walk($versions, function (&$value) { | |
| 84 | +            array_walk($versions, function(&$value) { | |
| 85 | 85 | $value = array($value); | 
| 86 | 86 | }); | 
| 87 | 87 | $this->out(array(array( | 
| @@ -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 | |