Completed
Push — master ( 2472c5...a814e8 )
by mw
35:03
created
src/DataItemFactory.php 2 patches
Unused Use Statements   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -9,7 +9,7 @@
 block discarded – undo
9 9
 use SMWDIError as DIError;
10 10
 use SMWDINumber as DINumber;
11 11
 use SMWDIUri as DIUri;
12
-use SMWDITime  as DITime;
12
+use SMWDITime as DITime;
13 13
 
14 14
 /**
15 15
  * @private
Please login to merge, or discard this patch.
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -136,8 +136,8 @@
 block discarded – undo
136 136
 	 *
137 137
 	 * @param integer $calendarmodel
138 138
 	 * @param integer $year
139
-	 * @param integer|false $month
140
-	 * @param integer|false $day
139
+	 * @param integer $month
140
+	 * @param integer $day
141 141
 	 * @param integer|false $hour
142 142
 	 * @param integer|false $minute
143 143
 	 * @param integer|false $second
Please login to merge, or discard this patch.
src/Deserializers/DVDescriptionDeserializer/DescriptionDeserializer.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -60,7 +60,7 @@
 block discarded – undo
60 60
 	 * @since 2.5
61 61
 	 *
62 62
 	 * @param DescriptionFactory|null $descriptionFactory
63
-	 * @param DataItemFactory|null $dataItemFactory
63
+	 * @param null|DescriptionFactory $dataItemFactory
64 64
 	 */
65 65
 	public function __construct( DescriptionFactory $descriptionFactory = null, DescriptionFactory $dataItemFactory = null ) {
66 66
 		$this->descriptionFactory = $descriptionFactory;
Please login to merge, or discard this patch.
DVDescriptionDeserializer/SomeValueDescriptionDeserializer.php 2 patches
Doc Comments   +4 added lines patch added patch discarded remove patch
@@ -77,6 +77,10 @@
 block discarded – undo
77 77
 		return $description;
78 78
 	}
79 79
 
80
+	/**
81
+	 * @param DIWikiPage $dataItem
82
+	 * @param ValueDescription $description
83
+	 */
80 84
 	private function findApproriateDescription( $comparator, $dataItem, $description ) {
81 85
 
82 86
 		$value = $dataItem->getDBKey();
Please login to merge, or discard this patch.
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -3,7 +3,6 @@
 block discarded – undo
3 3
 namespace SMW\Deserializers\DVDescriptionDeserializer;
4 4
 
5 5
 use InvalidArgumentException;
6
-use SMW\Query\Language\ThingDescription;
7 6
 use SMW\Query\Language\ValueDescription;
8 7
 use SMWDataValue as DataValue;
9 8
 use SMW\DIWikiPage;
Please login to merge, or discard this patch.
includes/dataitems/SMW_DI_Time.php 1 patch
Doc Comments   +8 added lines, -3 removed lines patch added patch discarded remove patch
@@ -327,7 +327,7 @@  discard block
 block discarded – undo
327 327
 	 *
328 328
 	 * @param string $timestamp must be in format
329 329
 	 *
330
-	 * @return SMWDITime|false
330
+	 * @return SMWDataItem
331 331
 	 */
332 332
 	public static function newFromTimestamp( $timestamp ) {
333 333
 		$timestamp = wfTimestamp( TS_MW, (string)$timestamp );
@@ -494,10 +494,10 @@  discard block
 block discarded – undo
494 494
 	 * calendar model, presicion.
495 495
 	 *
496 496
 	 * @param double $jdValue
497
-	 * @param integer|null $calendarmodel
497
+	 * @param integer|null $calendarModel
498 498
 	 * @param integer|null $precision
499 499
 	 *
500
-	 * @return DITime object
500
+	 * @return SMWDITime object
501 501
 	 */
502 502
 	public static function newFromJD( $jdValue, $calendarModel = null, $precision = null ) {
503 503
 
@@ -579,6 +579,11 @@  discard block
 block discarded – undo
579 579
 		return $this->m_day > self::getDayNumberForMonth( $this->m_month, $this->m_year, $this->m_model );
580 580
 	}
581 581
 
582
+	/**
583
+	 * @param boolean $month
584
+	 * @param boolean $day
585
+	 * @param boolean $hour
586
+	 */
582 587
 	private function setPrecisionLevelBy( $month, $day, $hour ) {
583 588
 		if ( $month === false ) {
584 589
 			$this->m_precision = self::PREC_Y;
Please login to merge, or discard this patch.
src/Libs/Time/JulianDay.php 1 patch
Doc Comments   +11 added lines, -11 removed lines patch added patch discarded remove patch
@@ -34,7 +34,7 @@  discard block
 block discarded – undo
34 34
 	/**
35 35
 	 * @since 2.4
36 36
 	 *
37
-	 * @param integer $calendarmodel
37
+	 * @param integer $calendarModel
38 38
 	 * @param integer $year
39 39
 	 * @param integer $month
40 40
 	 * @param integer $day
@@ -68,10 +68,10 @@  discard block
 block discarded – undo
68 68
 	 * calendar model. This calculation assumes that neither calendar
69 69
 	 * has a year 0.
70 70
 	 *
71
-	 * @param $year integer representing the year
72
-	 * @param $month integer representing the month
73
-	 * @param $day integer representing the day
74
-	 * @param $calendarmodel integer either CM_GREGORIAN or CM_JULIAN
71
+	 * @param integer $year integer representing the year
72
+	 * @param integer $month integer representing the month
73
+	 * @param integer $day integer representing the day
74
+	 * @param integer $calendarmodel integer either CM_GREGORIAN or CM_JULIAN
75 75
 	 *
76 76
 	 * @return float Julian Day number
77 77
 	 * @throws RuntimeException
@@ -97,9 +97,9 @@  discard block
 block discarded – undo
97 97
 	 * Compute the offset for the Julian Day number from a given time.
98 98
 	 * This computation is the same for all calendar models.
99 99
 	 *
100
-	 * @param $hours integer representing the hour
101
-	 * @param $minutes integer representing the minutes
102
-	 * @param $seconds integer representing the seconds
100
+	 * @param integer $hours integer representing the hour
101
+	 * @param integer $minutes integer representing the minutes
102
+	 * @param integer $seconds integer representing the seconds
103 103
 	 *
104 104
 	 * @return float offset for a Julian Day number to get this time
105 105
 	 */
@@ -114,8 +114,8 @@  discard block
 block discarded – undo
114 114
 	 * conversion to Gregorian needs positive JD. If this happens, wrong
115 115
 	 * values will be returned. Avoid date conversions before 10000 BCE.
116 116
 	 *
117
-	 * @param $jdValue float number of Julian Days
118
-	 * @param $calendarModel integer either CM_GREGORIAN or CM_JULIAN
117
+	 * @param double $jdValue float number of Julian Days
118
+	 * @param integer $calendarModel integer either CM_GREGORIAN or CM_JULIAN
119 119
 	 *
120 120
 	 * @return array( calendarModel, yearnumber, monthnumber, daynumber )
121 121
 	 * @throws RuntimeException
@@ -166,7 +166,7 @@  discard block
 block discarded – undo
166 166
 	 * Extract the time from a Julian Day number and return it as a string.
167 167
 	 * This conversion is the same for all calendar models.
168 168
 	 *
169
-	 * @param $jdvalue float number of Julian Days
169
+	 * @param double $jdvalue float number of Julian Days
170 170
 	 * @return array( hours, minutes, seconds )
171 171
 	 */
172 172
 	public static function JD2Time( $jdvalue ) {
Please login to merge, or discard this patch.
src/Libs/Time/Timezone.php 1 patch
Doc Comments   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -169,7 +169,7 @@  discard block
 block discarded – undo
169 169
 	 *
170 170
 	 * @param string $identifer
171 171
 	 *
172
-	 * @return false|integer
172
+	 * @return string
173 173
 	 */
174 174
 	public static function getIdByAbbreviation( $identifer ) {
175 175
 
@@ -193,7 +193,7 @@  discard block
 block discarded – undo
193 193
 	 *
194 194
 	 * @param integer $identifer
195 195
 	 *
196
-	 * @return false|string
196
+	 * @return string
197 197
 	 */
198 198
 	public static function getAbbreviationById( $identifer ) {
199 199
 
@@ -312,7 +312,7 @@  discard block
 block discarded – undo
312 312
 	 *
313 313
 	 * @param string $abbreviation
314 314
 	 *
315
-	 * @return false|DateTimeZone
315
+	 * @return DateTimeZone
316 316
 	 */
317 317
 	public static function newDateTimeZone( $abbreviation ) {
318 318
 
@@ -353,7 +353,7 @@  discard block
 block discarded – undo
353 353
 	 * @since 2.5
354 354
 	 *
355 355
 	 * @param DateTime &$dateTime
356
-	 * @param string|integer $identifer
356
+	 * @param integer $identifer
357 357
 	 *
358 358
 	 * @return string
359 359
 	 */
Please login to merge, or discard this patch.
tests/phpunit/Unit/Libs/Time/TimezoneTest.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\Tests\Libs\Time;
4 4
 
5
-use SMW\DataItemFactory;
6 5
 use SMW\Libs\Time\Timezone;
7 6
 
8 7
 /**
Please login to merge, or discard this patch.
src/SPARQLStore/RepositoryConnectors/FourstoreHttpRepositoryConnector.php 1 patch
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -5,7 +5,6 @@
 block discarded – undo
5 5
 use SMW\SPARQLStore\Exception\BadHttpDatabaseResponseException;
6 6
 use SMW\SPARQLStore\QueryEngine\RepositoryResult;
7 7
 use SMW\SPARQLStore\QueryEngine\XmlResponseParser;
8
-use SMWSparqlResultParser as SparqlResultParser;
9 8
 use SMWTurtleSerializer as TurtleSerializer;
10 9
 
11 10
 /**
Please login to merge, or discard this patch.
src/SPARQLStore/RepositoryConnectors/GenericHttpRepositoryConnector.php 1 patch
Doc Comments   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -132,7 +132,7 @@  discard block
 block discarded – undo
132 132
 	 * rdfs, property, xsd, so these do not have to be included in
133 133
 	 * $extraNamespaces.
134 134
 	 *
135
-	 * @param $vars mixed array or string, field name(s) to be retrieved, can be '*'
135
+	 * @param string $vars mixed array or string, field name(s) to be retrieved, can be '*'
136 136
 	 * @param $where string WHERE part of the query, without surrounding { }
137 137
 	 * @param $options array (associative) of options, e.g. array( 'LIMIT' => '10' )
138 138
 	 * @param $extraNamespaces array (associative) of namespaceId => namespaceUri
@@ -549,8 +549,8 @@  discard block
 block discarded – undo
549 549
 	}
550 550
 
551 551
 	/**
552
-	 * @param $endpoint string URL of endpoint that was used
553
-	 * @param $sparql string query that caused the problem
552
+	 * @param string $endpoint string URL of endpoint that was used
553
+	 * @param string $sparql string query that caused the problem
554 554
 	 */
555 555
 	protected function mapHttpRequestError( $endpoint, $sparql ) {
556 556
 
@@ -566,7 +566,7 @@  discard block
 block discarded – undo
566 566
 	 *
567 567
 	 * @param integer $timeout
568 568
 	 *
569
-	 * @return SparqlDatabase
569
+	 * @return GenericHttpRepositoryConnector
570 570
 	 */
571 571
 	public function setConnectionTimeoutInSeconds( $timeout = 10 ) {
572 572
 		$this->httpRequest->setOption( CURLOPT_CONNECTTIMEOUT, $timeout );
Please login to merge, or discard this patch.