Browse Source

Remove semicolons from short echos in bake templates

Bryan Crowe 11 years ago
parent
commit
b80d4fb71d

+ 1 - 1
src/Template/Bake/default/views/form.ctp

@@ -43,7 +43,7 @@ $fields = collection($fields)
 <div class="<?= $pluralVar ?> form large-10 medium-9 columns">
 <?= "<?= \$this->Form->create(\${$singularVar}) ?>\n" ?>
 	<fieldset>
-		<legend><?= sprintf("<?= __('%s %s'); ?>", Inflector::humanize($action), $singularHumanName) ?></legend>
+		<legend><?= sprintf("<?= __('%s %s') ?>", Inflector::humanize($action), $singularHumanName) ?></legend>
 <?php
 		echo "\t<?php\n";
 		foreach ($fields as $field) {

+ 1 - 1
src/Template/Bake/default/views/view.ctp

@@ -51,7 +51,7 @@ $groupedFields = collection($fields)
 $groupedFields += ['number' => [], 'string' => [], 'boolean' => [], 'date' => [], 'text' => []];
 ?>
 <div class="actions columns large-2 medium-3">
-	<h3><?= "<?= __('Actions'); ?>"; ?></h3>
+	<h3><?= "<?= __('Actions') ?>" ?></h3>
 	<ul class="side-nav">
 <?php
 	$pk = "\${$singularVar}->{$primaryKey[0]}";