Browse Source

begin getting back to 0 fails

inline properties to minimize test changes. If it's desired in the
future, can add it back
AD7six 11 years ago
parent
commit
7a043de921

+ 2 - 2
src/Template/Bake/Controller/controller.ctp

@@ -35,8 +35,8 @@ use <%= $namespace %>\Controller\AppController;
  */
 class <%= $name %>Controller extends AppController {
 <%
-echo $this->Bake->arrayProperty('helpers', $helpers);
-echo $this->Bake->arrayProperty('components', $components);
+echo $this->Bake->arrayProperty('helpers', $helpers, ['indent' => false]);
+echo $this->Bake->arrayProperty('components', $components, ['indent' => false]);
 echo $actions;
 %>
 

+ 1 - 1
src/Template/Bake/Element/array_property.ctp

@@ -7,4 +7,4 @@ use Cake\Utility\Inflector;
  *
  * @var array
  */
-	public $<%= $name %> = [<%= $this->Bake->stringifyList($value) %>];
+	public $<%= $name %> = [<%= $this->Bake->stringifyList($value, ['indent' => false]) %>];

+ 1 - 1
src/Template/Bake/Layout/default.ctp

@@ -13,4 +13,4 @@
  * @license       http://www.opensource.org/licenses/mit-license.php MIT License
  */
 %>
-<%= $this->fetch('content') %>
+<%= $this->fetch('content');