Permalink
Browse files

Fix coding standards warnings.

  • Loading branch information...
markstory committed Apr 7, 2012
1 parent 38b7ae3 commit ff35762e92505d028776c3ae5498b5981c772714
Showing with 10 additions and 8 deletions.
  1. +5 −4 lib/Cake/Test/Case/View/ThemeViewTest.php
  2. +5 −4 lib/Cake/Test/Case/View/ViewTest.php
@@ -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',
+ ));
}
/**

0 comments on commit ff35762

Please sign in to comment.