Skip to content

Commit

Permalink
fix coding style
Browse files Browse the repository at this point in the history
  • Loading branch information
chriskapp committed Apr 18, 2017
1 parent 2f6a96c commit 67d4494
Showing 1 changed file with 7 additions and 15 deletions.
22 changes: 7 additions & 15 deletions bin/fusio
Original file line number Diff line number Diff line change
Expand Up @@ -27,35 +27,27 @@ $files = array(

$autoloadFile = null;

foreach($files as $file)
{
if(file_exists($file))
{
foreach ($files as $file) {
if (file_exists($file)) {
$autoloadFile = $file;
break;
}
}

if(!empty($autoloadFile))
{
if (!empty($autoloadFile)) {
require_once($autoloadFile);

$containerFile = strstr($autoloadFile, 'autoload.php', true) . '../container.php';
$containerFile = strstr($autoloadFile, 'autoload.php', true) . '../container.php';

if(is_file($containerFile))
{
if (is_file($containerFile)) {
$container = require_once($containerFile);

PSX\Framework\Bootstrap::setupEnvironment($container->get('config'));

$container->get('console')->run();
}
else
{
} else {
die('Could not find container at: ' . $containerFile);
}
}
else
{
} else {
die('You need to set up the project dependencies through composer');
}

0 comments on commit 67d4494

Please sign in to comment.