Skip to content

Commit

Permalink
Merge pull request #26 from bluzphp/develop
Browse files Browse the repository at this point in the history
Migrate for 7.6.1
  • Loading branch information
Anton authored Jul 28, 2017
2 parents e00902a + b4be854 commit 269b600
Show file tree
Hide file tree
Showing 7 changed files with 8 additions and 14 deletions.
2 changes: 1 addition & 1 deletion src/Command/Db/AbstractDbCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ protected function execute(InputInterface $input, OutputInterface $output)
}

$phinxArguments['command'] = $commandName;
$phinxArguments['--configuration'] = PATH_APPLICATION . DS . 'configs' . DS . 'phinx.php';
$phinxArguments['--configuration'] = PATH_APPLICATION .DS. 'configs' .DS. 'phinx.php';

if ($command->getDefinition()->hasOption('environment')) {
$phinxArguments['--environment'] = 'default';
Expand Down
2 changes: 1 addition & 1 deletion src/Command/Module/InstallCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ protected function execute(InputInterface $input, OutputInterface $output)

$arguments = [
'command' => 'require',
'packages' => ['bluzphp/module-' . $input->getArgument('module')]
'packages' => ['bluzphp/module-'. $input->getArgument('module')]
];

// call `composer install` command programmatically
Expand Down
2 changes: 1 addition & 1 deletion src/Command/Module/RemoveCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ protected function execute(InputInterface $input, OutputInterface $output)

$arguments = [
'command' => 'remove',
'packages' => ['bluzphp/module-' . $input->getArgument('module')]
'packages' => ['bluzphp/module-'. $input->getArgument('module')]
];

// call `composer install` command programmatically
Expand Down
4 changes: 2 additions & 2 deletions src/Command/TestCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ protected function execute(InputInterface $input, OutputInterface $output)
// call `codeception run` command programmatically
$arguments = [
'run',
'--config ' . PATH_ROOT . DS . 'codeception.yml'
'--config '. PATH_ROOT .DS. 'codeception.yml'
];

if ($group = $input->getArgument('module')) {
Expand All @@ -68,7 +68,7 @@ protected function execute(InputInterface $input, OutputInterface $output)
protected function getCodeceptionApplication()
{
// @todo need refactoring this part - move functions to separate files
require_once PATH_VENDOR . DS . 'codeception' . DS . 'codeception' . DS . 'autoload.php';
require_once PATH_VENDOR .DS. 'codeception' .DS. 'codeception' .DS. 'autoload.php';

$app = new Codeception\Application('Codeception', Codeception\Codecept::VERSION);
$app->add(new Codeception\Command\Run('run'));
Expand Down
4 changes: 1 addition & 3 deletions src/Generator/views/controllers/crud.phtml
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,7 @@ return function () {
/**
* @var Controller $this
*/
$crud = new Crud();

$crud->setCrud(<?=$model?>\Crud::getInstance());
$crud = new Crud(<?=$model?>\Crud::getInstance());

$crud->get('system', 'crud/get');
$crud->post('system', 'crud/post');
Expand Down
4 changes: 1 addition & 3 deletions src/Generator/views/controllers/rest.phtml
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,7 @@ return function () {
/**
* @var Controller $this
*/
$rest = new Rest();

$rest->setCrud(<?=$model?>\Crud::getInstance());
$rest = new Rest(<?=$model?>\Crud::getInstance());

$rest->head('system', 'rest/head', 'Read');
$rest->get('system', 'rest/get', 'Read');
Expand Down
4 changes: 1 addition & 3 deletions tests/Generator/samples/rest.html
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,7 @@
/**
* @var Controller $this
*/
$rest = new Rest();

$rest->setCrud(Users\Crud::getInstance());
$rest = new Rest(Users\Crud::getInstance());

$rest->head('system', 'rest/head', 'Read');
$rest->get('system', 'rest/get', 'Read');
Expand Down

0 comments on commit 269b600

Please sign in to comment.