Completed
Push — master ( 5f9e66...1f3475 )
by mw
123:57 queued 89:01
created
src/Query/DescriptionFactory.php 1 patch
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -2,7 +2,6 @@
 block discarded – undo
2 2
 
3 3
 namespace SMW\Query;
4 4
 
5
-use SMW\DataValues\MonolingualTextValue;
6 5
 use SMW\DIProperty;
7 6
 use SMW\DIWikiPage;
8 7
 use SMW\Query\Language\ClassDescription;
Please login to merge, or discard this patch.
src/Query/ProfileAnnotators/NullProfileAnnotator.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -41,7 +41,7 @@  discard block
 block discarded – undo
41 41
 	 *
42 42
 	 * @since 1.9
43 43
 	 *
44
-	 * @return array
44
+	 * @return DIProperty
45 45
 	 */
46 46
 	public function getProperty() {
47 47
 		return new DIProperty( '_ASK' );
@@ -63,7 +63,7 @@  discard block
 block discarded – undo
63 63
 	 *
64 64
 	 * @since 1.9
65 65
 	 *
66
-	 * @return SemanticData
66
+	 * @return \SMWSemanticData
67 67
 	 */
68 68
 	public function getSemanticData() {
69 69
 		return $this->container->getSemanticData();
Please login to merge, or discard this patch.
src/ExtraneousLanguage/ExtraneousLanguage.php 2 patches
Doc Comments   +6 added lines, -1 removed lines patch added patch discarded remove patch
@@ -124,7 +124,7 @@  discard block
 block discarded – undo
124 124
 	/**
125 125
 	 * @since 2.4
126 126
 	 *
127
-	 * @return string
127
+	 * @return ExtraneousLanguage
128 128
 	 */
129 129
 	public function fetchByLanguageCode( $languageCode ) {
130 130
 
@@ -380,6 +380,7 @@  discard block
 block discarded – undo
380 380
 	 *
381 381
 	 * @since 2.4
382 382
 	 *
383
+	 * @param string $propertyLabel
383 384
 	 * @return string|null
384 385
 	 */
385 386
 	public function getPropertyIdByLabel( $propertyLabel ) {
@@ -487,6 +488,7 @@  discard block
 block discarded – undo
487 488
 
488 489
 	/**
489 490
 	 * @deprecated use getMonthLabelByNumber
491
+	 * @param integer $number
490 492
 	 */
491 493
 	public function getMonthLabel( $number ) {
492 494
 		return $this->getMonthLabelByNumber( $number );
@@ -517,6 +519,9 @@  discard block
 block discarded – undo
517 519
 		return '';
518 520
 	}
519 521
 
522
+	/**
523
+	 * @param string $languageCode
524
+	 */
520 525
 	private function getDateFormatsByLanguageCode( $languageCode ) {
521 526
 
522 527
 		$dateformats = array();
Please login to merge, or discard this patch.
Unused Use Statements   -2 removed lines patch added patch discarded remove patch
@@ -2,8 +2,6 @@
 block discarded – undo
2 2
 
3 3
 namespace SMW\ExtraneousLanguage;
4 4
 
5
-use RuntimeException;
6
-
7 5
 /**
8 6
  * This class provides "extraneous" language functions independent from MediaWiki
9 7
  * to handle certain language options in a way required by Semantic MediaWiki and
Please login to merge, or discard this patch.
src/PropertyAnnotators/MandatoryTypePropertyAnnotator.php 2 patches
Unused Use Statements   -2 removed lines patch added patch discarded remove patch
@@ -5,8 +5,6 @@
 block discarded – undo
5 5
 use SMW\DataTypeRegistry;
6 6
 use SMW\DataValueFactory;
7 7
 use SMW\DIProperty;
8
-use SMW\PropertyAnnotator;
9
-use SMW\Store;
10 8
 
11 9
 /**
12 10
  * @license GNU GPL v2+
Please login to merge, or discard this patch.
Doc Comments   +6 added lines patch added patch discarded remove patch
@@ -50,6 +50,9 @@  discard block
 block discarded – undo
50 50
 		$this->addTypeFromImportVocabulary( $property, current( $dataItems ) );
51 51
 	}
52 52
 
53
+	/**
54
+	 * @param DIProperty $property
55
+	 */
53 56
 	private function addTypeFromImportVocabulary( $property, $dataItem ) {
54 57
 
55 58
 		$importValue = DataValueFactory::getInstance()->newDataValueByItem(
@@ -79,6 +82,9 @@  discard block
 block discarded – undo
79 82
 		$this->replaceAnyTypeByImportType( $property, $dataValue );
80 83
 	}
81 84
 
85
+	/**
86
+	 * @param \SMWDataValue $dataValue
87
+	 */
82 88
 	private function replaceAnyTypeByImportType( DIProperty $property, $dataValue ) {
83 89
 
84 90
 		foreach ( $this->getSemanticData()->getPropertyValues( $property ) as $dataItem ) {
Please login to merge, or discard this patch.
src/Exporter/ResourceBuilders/PropertyDescriptionValueResourceBuilder.php 1 patch
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -2,7 +2,6 @@
 block discarded – undo
2 2
 
3 3
 namespace SMW\Exporter\ResourceBuilders;
4 4
 
5
-use SMW\Exporter\ResourceBuilder;
6 5
 use SMW\DIProperty;
7 6
 use SMWExporter as Exporter;
8 7
 use SMW\DataValueFactory;
Please login to merge, or discard this patch.
includes/dataitems/SMW_DI_URI.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -40,7 +40,7 @@
 block discarded – undo
40 40
 	 * with these examples would be
41 41
 	 * http://[email protected]/path?q=Search+term#section-one
42 42
 	 * @param $scheme string for the scheme
43
-	 * @param $hierpart string for the "hierpart"
43
+	 * @param string $hierpart string for the "hierpart"
44 44
 	 * @param $query string for the query
45 45
 	 * @param $fragment string for the fragment
46 46
 	 *
Please login to merge, or discard this patch.
src/DataValues/MonolingualTextValue.php 2 patches
Doc Comments   +5 added lines, -2 removed lines patch added patch discarded remove patch
@@ -67,7 +67,6 @@  discard block
 block discarded – undo
67 67
 	/**
68 68
 	 * @see AbstractMultiValue::getProperties
69 69
 	 *
70
-	 * @param DIProperty[] $properties
71 70
 	 */
72 71
 	public function getProperties() {
73 72
 		self::$properties;
@@ -78,6 +77,7 @@  discard block
 block discarded – undo
78 77
 	 *
79 78
 	 * @param $userValue
80 79
 	 * @param string $languageCode
80
+	 * @param string $text
81 81
 	 *
82 82
 	 * @return string
83 83
 	 */
@@ -277,7 +277,7 @@  discard block
 block discarded – undo
277 277
 	/**
278 278
 	 * @since 2.5
279 279
 	 *
280
-	 * @return array
280
+	 * @return string
281 281
 	 */
282 282
 	public function toArray() {
283 283
 
@@ -325,6 +325,9 @@  discard block
 block discarded – undo
325 325
 		return $list['_TEXT'] . '@' . $list['_LCODE'];
326 326
 	}
327 327
 
328
+	/**
329
+	 * @param string $value
330
+	 */
328 331
 	private function newContainerSemanticData( $value ) {
329 332
 
330 333
 		if ( $this->m_contextPage === null ) {
Please login to merge, or discard this patch.
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -9,7 +9,6 @@
 block discarded – undo
9 9
 use SMW\DIProperty;
10 10
 use SMW\DIWikiPage;
11 11
 use SMW\Localizer;
12
-use SMW\StringCondition;
13 12
 use SMWContainerSemanticData as ContainerSemanticData;
14 13
 use SMWDataItem as DataItem;
15 14
 use SMWDataValue as DataValue;
Please login to merge, or discard this patch.
src/Exporter/ResourceBuilders/PreferredPropertyLabelResourceBuilder.php 1 patch
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -2,7 +2,6 @@
 block discarded – undo
2 2
 
3 3
 namespace SMW\Exporter\ResourceBuilders;
4 4
 
5
-use SMW\Exporter\ResourceBuilder;
6 5
 use SMW\DIProperty;
7 6
 use SMWExporter as Exporter;
8 7
 use SMW\DataValueFactory;
Please login to merge, or discard this patch.
src/MediaWiki/Hooks/HookRegistry.php 2 patches
Unused Use Statements   -2 removed lines patch added patch discarded remove patch
@@ -4,11 +4,9 @@
 block discarded – undo
4 4
 
5 5
 use Hooks;
6 6
 use Onoi\HttpRequest\HttpRequestFactory;
7
-use Parser;
8 7
 use ParserHooks\HookRegistrant;
9 8
 use SMW\ApplicationFactory;
10 9
 use SMW\DeferredRequestDispatchManager;
11
-use SMW\NamespaceManager;
12 10
 use SMW\SQLStore\QueryEngine\FulltextSearchTableFactory;
13 11
 use SMW\ParserFunctions\DocumentationParserFunction;
14 12
 use SMW\ParserFunctions\InfoParserFunction;
Please login to merge, or discard this patch.
Doc Comments   +4 added lines, -1 removed lines patch added patch discarded remove patch
@@ -71,7 +71,7 @@  discard block
 block discarded – undo
71 71
 	 *
72 72
 	 * @param string $name
73 73
 	 *
74
-	 * @return Callable|false
74
+	 * @return \Closure
75 75
 	 */
76 76
 	public function getHandlerFor( $name ) {
77 77
 		return isset( $this->handlers[$name] ) ? $this->handlers[$name] : false;
@@ -96,6 +96,9 @@  discard block
 block discarded – undo
96 96
 		}
97 97
 	}
98 98
 
99
+	/**
100
+	 * @param string $basePath
101
+	 */
99 102
 	private function addCallbackHandlers( $basePath, $globalVars ) {
100 103
 
101 104
 		$applicationFactory = ApplicationFactory::getInstance();
Please login to merge, or discard this patch.