Completed
Push — master ( 415b34...7ef068 )
by Thomas
13:10 queued 06:22
created
src/model/RegionTypeQuery.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 RegionTypeQuery extends BaseRegionTypeQuery
18
-{
17
+class RegionTypeQuery extends BaseRegionTypeQuery {
19 18
 
20 19
 }
Please login to merge, or discard this patch.
src/model/SessionQuery.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 SessionQuery extends BaseSessionQuery
18
-{
17
+class SessionQuery extends BaseSessionQuery {
19 18
 
20 19
 }
Please login to merge, or discard this patch.
src/model/User.php 1 patch
Indentation   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -43,7 +43,7 @@  discard block
 block discarded – undo
43 43
 		$obj->setVerb($options['verb']);
44 44
 		$obj->setObject($this->getActivityObject($options['object']));
45 45
 		if (isset($options['target'])) {
46
-		    $obj->setTarget($this->getActivityObject($options['target']));
46
+			$obj->setTarget($this->getActivityObject($options['target']));
47 47
 		}
48 48
 		$obj->save();
49 49
 	}
@@ -54,15 +54,15 @@  discard block
 block discarded – undo
54 54
 	private function findActivityObject(ActivityObject $ao) {
55 55
 		$q = ActivityObjectQuery::create()->filterByClassName($ao->getClassName())->filterByType($ao->getType())->filterByReferenceId($ao->getId());
56 56
 		if (method_exists($ao, 'getVersion')) {
57
-		    $version = $ao->getVersion();
58
-		    if (!empty($version)) {
59
-		        $q = $q->filterByVersion($version);
60
-		    }
57
+			$version = $ao->getVersion();
58
+			if (!empty($version)) {
59
+				$q = $q->filterByVersion($version);
60
+			}
61 61
 		}
62 62
 		$result = $q->findOne();
63 63
 		if ($result) {
64
-		    $result->setDisplayName($ao->getDisplayName());
65
-		    return $result;
64
+			$result->setDisplayName($ao->getDisplayName());
65
+			return $result;
66 66
 		}
67 67
 		return $ao;
68 68
 	}
@@ -72,10 +72,10 @@  discard block
 block discarded – undo
72 72
 	 */
73 73
 	private function getActivityObject($obj) {
74 74
 		if ($obj instanceof ActivityObject) {
75
-		    return $obj;
75
+			return $obj;
76 76
 		}
77 77
 		if ($obj instanceof ActivityObjectInterface) {
78
-		    return $this->findActivityObject($obj->toActivityObject());
78
+			return $this->findActivityObject($obj->toActivityObject());
79 79
 		}
80 80
 	}
81 81
 }
Please login to merge, or discard this patch.
src/action/LocalizationLanguageVariantReadAction.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
 		$localization = LocalizationQuery::create()->findOneById($id);
31 31
 
32 32
 		if ($localization === null) {
33
-			throw new ResourceNotFoundException('Localization with id ' . $id . ' does not exist');
33
+			throw new ResourceNotFoundException('Localization with id '.$id.' does not exist');
34 34
 		}
35 35
 
36 36
 		// run response
Please login to merge, or discard this patch.
src/action/GroupUserReadAction.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
 		$group = GroupQuery::create()->findOneById($id);
31 31
 
32 32
 		if ($group === null) {
33
-			throw new ResourceNotFoundException('Group with id ' . $id . ' does not exist');
33
+			throw new ResourceNotFoundException('Group with id '.$id.' does not exist');
34 34
 		}
35 35
 
36 36
 		// run response
Please login to merge, or discard this patch.
src/action/ActionGroupReadAction.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
 		$action = ActionQuery::create()->findOneById($id);
31 31
 
32 32
 		if ($action === null) {
33
-			throw new ResourceNotFoundException('Action with id ' . $id . ' does not exist');
33
+			throw new ResourceNotFoundException('Action with id '.$id.' does not exist');
34 34
 		}
35 35
 
36 36
 		// run response
Please login to merge, or discard this patch.
src/action/UserGroupReadAction.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
 		$user = UserQuery::create()->findOneById($id);
31 31
 
32 32
 		if ($user === null) {
33
-			throw new ResourceNotFoundException('User with id ' . $id . ' does not exist');
33
+			throw new ResourceNotFoundException('User with id '.$id.' does not exist');
34 34
 		}
35 35
 
36 36
 		// run response
Please login to merge, or discard this patch.
src/domain/base/LocalizationDomainTrait.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -79,7 +79,7 @@
 block discarded – undo
79 79
 		// sorting
80 80
 		$sort = $params->getSort(Localization::getSerializer()->getSortFields());
81 81
 		foreach ($sort as $field => $order) {
82
-			$method = 'orderBy' . NameUtils::toStudlyCase($field);
82
+			$method = 'orderBy'.NameUtils::toStudlyCase($field);
83 83
 			$query->$method($order);
84 84
 		}
85 85
 
Please login to merge, or discard this patch.
src/serializer/base/ActivitySerializerTrait.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -19,7 +19,7 @@  discard block
 block discarded – undo
19 19
 		$serializer = User::getSerializer();
20 20
 		$relationship = new Relationship(new Resource($model->getActor(), $serializer));
21 21
 		$relationship->setLinks([
22
-			'related' => '%apiurl%' . $serializer->getType(null) . '/' . $serializer->getId($model)
22
+			'related' => '%apiurl%'.$serializer->getType(null).'/'.$serializer->getId($model)
23 23
 		]);
24 24
 		return $this->addRelationshipSelfLink($relationship, $model, $related);
25 25
 	}
@@ -98,7 +98,7 @@  discard block
 block discarded – undo
98 98
 		$serializer = ActivityObject::getSerializer();
99 99
 		$relationship = new Relationship(new Resource($model->getObject(), $serializer));
100 100
 		$relationship->setLinks([
101
-			'related' => '%apiurl%' . $serializer->getType(null) . '/' . $serializer->getId($model)
101
+			'related' => '%apiurl%'.$serializer->getType(null).'/'.$serializer->getId($model)
102 102
 		]);
103 103
 		return $this->addRelationshipSelfLink($relationship, $model, $related);
104 104
 	}
@@ -135,7 +135,7 @@  discard block
 block discarded – undo
135 135
 		$serializer = ActivityObject::getSerializer();
136 136
 		$relationship = new Relationship(new Resource($model->getTarget(), $serializer));
137 137
 		$relationship->setLinks([
138
-			'related' => '%apiurl%' . $serializer->getType(null) . '/' . $serializer->getId($model)
138
+			'related' => '%apiurl%'.$serializer->getType(null).'/'.$serializer->getId($model)
139 139
 		]);
140 140
 		return $this->addRelationshipSelfLink($relationship, $model, $related);
141 141
 	}
Please login to merge, or discard this patch.