Completed
Push — master ( 84255c...a7d7e4 )
by Thomas
14:38
created
src/installer/DelegateInstaller.php 2 patches
Unused Use Statements   -3 removed lines patch added patch discarded remove patch
@@ -1,9 +1,6 @@
 block discarded – undo
1 1
 <?php
2 2
 namespace keeko\core\installer;
3 3
 
4
-use Composer\DependencyResolver\Operation\InstallOperation;
5
-use Composer\DependencyResolver\Operation\UninstallOperation;
6
-use Composer\DependencyResolver\Operation\UpdateOperation;
7 4
 use Composer\Package\PackageInterface;
8 5
 use Composer\Script\PackageEvent;
9 6
 
Please login to merge, or discard this patch.
Switch Indentation   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -59,14 +59,14 @@
 block discarded – undo
59 59
 	 */
60 60
 	private function getInstaller(PackageInterface $package) {
61 61
 		switch ($package->getType()) {
62
-			case 'keeko-app':
63
-				return new AppInstaller();
62
+		case 'keeko-app':
63
+			return new AppInstaller();
64 64
 				
65
-			case 'keeko-module':
66
-				return new ModuleInstaller();
65
+		case 'keeko-module':
66
+			return new ModuleInstaller();
67 67
 				
68
-			default:
69
-				return new DummyInstaller();
68
+		default:
69
+			return new DummyInstaller();
70 70
 		}
71 71
 	}
72 72
 	
Please login to merge, or discard this patch.
src/installer/AbstractPackageInstaller.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -34,7 +34,7 @@
 block discarded – undo
34 34
 
35 35
 	abstract public function uninstall(IOInterface $io, $packageName);
36 36
 
37
-	protected function updatePackage(Package &$model, KeekoPackageSchema $pkg) {
37
+	protected function updatePackage(Package & $model, KeekoPackageSchema $pkg) {
38 38
 		$packageName = $pkg->getPackage()->getFullName();
39 39
 		$result = PackageQuery::create()->filterByName($packageName)->count();
40 40
 		$info = $this->service->getPackageManager()->getComposerPackage($packageName);
Please login to merge, or discard this patch.
src/installer/ModuleInstaller.php 1 patch
Switch Indentation   +17 added lines, -17 removed lines patch added patch discarded remove patch
@@ -153,23 +153,23 @@
 block discarded – undo
153 153
 	 */
154 154
 	private function getGroup($name) {
155 155
 		switch ($name) {
156
-			case 'guest':
157
-				if ($this->guestGroup === null) {
158
-					$this->guestGroup = GroupQuery::create()->filterByIsGuest(true)->findOne();
159
-				}
160
-				return $this->guestGroup;
161
-	
162
-			case 'user':
163
-				if ($this->userGroup === null) {
164
-					$this->userGroup = GroupQuery::create()->filterByIsDefault(true)->findOne();
165
-				}
166
-				return $this->userGroup;
167
-	
168
-			case 'admin':
169
-				if ($this->adminGroup === null) {
170
-					$this->adminGroup = GroupQuery::create()->findOneById(3);
171
-				}
172
-				return $this->adminGroup;
156
+		case 'guest':
157
+			if ($this->guestGroup === null) {
158
+				$this->guestGroup = GroupQuery::create()->filterByIsGuest(true)->findOne();
159
+			}
160
+			return $this->guestGroup;
161
+	
162
+		case 'user':
163
+			if ($this->userGroup === null) {
164
+				$this->userGroup = GroupQuery::create()->filterByIsDefault(true)->findOne();
165
+			}
166
+			return $this->userGroup;
167
+	
168
+		case 'admin':
169
+			if ($this->adminGroup === null) {
170
+				$this->adminGroup = GroupQuery::create()->findOneById(3);
171
+			}
172
+			return $this->adminGroup;
173 173
 		}
174 174
 	}
175 175
 	
Please login to merge, or discard this patch.
src/service/ServiceContainer.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -196,7 +196,7 @@
 block discarded – undo
196 196
 		
197 197
 			// firewall
198 198
 			$firewall = $this->getServiceContainer()->getFirewall();
199
-			$this->twig->addFunction(new Twig_SimpleFunction('hasPermission', function ($module, $action) use ($firewall) {
199
+			$this->twig->addFunction(new Twig_SimpleFunction('hasPermission', function($module, $action) use ($firewall) {
200 200
 				return $firewall->hasPermission($module, $action);
201 201
 			}));
202 202
 		}
Please login to merge, or discard this patch.
src/package/ModuleManager.php 1 patch
Switch Indentation   +15 added lines, -15 removed lines patch added patch discarded remove patch
@@ -238,23 +238,23 @@
 block discarded – undo
238 238
 	 */
239 239
 	private function getGroup($name) {
240 240
 		switch ($name) {
241
-			case 'guest':
242
-				if ($this->guestGroup === null) {
243
-					$this->guestGroup = GroupQuery::create()->filterByIsGuest(true)->findOne();
244
-				}
245
-				return $this->guestGroup;
241
+		case 'guest':
242
+			if ($this->guestGroup === null) {
243
+				$this->guestGroup = GroupQuery::create()->filterByIsGuest(true)->findOne();
244
+			}
245
+			return $this->guestGroup;
246 246
 
247
-			case 'user':
248
-				if ($this->userGroup === null) {
249
-					$this->userGroup = GroupQuery::create()->filterByIsDefault(true)->findOne();
250
-				}
251
-				return $this->userGroup;
247
+		case 'user':
248
+			if ($this->userGroup === null) {
249
+				$this->userGroup = GroupQuery::create()->filterByIsDefault(true)->findOne();
250
+			}
251
+			return $this->userGroup;
252 252
 				
253
-			case 'admin':
254
-				if ($this->adminGroup === null) {
255
-					$this->adminGroup = GroupQuery::create()->findOneById(3);
256
-				}
257
-				return $this->adminGroup;
253
+		case 'admin':
254
+			if ($this->adminGroup === null) {
255
+				$this->adminGroup = GroupQuery::create()->findOneById(3);
256
+			}
257
+			return $this->adminGroup;
258 258
 		}
259 259
 	}
260 260
 
Please login to merge, or discard this patch.