Completed
Push — master ( f0b491...11ee78 )
by Thomas
09:37
created
src/installer/AbstractPackageInstaller.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -37,7 +37,7 @@  discard block
 block discarded – undo
37 37
 
38 38
 	abstract public function uninstall(IOInterface $io, $packageName);
39 39
 
40
-	protected function updatePackage(Package &$model, KeekoPackageSchema $pkg) {
40
+	protected function updatePackage(Package & $model, KeekoPackageSchema $pkg) {
41 41
 		$packageName = $pkg->getPackage()->getFullName();
42 42
 		$result = PackageQuery::create()->filterByName($packageName)->count();
43 43
 		$info = $this->service->getPackageManager()->getComposerPackage($packageName);
@@ -57,7 +57,7 @@  discard block
 block discarded – undo
57 57
 		return $this->service->getPackageManager()->getPackage($packageName);
58 58
 	}
59 59
 	
60
-	protected function updateExtensions(Package &$model, KeekoPackageSchema $pkg) {
60
+	protected function updateExtensions(Package & $model, KeekoPackageSchema $pkg) {
61 61
 		// remove all existing extensions from this package first
62 62
 		ExtensionQuery::create()->filterByPackage($model)->deleteAll();
63 63
 		
Please login to merge, or discard this patch.
src/installer/ModuleInstaller.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.
src/model/Extension.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -14,7 +14,6 @@
 block discarded – undo
14 14
  * long as it does not already exist in the output directory.
15 15
  *
16 16
  */
17
-class Extension extends BaseExtension
18
-{
17
+class Extension extends BaseExtension {
19 18
 
20 19
 }
Please login to merge, or discard this patch.
src/model/ExtensionQuery.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -14,7 +14,6 @@
 block discarded – undo
14 14
  * long as it does not already exist in the output directory.
15 15
  *
16 16
  */
17
-class ExtensionQuery extends BaseExtensionQuery
18
-{
17
+class ExtensionQuery extends BaseExtensionQuery {
19 18
 
20 19
 }
Please login to merge, or discard this patch.
src/model/serializer/GroupSerializer.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -49,7 +49,7 @@
 block discarded – undo
49 49
 		// attributes
50 50
 		$attribs = isset($data['attributes']) ? $data['attributes'] : [];
51 51
 		
52
-		$model = HydrateUtils::hydrate($attribs, $model, ['login_name', 'password' => function ($v) {
52
+		$model = HydrateUtils::hydrate($attribs, $model, ['login_name', 'password' => function($v) {
53 53
 			return password_hash($v, PASSWORD_BCRYPT);
54 54
 		}, 'given_name', 'family_name', 'display_name', 'email', 'birthday', 'sex']);
55 55
 		
Please login to merge, or discard this patch.
src/model/serializer/UserSerializer.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -42,7 +42,7 @@
 block discarded – undo
42 42
 		// attributes
43 43
 		$attribs = isset($data['attributes']) ? $data['attributes'] : [];
44 44
 		
45
-		$user = HydrateUtils::hydrate($attribs, $model, ['login_name', 'password' => function ($v) {
45
+		$user = HydrateUtils::hydrate($attribs, $model, ['login_name', 'password' => function($v) {
46 46
 			return password_hash($v, PASSWORD_BCRYPT);
47 47
 		}, 'given_name', 'family_name', 'display_name', 'email', 'birthday', 'sex']);
48 48
 
Please login to merge, or discard this patch.