ソースを参照

Fix for psr2-r

Jad Bitar 11 年 前
コミット
29cf8f683d

+ 7 - 4
tests/TestApp/Model/Entity/SluggedArticle.php

@@ -4,10 +4,13 @@ namespace TestApp\Model\Entity;
 
 use Cake\ORM\Entity;
 
-class SluggedArticle extends Entity
-{
-	protected function _getSpecial()
-	{
+class SluggedArticle extends Entity {
+	/**
+	 * Virtual field
+	 *
+	 * @return string
+	 */
+	protected function _getSpecial() {
 		return 'dereuromark';
 	}
 }

+ 1 - 2
tests/TestCase/Model/Behavior/SluggedBehaviorTest.php

@@ -589,8 +589,7 @@ class SluggedBehaviorTest extends TestCase {
 	 *
 	 * @return void
 	 */
-	public function testSlugGenerationWithVirualField()
-	{
+	public function testSlugGenerationWithVirualField() {
 		$this->articles->removeBehavior('Slugged');
 		$this->articles->entityClass('\TestApp\Model\Entity\SluggedArticle');
 		$this->articles->addBehavior('Tools.Slugged', [