Completed
Branch master (7af779)
by Julius
03:11 queued 55s
created
lib/Util.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -47,7 +47,7 @@
 block discarded – undo
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))
Please login to merge, or discard this patch.
lib/Controller/AppController.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -52,14 +52,14 @@
 block discarded – undo
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);
Please login to merge, or discard this patch.
tests/unit/controller/SettingsControllerTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -30,7 +30,7 @@
 block discarded – undo
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;
Please login to merge, or discard this patch.
tests/bootstrap.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -21,11 +21,11 @@
 block discarded – undo
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
 }
Please login to merge, or discard this patch.
lib/AppInfo/Application.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -31,7 +31,7 @@
 block discarded – undo
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')
Please login to merge, or discard this patch.