From 67d4494f25e633ec174c27a913c2917f9fb11ea8 Mon Sep 17 00:00:00 2001 From: Christoph Kappestein Date: Tue, 18 Apr 2017 10:39:03 +0200 Subject: [PATCH] fix coding style --- bin/fusio | 22 +++++++--------------- 1 file changed, 7 insertions(+), 15 deletions(-) diff --git a/bin/fusio b/bin/fusio index 2a0b6b04..3ac9703b 100644 --- a/bin/fusio +++ b/bin/fusio @@ -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'); }