@@ -17,16 +17,14 @@ |
||
| 17 | 17 | |
| 18 | 18 | use App\Controller\AppController as BaseController; |
| 19 | 19 | |
| 20 | -class AppController extends BaseController |
|
| 21 | -{ |
|
| 20 | +class AppController extends BaseController { |
|
| 22 | 21 | |
| 23 | 22 | /** |
| 24 | 23 | * Initialize AppController |
| 25 | 24 | * |
| 26 | 25 | * @return void |
| 27 | 26 | */ |
| 28 | - public function initialize() |
|
| 29 | - { |
|
| 27 | + public function initialize() { |
|
| 30 | 28 | parent::initialize(); |
| 31 | 29 | $this->loadComponent('Flash'); |
| 32 | 30 | } |
@@ -18,11 +18,9 @@ |
||
| 18 | 18 | use Cake\Console\Shell; |
| 19 | 19 | use Cake\Console\Helper; |
| 20 | 20 | |
| 21 | -class TableHelper extends Helper |
|
| 22 | -{ |
|
| 21 | +class TableHelper extends Helper { |
|
| 23 | 22 | |
| 24 | - public function output($data, $columns = 10, $terminal_width = 80) |
|
| 25 | - { |
|
| 23 | + public function output($data, $columns = 10, $terminal_width = 80) { |
|
| 26 | 24 | while((count($data)%$columns != 0) && ($columns > 5)) { |
| 27 | 25 | $columns--; |
| 28 | 26 | } |
@@ -70,13 +70,13 @@ |
||
| 70 | 70 | * @param string $method |
| 71 | 71 | * @param string $path |
| 72 | 72 | */ |
| 73 | - public function call($method, $path, $params=array()) { |
|
| 73 | + public function call($method, $path, $params = array()) { |
|
| 74 | 74 | |
| 75 | 75 | if (!$this->_isReady()) { |
| 76 | 76 | return false; |
| 77 | 77 | } |
| 78 | 78 | |
| 79 | - if (!in_array($method, array('POST','PUT','GET','DELETE'))) { |
|
| 79 | + if (!in_array($method, array('POST', 'PUT', 'GET', 'DELETE'))) { |
|
| 80 | 80 | return false; |
| 81 | 81 | } |
| 82 | 82 | |
@@ -99,7 +99,7 @@ |
||
| 99 | 99 | |
| 100 | 100 | $this->out(''); |
| 101 | 101 | |
| 102 | - if (($first_run) || (strtolower($this->in('Update Database?', ['y', 'n'])) == 'y')) { |
|
| 102 | + if (($first_run) || (strtolower($this->in('Update Database?', ['y', 'n'])) == 'y')) { |
|
| 103 | 103 | |
| 104 | 104 | $this->out(''); |
| 105 | 105 | |