Browse Source

Fixing coding styles.

mark_story 12 years ago
parent
commit
8106318d7a
2 changed files with 3 additions and 2 deletions
  1. 1 0
      src/View/Form/EntityContext.php
  2. 2 2
      tests/TestCase/View/Form/EntityContextTest.php

+ 1 - 0
src/View/Form/EntityContext.php

@@ -155,6 +155,7 @@ class EntityContext {
  *
  * @param array $path The path to traverse to find the leaf entity.
  * @return array
+ * @throws \RuntimeException When properties cannot be read.
  */
 	protected function _getEntity($path) {
 		$entity = $this->_context['entity'];

+ 2 - 2
tests/TestCase/View/Form/EntityContextTest.php

@@ -14,6 +14,8 @@
  */
 namespace Cake\Test\TestCase\View\Form;
 
+use ArrayIterator;
+use ArrayObject;
 use Cake\Collection\Collection;
 use Cake\Network\Request;
 use Cake\ORM\Entity;
@@ -22,8 +24,6 @@ use Cake\ORM\TableRegistry;
 use Cake\TestSuite\TestCase;
 use Cake\Validation\Validator;
 use Cake\View\Form\EntityContext;
-use ArrayIterator;
-use ArrayObject;
 
 /**
  * Test stub.