Skip to content

Commit

Permalink
Fix coding standards warnings.
Browse files Browse the repository at this point in the history
  • Loading branch information
markstory committed Apr 7, 2012
1 parent 38b7ae3 commit ff35762
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 8 deletions.
9 changes: 5 additions & 4 deletions lib/Cake/Test/Case/View/ThemeViewTest.php
Expand Up @@ -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',
));
}

}
Expand Down
9 changes: 5 additions & 4 deletions lib/Cake/Test/Case/View/ViewTest.php
Expand Up @@ -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',
));
}

/**
Expand Down

0 comments on commit ff35762

Please sign in to comment.