Browse Source

Fixing psr-2 stuff

Patrick Conroy 11 years ago
parent
commit
b4f6dcf679

+ 1 - 1
src/ORM/Behavior/TranslateBehavior.php

@@ -112,7 +112,7 @@ class TranslateBehavior extends Behavior
      * @param string $table the table name to use for storing each field translation
      * @param string $model the model field value
      * @param string $strategy the strategy used in the _i18n association
-     * 
+     *
      * @return void
      */
     public function setupFieldAssociations($fields, $table, $model, $strategy)

+ 6 - 5
tests/TestCase/ORM/Behavior/TranslateBehaviorTest.php

@@ -78,10 +78,11 @@ class TranslateBehaviorTest extends TestCase
 
     /**
      * Tests that custom translation tables are respected
-     * 
+     *
      * @return void
      */
-    public function testCustomTranslationTable() {
+    public function testCustomTranslationTable()
+    {
         $table = TableRegistry::get('Articles');
 
         $table->addBehavior('Translate', [
@@ -99,10 +100,11 @@ class TranslateBehaviorTest extends TestCase
 
     /**
      * Tests that the strategy can be changed for i18n
-     * 
+     *
      * @return void
      */
-    public function testStrategy() {
+    public function testStrategy()
+    {
         $table = TableRegistry::get('Articles');
 
         $table->addBehavior('Translate', [
@@ -966,5 +968,4 @@ class TranslateBehaviorTest extends TestCase
         $results = $table->find('translations')->all();
         $this->assertCount(1, $results);
     }
-
 }