mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-01-31 17:16:18 +00:00
Fix coding standards warnings.
This commit is contained in:
parent
38b7ae3c67
commit
ff35762e92
2 changed files with 10 additions and 8 deletions
|
@ -43,10 +43,11 @@ class ThemePosts2Controller extends Controller {
|
|||
* @return void
|
||||
*/
|
||||
public function index() {
|
||||
$this->set('testData', 'Some test data');
|
||||
$test2 = 'more data';
|
||||
$test3 = 'even more data';
|
||||
$this->set(compact('test2', 'test3'));
|
||||
$this->set(array(
|
||||
'testData' => 'Some test data',
|
||||
'test2' => 'more data',
|
||||
'test3' => 'even more data',
|
||||
));
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -51,10 +51,11 @@ class ViewPostsController extends Controller {
|
|||
* @return void
|
||||
*/
|
||||
public function index() {
|
||||
$this->set('testData', 'Some test data');
|
||||
$test2 = 'more data';
|
||||
$test3 = 'even more data';
|
||||
$this->set(compact('test2', 'test3'));
|
||||
$this->set(array(
|
||||
'testData' => 'Some test data',
|
||||
'test2' => 'more data',
|
||||
'test3' => 'even more data',
|
||||
));
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Add table
Reference in a new issue