Skip to content

Commit

Permalink
removing extra newline in baked files
Browse files Browse the repository at this point in the history
  • Loading branch information
rchavik committed Jan 20, 2013
1 parent e8647d7 commit 622d2f0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/Cake/Console/Command/Task/PluginTask.php
Expand Up @@ -147,15 +147,15 @@ public function bake($plugin) {
$out = "<?php\n\n";
$out .= "App::uses('AppController', 'Controller');\n\n";
$out .= "class {$plugin}AppController extends AppController {\n\n";
$out .= "}\n\n";
$out .= "}\n";
$this->createFile($this->path . $plugin . DS . 'Controller' . DS . $controllerFileName, $out);

$modelFileName = $plugin . 'AppModel.php';

$out = "<?php\n\n";
$out .= "App::uses('AppModel', 'Model');\n\n";
$out .= "class {$plugin}AppModel extends AppModel {\n\n";
$out .= "}\n\n";
$out .= "}\n";
$this->createFile($this->path . $plugin . DS . 'Model' . DS . $modelFileName, $out);

$this->_modifyBootstrap($plugin);
Expand Down

0 comments on commit 622d2f0

Please sign in to comment.