Completed
Push — master ( 554635...ca4932 )
by
unknown
02:39
created
src/ConstraintsServices.php 1 patch
Spacing   +17 added lines, -17 removed lines patch added patch discarded remove patch
@@ -22,67 +22,67 @@
 block discarded – undo
22 22
 	const VIOLATION_MESSAGE_SERIALIZER = 'WBQC_ViolationMessageSerializer';
23 23
 	const VIOLATION_MESSAGE_DESERIALIZER = 'WBQC_ViolationMessageDeserializer';
24 24
 
25
-	private static function getService( MediaWikiServices $services = null, $name ) {
26
-		if ( $services === null ) {
25
+	private static function getService(MediaWikiServices $services = null, $name) {
26
+		if ($services === null) {
27 27
 			$services = MediaWikiServices::getInstance();
28 28
 		}
29
-		return $services->getService( $name );
29
+		return $services->getService($name);
30 30
 	}
31 31
 
32 32
 	/**
33 33
 	 * @param MediaWikiServices|null $services
34 34
 	 * @return LoggingHelper
35 35
 	 */
36
-	public static function getLoggingHelper( MediaWikiServices $services = null ) {
37
-		return self::getService( $services, self::LOGGING_HELPER );
36
+	public static function getLoggingHelper(MediaWikiServices $services = null) {
37
+		return self::getService($services, self::LOGGING_HELPER);
38 38
 	}
39 39
 
40 40
 	/**
41 41
 	 * @param MediaWikiServices|null $services
42 42
 	 * @return ConstraintRepository
43 43
 	 */
44
-	public static function getConstraintRepository( MediaWikiServices $services = null ) {
45
-		return self::getService( $services, self::CONSTRAINT_REPOSITORY );
44
+	public static function getConstraintRepository(MediaWikiServices $services = null) {
45
+		return self::getService($services, self::CONSTRAINT_REPOSITORY);
46 46
 	}
47 47
 
48 48
 	/**
49 49
 	 * @param MediaWikiServices|null $services
50 50
 	 * @return ConstraintLookup
51 51
 	 */
52
-	public static function getConstraintLookup( MediaWikiServices $services = null ) {
53
-		return self::getService( $services, self::CONSTRAINT_LOOKUP );
52
+	public static function getConstraintLookup(MediaWikiServices $services = null) {
53
+		return self::getService($services, self::CONSTRAINT_LOOKUP);
54 54
 	}
55 55
 
56 56
 	/**
57 57
 	 * @param MediaWikiServices|null $services
58 58
 	 * @return CheckResultSerializer
59 59
 	 */
60
-	public static function getCheckResultSerializer( MediaWikiServices $services = null ) {
61
-		return self::getService( $services, self::CHECK_RESULT_SERIALIZER );
60
+	public static function getCheckResultSerializer(MediaWikiServices $services = null) {
61
+		return self::getService($services, self::CHECK_RESULT_SERIALIZER);
62 62
 	}
63 63
 
64 64
 	/**
65 65
 	 * @param MediaWikiServices|null $services
66 66
 	 * @return CheckResultDeserializer
67 67
 	 */
68
-	public static function getCheckResultDeserializer( MediaWikiServices $services = null ) {
69
-		return self::getService( $services, self::CHECK_RESULT_DESERIALIZER );
68
+	public static function getCheckResultDeserializer(MediaWikiServices $services = null) {
69
+		return self::getService($services, self::CHECK_RESULT_DESERIALIZER);
70 70
 	}
71 71
 
72 72
 	/**
73 73
 	 * @param MediaWikiServices|null $services
74 74
 	 * @return ViolationMessageSerializer
75 75
 	 */
76
-	public static function getViolationMessageSerializer( MediaWikiServices $services = null ) {
77
-		return self::getService( $services, self::VIOLATION_MESSAGE_SERIALIZER );
76
+	public static function getViolationMessageSerializer(MediaWikiServices $services = null) {
77
+		return self::getService($services, self::VIOLATION_MESSAGE_SERIALIZER);
78 78
 	}
79 79
 
80 80
 	/**
81 81
 	 * @param MediaWikiServices|null $services
82 82
 	 * @return ViolationMessageDeserializer
83 83
 	 */
84
-	public static function getViolationMessageDeserializer( MediaWikiServices $services = null ) {
85
-		return self::getService( $services, self::VIOLATION_MESSAGE_DESERIALIZER );
84
+	public static function getViolationMessageDeserializer(MediaWikiServices $services = null) {
85
+		return self::getService($services, self::VIOLATION_MESSAGE_DESERIALIZER);
86 86
 	}
87 87
 
88 88
 }
Please login to merge, or discard this patch.