@@ -24,7 +24,7 @@ |
||
24 | 24 | 'version Show migration versions.' |
25 | 25 | ]); |
26 | 26 | $this->setDescr( |
27 | - '<<bold>>migrate<<reset>> command runs the migrations and shows its status.' . PHP_EOL |
|
27 | + '<<bold>>migrate<<reset>> command runs the migrations and shows its status.'.PHP_EOL |
|
28 | 28 | ); |
29 | 29 | } |
30 | 30 | } |
@@ -22,7 +22,7 @@ |
||
22 | 22 | 'migration <classname> Generate migration file skeleton', |
23 | 23 | ]); |
24 | 24 | $this->setDescr( |
25 | - '<<bold>>generate<<reset>> command generates code.' . PHP_EOL |
|
25 | + '<<bold>>generate<<reset>> command generates code.'.PHP_EOL |
|
26 | 26 | . ' eg, generate migration Create_user_table' |
27 | 27 | ); |
28 | 28 | } |
@@ -37,13 +37,13 @@ |
||
37 | 37 | |
38 | 38 | public function __get($property) |
39 | 39 | { |
40 | - if (! property_exists($this->ci, $property)) { |
|
40 | + if (!property_exists($this->ci, $property)) { |
|
41 | 41 | ob_start(); |
42 | 42 | var_dump(debug_backtrace()); |
43 | 43 | $backtrace = ob_get_clean(); |
44 | - file_put_contents(ROOTPATH . '/tmp/backtrace.log', $backtrace, LOCK_EX); |
|
44 | + file_put_contents(ROOTPATH.'/tmp/backtrace.log', $backtrace, LOCK_EX); |
|
45 | 45 | $this->stdio->errln( |
46 | - '<<red>>No such property: ' . $property . ' in CodeIgniter instance<<reset>>' |
|
46 | + '<<red>>No such property: '.$property.' in CodeIgniter instance<<reset>>' |
|
47 | 47 | ); |
48 | 48 | $this->stdio->errln('Backtrace was saved in tmp/backtrace.log'); |
49 | 49 | throw new RuntimeException('Property does not exist'); |
@@ -17,7 +17,7 @@ discard block |
||
17 | 17 | public static function registerCommandClasses(Container $di, $ci, array $paths) |
18 | 18 | { |
19 | 19 | foreach ($paths as $path) { |
20 | - foreach (glob($path . '*Command.php') as $file) { |
|
20 | + foreach (glob($path.'*Command.php') as $file) { |
|
21 | 21 | $classname = static::findClass($di, $file); |
22 | 22 | if ($classname === '') { |
23 | 23 | break; |
@@ -40,10 +40,10 @@ discard block |
||
40 | 40 | { |
41 | 41 | require_once $file; |
42 | 42 | $classname = basename($file, '.php'); |
43 | - if (! class_exists($classname)) { |
|
43 | + if (!class_exists($classname)) { |
|
44 | 44 | $stdio = $di->get('aura/cli-kernel:stdio'); |
45 | 45 | $stdio->errln( |
46 | - '<<red>>No such class: ' . $classname . ' in ' . $file . '<<reset>>' |
|
46 | + '<<red>>No such class: '.$classname.' in '.$file.'<<reset>>' |
|
47 | 47 | ); |
48 | 48 | return ''; |
49 | 49 | } |
@@ -55,7 +55,7 @@ discard block |
||
55 | 55 | ) |
56 | 56 | { |
57 | 57 | foreach ($paths as $path) { |
58 | - foreach (glob($path . '*Command.php') as $file) { |
|
58 | + foreach (glob($path.'*Command.php') as $file) { |
|
59 | 59 | $classname = static::findClass($di, $file); |
60 | 60 | if ($classname === '') { |
61 | 61 | break; |
@@ -68,7 +68,7 @@ discard block |
||
68 | 68 | ); |
69 | 69 | } |
70 | 70 | |
71 | - foreach (glob($path . '*CommandHelp.php') as $file) { |
|
71 | + foreach (glob($path.'*CommandHelp.php') as $file) { |
|
72 | 72 | $classname = static::findClass($di, $file); |
73 | 73 | if ($classname === '') { |
74 | 74 | break; |