Browse Source

Fixed some typos

Jonathan Boyer 12 years ago
parent
commit
a8f0c51266

+ 1 - 1
src/Controller/Component/PaginatorComponent.php

@@ -311,7 +311,7 @@ class PaginatorComponent extends Component {
 		foreach ($options['order'] as $key => $value) {
 			$field = $key;
 			$alias = $tableAlias;
-			if (is_numeric($key)){
+			if (is_numeric($key)) {
 				$order[] = $value;
 			} else {
 				if (strpos($key, '.') !== false) {

+ 1 - 1
tests/TestCase/Controller/Component/PaginatorComponentTest.php

@@ -488,7 +488,7 @@ class PaginatorComponentTest extends TestCase {
 	}
 
 /**
- * test that string order are used by paginator
+ * Tests that order strings can used by Paginator
  *
  * @return void
  */