Browse Source

Merge pull request #3316 from bcrowe/hotfix-controller-template

Add newline after actions in controller template
José Lorenzo Rodríguez 12 years ago
parent
commit
b9b1e85ff2
1 changed files with 3 additions and 1 deletions
  1. 3 1
      lib/Cake/Console/Templates/default/classes/controller.ctp

+ 3 - 1
lib/Cake/Console/Templates/default/classes/controller.ctp

@@ -74,7 +74,9 @@ class <?php echo $controllerName; ?>Controller extends <?php echo $plugin; ?>App
 		echo ");\n\n";
 	endif;
 
-	echo trim($actions);
+	if (!empty($actions)) {
+		echo trim($actions) . "\n";
+	}
 
 endif; ?>
 }