Passed
Branch master (d7a891)
by Jeroen De
19:45
created
src/PropertyTypeLookup.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -37,8 +37,7 @@
 block discarded – undo
37 37
 
38 38
 		try {
39 39
 			$queryResult = $query->execute();
40
-		}
41
-		catch ( DBALException $ex ) {
40
+		} catch ( DBALException $ex ) {
42 41
 			throw new PropertyTypeLookupException( $ex->getMessage(), $ex );
43 42
 		}
44 43
 
Please login to merge, or discard this patch.
src/ItemStore.php 1 patch
Braces   +6 added lines, -12 removed lines patch added patch discarded remove patch
@@ -52,8 +52,7 @@  discard block
 block discarded – undo
52 52
 					'item_json' => $itemRow->getItemJson(),
53 53
 				]
54 54
 			);
55
-		}
56
-		catch ( DBALException $ex ) {
55
+		} catch ( DBALException $ex ) {
57 56
 			throw new EntityStoreException( $ex->getMessage(), $ex );
58 57
 		}
59 58
 	}
@@ -71,8 +70,7 @@  discard block
 block discarded – undo
71 70
 					'item_id' => $itemId->getNumericId()
72 71
 				]
73 72
 			);
74
-		}
75
-		catch ( DBALException $ex ) {
73
+		} catch ( DBALException $ex ) {
76 74
 			throw new EntityStoreException( $ex->getMessage(), $ex );
77 75
 		}
78 76
 	}
@@ -88,8 +86,7 @@  discard block
 block discarded – undo
88 86
 				->where( 'item_id = ?' )
89 87
 				->setParameter( 0, (int)$numericItemId )
90 88
 				->execute();
91
-		}
92
-		catch ( DBALException $ex ) {
89
+		} catch ( DBALException $ex ) {
93 90
 			throw new EntityStoreException( $ex->getMessage(), $ex );
94 91
 		}
95 92
 
@@ -172,8 +169,7 @@  discard block
 block discarded – undo
172 169
 
173 170
 		try {
174 171
 			$rows = $query->execute();
175
-		}
176
-		catch ( DBALException $ex ) {
172
+		} catch ( DBALException $ex ) {
177 173
 			throw new EntityStoreException( $ex->getMessage(), $ex );
178 174
 		}
179 175
 
@@ -207,8 +203,7 @@  discard block
 block discarded – undo
207 203
 				->setMaxResults( $limit )
208 204
 				->setFirstResult( $offset )
209 205
 				->execute();
210
-		}
211
-		catch ( DBALException $ex ) {
206
+		} catch ( DBALException $ex ) {
212 207
 			throw new EntityStoreException( $ex->getMessage(), $ex );
213 208
 		}
214 209
 
@@ -240,8 +235,7 @@  discard block
 block discarded – undo
240 235
 				->setParameter( 0, $pageName )
241 236
 				->setMaxResults( 1 )
242 237
 				->execute();
243
-		}
244
-		catch ( DBALException $ex ) {
238
+		} catch ( DBALException $ex ) {
245 239
 			throw new EntityStoreException( $ex->getMessage(), $ex );
246 240
 		}
247 241
 
Please login to merge, or discard this patch.
src/PropertyStore.php 1 patch
Braces   +4 added lines, -8 removed lines patch added patch discarded remove patch
@@ -50,8 +50,7 @@  discard block
 block discarded – undo
50 50
 					'property_type' => $propertyRow->getPropertyType(),
51 51
 				)
52 52
 			);
53
-		}
54
-		catch ( DBALException $ex ) {
53
+		} catch ( DBALException $ex ) {
55 54
 			throw new EntityStoreException( $ex->getMessage(), $ex );
56 55
 		}
57 56
 	}
@@ -69,8 +68,7 @@  discard block
 block discarded – undo
69 68
 					'property_id' => $propertyId->getNumericId()
70 69
 				]
71 70
 			);
72
-		}
73
-		catch ( DBALException $ex ) {
71
+		} catch ( DBALException $ex ) {
74 72
 			throw new EntityStoreException( $ex->getMessage(), $ex );
75 73
 		}
76 74
 	}
@@ -87,8 +85,7 @@  discard block
 block discarded – undo
87 85
 				->where( 'property_id = ?' )
88 86
 				->setParameter( 0, (int)$numericPropertyId )
89 87
 				->execute();
90
-		}
91
-		catch ( DBALException $ex ) {
88
+		} catch ( DBALException $ex ) {
92 89
 			throw new EntityStoreException( $ex->getMessage(), $ex );
93 90
 		}
94 91
 
@@ -155,8 +152,7 @@  discard block
 block discarded – undo
155 152
 				->setMaxResults( $limit )
156 153
 				->setFirstResult( $offset )
157 154
 				->execute();
158
-		}
159
-		catch ( DBALException $ex ) {
155
+		} catch ( DBALException $ex ) {
160 156
 			throw new EntityStoreException( $ex->getMessage(), $ex );
161 157
 		}
162 158
 
Please login to merge, or discard this patch.