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