@@ -47,7 +47,7 @@ |
||
| 47 | 47 | foreach ($nav as $app) |
| 48 | 48 | $nav_tmp[$app['href']] = $app; |
| 49 | 49 | foreach ($order as $app) |
| 50 | - if(array_key_exists($app, $nav_tmp)) |
|
| 50 | + if (array_key_exists($app, $nav_tmp)) |
|
| 51 | 51 | $result[$app] = $nav_tmp[$app]; |
| 52 | 52 | foreach ($nav as $app) |
| 53 | 53 | if (!array_key_exists($app['href'], $result)) |
@@ -52,14 +52,14 @@ |
||
| 52 | 52 | */ |
| 53 | 53 | public function index() { |
| 54 | 54 | $order = json_decode($this->util->getAppOrder()); |
| 55 | - if($order !== null && sizeof($order)>0) { |
|
| 55 | + if ($order !== null && sizeof($order) > 0) { |
|
| 56 | 56 | $firstPage = $order[0]; |
| 57 | 57 | } else { |
| 58 | 58 | $appId = 'files'; |
| 59 | - if(getenv('front_controller_active') === 'true') { |
|
| 60 | - $firstPage = $this->urlGenerator->getAbsoluteURL('/apps/' . $appId . '/'); |
|
| 59 | + if (getenv('front_controller_active') === 'true') { |
|
| 60 | + $firstPage = $this->urlGenerator->getAbsoluteURL('/apps/'.$appId.'/'); |
|
| 61 | 61 | } else { |
| 62 | - $firstPage = $this->urlGenerator->getAbsoluteURL('/index.php/apps/' . $appId . '/'); |
|
| 62 | + $firstPage = $this->urlGenerator->getAbsoluteURL('/index.php/apps/'.$appId.'/'); |
|
| 63 | 63 | } |
| 64 | 64 | } |
| 65 | 65 | return new RedirectResponse($firstPage); |
@@ -30,7 +30,7 @@ |
||
| 30 | 30 | use OCP\INavigationManager; |
| 31 | 31 | use OCP\IRequest; |
| 32 | 32 | |
| 33 | -class SettingsControllerTest extends \PHPUnit_Framework_TestCase { |
|
| 33 | +class SettingsControllerTest extends \PHPUnit_Framework_TestCase { |
|
| 34 | 34 | |
| 35 | 35 | /** @var IRequest */ |
| 36 | 36 | private $request; |
@@ -21,11 +21,11 @@ |
||
| 21 | 21 | * |
| 22 | 22 | */ |
| 23 | 23 | |
| 24 | -require_once __DIR__ . '/../../../tests/bootstrap.php'; |
|
| 25 | -require_once __DIR__ . '/../appinfo/autoload.php'; |
|
| 24 | +require_once __DIR__.'/../../../tests/bootstrap.php'; |
|
| 25 | +require_once __DIR__.'/../appinfo/autoload.php'; |
|
| 26 | 26 | |
| 27 | 27 | |
| 28 | -require_once __DIR__ . '/../../../lib/base.php'; |
|
| 28 | +require_once __DIR__.'/../../../lib/base.php'; |
|
| 29 | 29 | if (!class_exists('PHPUnit_Framework_TestCase')) { |
| 30 | 30 | require_once('PHPUnit/Autoload.php'); |
| 31 | 31 | } |
@@ -31,7 +31,7 @@ |
||
| 31 | 31 | public function __construct(array $urlParams = array()) { |
| 32 | 32 | parent::__construct('apporder', $urlParams); |
| 33 | 33 | $container = $this->getContainer(); |
| 34 | - $container->registerService('ConfigService', function ($c) { |
|
| 34 | + $container->registerService('ConfigService', function($c) { |
|
| 35 | 35 | return new ConfigService( |
| 36 | 36 | $c->query('Config'), |
| 37 | 37 | $c->query('AppName') |