Skip to content

Commit

Permalink
prevent excessive whitespace
Browse files Browse the repository at this point in the history
only need one newline between each method
  • Loading branch information
AD7six committed Nov 14, 2014
1 parent 1a65725 commit 4d2e5d2
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 10 deletions.
1 change: 0 additions & 1 deletion src/Template/Bake/Controller/Action/add.ctp
Expand Up @@ -13,7 +13,6 @@
* @license http://www.opensource.org/licenses/mit-license.php MIT License
*/
%>

<% $compact = ["'" . $singularName . "'"]; %>
/**
* Add method
Expand Down
1 change: 0 additions & 1 deletion src/Template/Bake/Controller/Action/delete.ctp
Expand Up @@ -13,7 +13,6 @@
* @license http://www.opensource.org/licenses/mit-license.php MIT License
*/
%>

/**
* Delete method
*
Expand Down
1 change: 0 additions & 1 deletion src/Template/Bake/Controller/Action/edit.ctp
Expand Up @@ -16,7 +16,6 @@
$belongsTo = $this->Bake->aliasExtractor($modelObj, 'belongsTo');
$belongsToMany = $this->Bake->aliasExtractor($modelObj, 'belongsToMany');
%>

<% $compact = ["'" . $singularName . "'"]; %>
/**
* Edit method
Expand Down
1 change: 0 additions & 1 deletion src/Template/Bake/Controller/Action/index.ctp
Expand Up @@ -13,7 +13,6 @@
* @license http://www.opensource.org/licenses/mit-license.php MIT License
*/
%>

/**
* Index method
*
Expand Down
1 change: 0 additions & 1 deletion src/Template/Bake/Controller/Action/view.ctp
Expand Up @@ -19,7 +19,6 @@ $allAssociations = array_merge(
$this->Bake->aliasExtractor($modelObj, 'HasMany')
);
%>

/**
* View method
*
Expand Down
11 changes: 6 additions & 5 deletions src/Template/Bake/Controller/actions.ctp
@@ -1,5 +1,6 @@
<%= $this->render('/Controller/Action/index') %>
<%= $this->render('/Controller/Action/view') %>
<%= $this->render('/Controller/Action/add') %>
<%= $this->render('/Controller/Action/edit') %>
<%= $this->render('/Controller/Action/delete') %>
<%
$actions = ['index', 'view', 'add', 'edit', 'delete'];
foreach($actions as $action) {
$out[] = trim($this->render('/Controller/Action/' . $action, false));
}
echo implode("\n\n", $out);

0 comments on commit 4d2e5d2

Please sign in to comment.