Passed
Push — master ( 6a14f8...ed2d6e )
by Morris
14:56 queued 12s
created
lib/public/AppFramework/Db/QBMapper.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -125,7 +125,7 @@  discard block
 block discarded – undo
125 125
 		// build the fields
126 126
 		foreach ($properties as $property => $updated) {
127 127
 			$column = $entity->propertyToColumn($property);
128
-			$getter = 'get' . ucfirst($property);
128
+			$getter = 'get'.ucfirst($property);
129 129
 			$value = $entity->$getter();
130 130
 
131 131
 			$type = $this->getParameterTypeForProperty($entity, $property);
@@ -199,7 +199,7 @@  discard block
 block discarded – undo
199 199
 		// build the fields
200 200
 		foreach ($properties as $property => $updated) {
201 201
 			$column = $entity->propertyToColumn($property);
202
-			$getter = 'get' . ucfirst($property);
202
+			$getter = 'get'.ucfirst($property);
203 203
 			$value = $entity->$getter();
204 204
 
205 205
 			$type = $this->getParameterTypeForProperty($entity, $property);
@@ -229,11 +229,11 @@  discard block
 block discarded – undo
229 229
 	protected function getParameterTypeForProperty(Entity $entity, string $property) {
230 230
 		$types = $entity->getFieldTypes();
231 231
 
232
-		if (!isset($types[ $property ])) {
232
+		if (!isset($types[$property])) {
233 233
 			return IQueryBuilder::PARAM_STR;
234 234
 		}
235 235
 
236
-		switch ($types[ $property ]) {
236
+		switch ($types[$property]) {
237 237
 			case 'int':
238 238
 			case 'integer':
239 239
 				return IQueryBuilder::PARAM_INT;
@@ -294,8 +294,8 @@  discard block
 block discarded – undo
294 294
 	 * @since 14.0.0
295 295
 	 */
296 296
 	private function buildDebugMessage(string $msg, IQueryBuilder $sql): string {
297
-		return $msg .
298
-			': query "' . $sql->getSQL() . '"; ';
297
+		return $msg.
298
+			': query "'.$sql->getSQL().'"; ';
299 299
 	}
300 300
 
301 301
 
@@ -309,7 +309,7 @@  discard block
 block discarded – undo
309 309
 	 * @since 14.0.0
310 310
 	 */
311 311
 	protected function mapRowToEntity(array $row): Entity {
312
-		return \call_user_func($this->entityClass .'::fromRow', $row);
312
+		return \call_user_func($this->entityClass.'::fromRow', $row);
313 313
 	}
314 314
 
315 315
 
Please login to merge, or discard this patch.