Completed
Push — master ( 944e8c...873a6a )
by mw
32:14
created
tests/phpunit/Utils/Page/PageEditor.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -38,7 +38,7 @@
 block discarded – undo
38 38
 	/**
39 39
 	 * @since 2.1
40 40
 	 *
41
-	 * @param Title $title
41
+	 * @param Title|null $title
42 42
 	 *
43 43
 	 * @return PageEditor
44 44
 	 */
Please login to merge, or discard this patch.
tests/phpunit/Utils/PageReader.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -40,7 +40,7 @@
 block discarded – undo
40 40
 	 *
41 41
 	 * @param Title $title
42 42
 	 *
43
-	 * @return text
43
+	 * @return string
44 44
 	 */
45 45
 	public function getContentAsText( Title $title ) {
46 46
 
Please login to merge, or discard this patch.
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -6,7 +6,6 @@
 block discarded – undo
6 6
 use ImportReporter;
7 7
 use WikiImporter;
8 8
 use RequestContext;
9
-
10 9
 use RuntimeException;
11 10
 
12 11
 /**
Please login to merge, or discard this patch.
tests/phpunit/Utils/PageRefresher.php 1 patch
Unused Use Statements   -4 removed lines patch added patch discarded remove patch
@@ -3,15 +3,11 @@
 block discarded – undo
3 3
 namespace SMW\Tests\Utils;
4 4
 
5 5
 use SMW\MediaWiki\Jobs\UpdateJob;
6
-
7
-use SMW\Store;
8 6
 use SMW\ContentParser;
9 7
 use SMW\ApplicationFactory;
10 8
 use SMW\DIWikiPage;
11
-
12 9
 use Title;
13 10
 use WikiPage;
14
-
15 11
 use RuntimeException;
16 12
 
17 13
 /**
Please login to merge, or discard this patch.
tests/phpunit/Utils/Runners/XmlImportRunner.php 2 patches
Doc Comments   +4 added lines, -1 removed lines patch added patch discarded remove patch
@@ -26,6 +26,9 @@  discard block
 block discarded – undo
26 26
 	protected $result = null;
27 27
 	protected $verbose = false;
28 28
 
29
+	/**
30
+	 * @param string $file
31
+	 */
29 32
 	public function __construct( $file = null ) {
30 33
 		$this->file = $file;
31 34
 	}
@@ -115,7 +118,7 @@  discard block
 block discarded – undo
115 118
 	}
116 119
 
117 120
 	/**
118
-	 * @return integer
121
+	 * @return double
119 122
 	 */
120 123
 	public function getElapsedImportTimeInSeconds() {
121 124
 		return round( $this->importTime, 7 );
Please login to merge, or discard this patch.
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -6,7 +6,6 @@
 block discarded – undo
6 6
 use ImportReporter;
7 7
 use WikiImporter;
8 8
 use RequestContext;
9
-
10 9
 use RuntimeException;
11 10
 
12 11
 /**
Please login to merge, or discard this patch.
tests/phpunit/Utils/SemanticDataFactory.php 1 patch
Unused Use Statements   -2 removed lines patch added patch discarded remove patch
@@ -4,9 +4,7 @@
 block discarded – undo
4 4
 
5 5
 use SMW\DIWikiPage;
6 6
 use SMW\SemanticData;
7
-
8 7
 use Title;
9
-
10 8
 use RuntimeException;
11 9
 
12 10
 /**
Please login to merge, or discard this patch.
tests/phpunit/Utils/UtilityFactory.php 1 patch
Doc Comments   -1 removed lines patch added patch discarded remove patch
@@ -156,7 +156,6 @@
 block discarded – undo
156 156
 	/**
157 157
 	 * @since 2.1
158 158
 	 *
159
-	 * @param string $file|null
160 159
 	 *
161 160
 	 * @return JsonFileReader
162 161
 	 */
Please login to merge, or discard this patch.
tests/phpunit/Utils/Validators/ExportDataValidator.php 2 patches
Doc Comments   -2 removed lines patch added patch discarded remove patch
@@ -22,7 +22,6 @@  discard block
 block discarded – undo
22 22
 	/**
23 23
 	 * @since 2.0
24 24
 	 *
25
-	 * @param mixed $expected
26 25
 	 * @param ExpData $exportData
27 26
 	 */
28 27
 	public function assertThatExportDataContainsProperty( $expectedProperties, ExpData $exportData ) {
@@ -57,7 +56,6 @@  discard block
 block discarded – undo
57 56
 	/**
58 57
 	 * @since 2.0
59 58
 	 *
60
-	 * @param mixed $expected
61 59
 	 * @param ExpResource $selectedElement
62 60
 	 * @param ExpData $exportData
63 61
 	 */
Please login to merge, or discard this patch.
Unused Use Statements   -6 removed lines patch added patch discarded remove patch
@@ -2,12 +2,6 @@
 block discarded – undo
2 2
 
3 3
 namespace SMW\Tests\Utils\Validators;
4 4
 
5
-use SMW\DIWikiPage;
6
-
7
-use SMWDataValue as DataValue;
8
-use SMWDataItem as DataItem;
9
-use SMWQueryResult as QueryResult;
10
-
11 5
 use SMWExpData as ExpData;
12 6
 use SMWExpResource as ExpResource;
13 7
 
Please login to merge, or discard this patch.
tests/phpunit/Utils/Validators/SemanticDataValidator.php 2 patches
Doc Comments   +5 added lines, -1 removed lines patch added patch discarded remove patch
@@ -115,7 +115,7 @@  discard block
 block discarded – undo
115 115
 	/**
116 116
 	 * @since 2.1
117 117
 	 *
118
-	 * @param array $expected
118
+	 * @param DIProperty[] $expected
119 119
 	 * @param array $properties
120 120
 	 */
121 121
 	public function assertHasProperties( array $expected, array $properties ) {
@@ -347,6 +347,10 @@  discard block
 block discarded – undo
347 347
 		);
348 348
 	}
349 349
 
350
+	/**
351
+	 * @param DataValue $dataValue
352
+	 * @param string $defaultFormatter
353
+	 */
350 354
 	private function assertContainsPropertyValues( &$expected, $dataValue, $defaultFormatter, $formatterParameters = array() ) {
351 355
 
352 356
 		if ( !isset( $expected['propertyValues'] ) ) {
Please login to merge, or discard this patch.
Unused Use Statements   -3 removed lines patch added patch discarded remove patch
@@ -5,10 +5,7 @@
 block discarded – undo
5 5
 use SMW\DataValueFactory;
6 6
 use SMW\SemanticData;
7 7
 use SMW\DIProperty;
8
-
9 8
 use SMWDataItem as DataItem;
10
-use SMWDataValue as DataValue;
11
-
12 9
 use RuntimeException;
13 10
 
14 11
 /**
Please login to merge, or discard this patch.
tests/phpunit/Utils/Validators/TitleValidator.php 1 patch
Doc Comments   +4 added lines patch added patch discarded remove patch
@@ -21,11 +21,15 @@
 block discarded – undo
21 21
 
22 22
 	/**
23 23
 	 * @since 2.1
24
+	 * @param string[] $titles
24 25
 	 */
25 26
 	public function assertThatTitleIsKnown( $titles ) {
26 27
 		$this->assertTitleExists( true, $titles );
27 28
 	}
28 29
 
30
+	/**
31
+	 * @param boolean $isExpected
32
+	 */
29 33
 	private function assertTitleExists( $isExpected, $titles ) {
30 34
 
31 35
 		if ( !is_array( $titles ) ) {
Please login to merge, or discard this patch.