Skip to content

Commit

Permalink
Fixing psr-2 and removing extra breaks
Browse files Browse the repository at this point in the history
  • Loading branch information
Patrick Conroy committed Jan 7, 2015
1 parent 1faac3e commit 8e1ddcd
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 4 deletions.
3 changes: 0 additions & 3 deletions src/ORM/Behavior/TranslateBehavior.php
Expand Up @@ -362,7 +362,6 @@ protected function _rowMapper($results, $locale)
$name = $field . '_translation';
$translation = isset($row[$name]) ? $row[$name] : null;


if ($translation === null || $translation === false) {
unset($row[$name]);
continue;
Expand Down Expand Up @@ -396,7 +395,6 @@ public function groupTranslations($results)
{
return $results->map(function ($row) {
$translations = (array)$row->get('_i18n');

$grouped = new Collection($translations);

$result = [];
Expand All @@ -413,7 +411,6 @@ public function groupTranslations($results)
$row->set('_translations', $result, $options);
unset($row['_i18n']);
$row->clean();

return $row;
});
}
Expand Down
1 change: 0 additions & 1 deletion tests/test_app/TestApp/Model/Table/I18nTable.php
Expand Up @@ -29,5 +29,4 @@ public static function defaultConnectionName()
{
return 'custom_i18n_datasource';
}

}

0 comments on commit 8e1ddcd

Please sign in to comment.