Skip to content
Permalink
Browse files

Fix PHPCS warnings.

  • Loading branch information...
markstory committed Jul 10, 2014
1 parent 42cdf10 commit bd497e47030769e56ebdf289004cb9e90706777f
Showing with 4 additions and 2 deletions.
  1. +3 −1 src/Datasource/EntityTrait.php
  2. +1 −1 tests/TestCase/ORM/EntityTest.php
@@ -610,8 +610,10 @@ protected function _nestedErrors($field) {
}
$entity = $this;
while (count($path)) {
$len = count($path);
while ($len) {
$part = array_shift($path);
$len = count($path);
if ($entity instanceof static) {
$val = $entity->get($part);
} elseif (is_array($entity)) {
@@ -831,7 +831,7 @@ public function testErrorsDeep() {
*/
public function testErrorPathReading() {
$assoc = new Entity;
$entity= new Entity([
$entity = new Entity([
'field' => 'value',
'one' => $assoc,
'many' => [$assoc]

0 comments on commit bd497e4

Please sign in to comment.
You can’t perform that action at this time.