Completed
Push — master ( 7a08d5...079d9b )
by Karsten
18:07
created
src/AnnotatedLanguageParserFunction.php 1 patch
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -4,7 +4,6 @@
 block discarded – undo
4 4
 
5 5
 use Title;
6 6
 use Language;
7
-
8 7
 use SMW\Localizer;
9 8
 
10 9
 /**
Please login to merge, or discard this patch.
src/InterlanguageLinkParserFunction.php 2 patches
Doc Comments   +10 added lines patch added patch discarded remove patch
@@ -125,6 +125,10 @@  discard block
 block discarded – undo
125 125
 		return $this->createSiteLanguageLinks( $interlanguageLink );
126 126
 	}
127 127
 
128
+	/**
129
+	 * @param string $languageCode
130
+	 * @param string $linkReference
131
+	 */
128 132
 	private function getTitleFrom( $isSupportedLanguage, $languageCode, $linkReference ) {
129 133
 
130 134
 		if ( $this->inRevisionMode || !$this->languageLinkAnnotator->canAddAnnotation() ) {
@@ -173,6 +177,9 @@  discard block
 block discarded – undo
173 177
 		return '<div class="sil-interlanguagelink"></div>';
174 178
 	}
175 179
 
180
+	/**
181
+	 * @param string $languageCode
182
+	 */
176 183
 	private function isSupportedLanguage( $languageCode ) {
177 184
 
178 185
 		$languageCode = trim( mb_strtolower( $languageCode ) );
@@ -184,6 +191,9 @@  discard block
 block discarded – undo
184 191
 		return Language::isSupportedLanguage( $languageCode );
185 192
 	}
186 193
 
194
+	/**
195
+	 * @param string $messageKey
196
+	 */
187 197
 	private function createErrorMessageFor( $messageKey, $arg1 = '', $arg2 = '', $arg3 = '',$arg4 = '' ) {
188 198
 		return '<div class="smw-callout smw-callout-error">' . wfMessage(
189 199
 			$messageKey,
Please login to merge, or discard this patch.
Unused Use Statements   -2 removed lines patch added patch discarded remove patch
@@ -2,10 +2,8 @@
 block discarded – undo
2 2
 
3 3
 namespace SIL;
4 4
 
5
-use Onoi\Cache\CacheFactory;
6 5
 use Title;
7 6
 use Language;
8
-
9 7
 use SMW\Localizer;
10 8
 
11 9
 /**
Please login to merge, or discard this patch.
src/Search/SearchResultModifier.php 1 patch
Unused Use Statements   -2 removed lines patch added patch discarded remove patch
@@ -3,13 +3,11 @@
 block discarded – undo
3 3
 namespace SIL\Search;
4 4
 
5 5
 use Html;
6
-use LanguageNames;
7 6
 use Language;
8 7
 use XmlSelect;
9 8
 use Xml;
10 9
 use SearchResultSet;
11 10
 use SpecialSearch;
12
-
13 11
 use SMW\Localizer;
14 12
 
15 13
 /**
Please login to merge, or discard this patch.
src/InterlanguageListParserFunction.php 1 patch
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -4,7 +4,6 @@
 block discarded – undo
4 4
 
5 5
 use Title;
6 6
 use Language;
7
-
8 7
 use SMW\Localizer;
9 8
 
10 9
 /**
Please login to merge, or discard this patch.