mirror of
https://github.com/Oreolek/kohana-migrations.git
synced 2024-06-26 03:40:54 +03:00
Merge pull request #34 from EvanPurkhiser/template-CS-corrections
Template coding standards corrections
This commit is contained in:
commit
3d412dd2aa
3
classes/minion/task/migrations/new.php
Normal file → Executable file
3
classes/minion/task/migrations/new.php
Normal file → Executable file
|
@ -87,7 +87,8 @@ class Minion_Task_Migrations_New extends Minion_Task
|
||||||
$file = $this->_generate_filename($location, $group, $time, $description);
|
$file = $this->_generate_filename($location, $group, $time, $description);
|
||||||
|
|
||||||
|
|
||||||
$data = Kohana::FILE_SECURITY.View::factory('minion/task/migrations/new/template')
|
$data = Kohana::FILE_SECURITY.PHP_EOL.
|
||||||
|
View::factory('minion/task/migrations/new/template')
|
||||||
->set('class', $class)
|
->set('class', $class)
|
||||||
->set('description', $description)
|
->set('description', $description)
|
||||||
->set('up', $up)
|
->set('up', $up)
|
||||||
|
|
5
views/minion/task/migrations/new/template.php
Normal file → Executable file
5
views/minion/task/migrations/new/template.php
Normal file → Executable file
|
@ -1,3 +1,4 @@
|
||||||
|
|
||||||
<?php if(!empty($description)): ?>
|
<?php if(!empty($description)): ?>
|
||||||
/**
|
/**
|
||||||
* <?php echo $description.PHP_EOL; ?>
|
* <?php echo $description.PHP_EOL; ?>
|
||||||
|
@ -8,7 +9,7 @@ class <?php echo $class; ?> extends Minion_Migration_Base {
|
||||||
/**
|
/**
|
||||||
* Run queries needed to apply this migration
|
* Run queries needed to apply this migration
|
||||||
*
|
*
|
||||||
* @param Kohana_Database Database connection
|
* @param Kohana_Database $db Database connection
|
||||||
*/
|
*/
|
||||||
public function up(Kohana_Database $db)
|
public function up(Kohana_Database $db)
|
||||||
{
|
{
|
||||||
|
@ -23,7 +24,7 @@ class <?php echo $class; ?> extends Minion_Migration_Base {
|
||||||
/**
|
/**
|
||||||
* Run queries needed to remove this migration
|
* Run queries needed to remove this migration
|
||||||
*
|
*
|
||||||
* @param Kohana_Database Database connection
|
* @param Kohana_Database $db Database connection
|
||||||
*/
|
*/
|
||||||
public function down(Kohana_Database $db)
|
public function down(Kohana_Database $db)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue