77 *
88 * This content is released under the MIT License (MIT)
99 *
10- * Copyright (c) 2014 - 2017, British Columbia Institute of Technology
10+ * Copyright (c) 2014- 2017 British Columbia Institute of Technology
1111 *
1212 * Permission is hereby granted, free of charge, to any person obtaining a copy
1313 * of this software and associated documentation files (the "Software"), to deal
2727 * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
2828 * THE SOFTWARE.
2929 *
30- * @package CodeIgniter
31- * @author CodeIgniter Dev Team
32- * @copyright Copyright (c) 2014 - 2017, British Columbia Institute of Technology (http ://bcit.ca/)
33- * @license https://opensource.org/licenses/MIT MIT License
34- * @link https://codeigniter.com
35- * @since Version 3.0.0
30+ * @package CodeIgniter
31+ * @author CodeIgniter Dev Team
32+ * @copyright 2014- 2017 British Columbia Institute of Technology (https ://bcit.ca/)
33+ * @license https://opensource.org/licenses/MIT MIT License
34+ * @link https://codeigniter.com
35+ * @since Version 3.0.0
3636 * @filesource
3737 */
38-
3938use Psr \Log \LoggerInterface ;
4039
4140/**
4948 */
5049abstract class BaseCommand
5150{
51+
5252 /**
5353 * The group the command is lumped under
5454 * when listing commands.
@@ -161,7 +161,8 @@ protected function showError(\Exception $e)
161161 */
162162 public function __get (string $ key )
163163 {
164- if (isset ($ this ->$ key )) {
164+ if (isset ($ this ->$ key ))
165+ {
165166 return $ this ->$ key ;
166167 }
167168 }
@@ -189,7 +190,7 @@ public function showHelp()
189190
190191 $ pad = max ($ this ->getPad ($ this ->options , 6 ), $ this ->getPad ($ this ->arguments , 6 ));
191192
192- if (! empty ($ this ->arguments ))
193+ if ( ! empty ($ this ->arguments ))
193194 {
194195 CLI ::write (lang ('CLI.helpArguments ' ), 'yellow ' );
195196 foreach ($ this ->arguments as $ argument => $ description )
@@ -199,7 +200,7 @@ public function showHelp()
199200 CLI ::newLine ();
200201 }
201202
202- if (! empty ($ this ->options ))
203+ if ( ! empty ($ this ->options ))
203204 {
204205 CLI ::write (lang ('CLI.helpOptions ' ), 'yellow ' );
205206 foreach ($ this ->options as $ option => $ description )
@@ -223,12 +224,12 @@ public function showHelp()
223224 public function getPad ($ array , string $ pad )
224225 {
225226 $ max = 0 ;
226- foreach ($ array as $ key => $ value ) {
227+ foreach ($ array as $ key => $ value )
228+ {
227229 $ max = max ($ max , strlen ($ key ));
228230 }
229231 return $ max + $ pad ;
230232 }
231233
232-
233234 //--------------------------------------------------------------------
234235}
0 commit comments