Completed
Push — master ( 959f5f...dece17 )
by
unknown
02:35
created
src/ServiceWiring-Wikibase.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -7,13 +7,13 @@
 block discarded – undo
7 7
 use WikibaseQuality\ConstraintReport\ConstraintCheck\Helper\ExceptionIgnoringEntityLookup;
8 8
 
9 9
 return [
10
-	WikibaseServices::ENTITY_LOOKUP => function( MediaWikiServices $services ) {
10
+	WikibaseServices::ENTITY_LOOKUP => function(MediaWikiServices $services) {
11 11
 		return new ExceptionIgnoringEntityLookup(
12 12
 			WikibaseRepo::getDefaultInstance()->getEntityLookup()
13 13
 		);
14 14
 	},
15 15
 
16
-	WikibaseServices::PROPERTY_DATA_TYPE_LOOKUP => function( MediaWikiServices $services ) {
16
+	WikibaseServices::PROPERTY_DATA_TYPE_LOOKUP => function(MediaWikiServices $services) {
17 17
 		return WikibaseRepo::getDefaultInstance()->getPropertyDataTypeLookup();
18 18
 	},
19 19
 ];
Please login to merge, or discard this patch.
src/ConstraintCheck/Helper/ExceptionIgnoringEntityLookup.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -21,7 +21,7 @@  discard block
 block discarded – undo
21 21
 	 */
22 22
 	private $lookup;
23 23
 
24
-	public function __construct( EntityLookup $lookup ) {
24
+	public function __construct(EntityLookup $lookup) {
25 25
 		$this->lookup = $lookup;
26 26
 	}
27 27
 
@@ -32,10 +32,10 @@  discard block
 block discarded – undo
32 32
 	 * @param EntityId $entityId
33 33
 	 * @return EntityDocument|null
34 34
 	 */
35
-	public function getEntity( EntityId $entityId ) {
35
+	public function getEntity(EntityId $entityId) {
36 36
 		try {
37
-			return $this->lookup->getEntity( $entityId );
38
-		} catch ( EntityLookupException $exception ) {
37
+			return $this->lookup->getEntity($entityId);
38
+		} catch (EntityLookupException $exception) {
39 39
 			return null;
40 40
 		}
41 41
 	}
@@ -48,8 +48,8 @@  discard block
 block discarded – undo
48 48
 	 * @param EntityId $entityId
49 49
 	 * @return bool
50 50
 	 */
51
-	public function hasEntity( EntityId $entityId ) {
52
-		return $this->lookup->hasEntity( $entityId );
51
+	public function hasEntity(EntityId $entityId) {
52
+		return $this->lookup->hasEntity($entityId);
53 53
 	}
54 54
 
55 55
 }
Please login to merge, or discard this patch.