Completed
Pull Request — master (#144)
by Simon
04:44
created
formats/array/SRF_Array.php 1 patch
Doc Comments   +16 added lines patch added patch discarded remove patch
@@ -135,6 +135,9 @@  discard block
 block discarded – undo
135 135
 		return $output;
136 136
 	}
137 137
 	
138
+	/**
139
+	 * @param string $value
140
+	 */
138 141
 	protected function fillDeliveryArray( $array = array(), $value = null ) {
139 142
 		if( ! is_null( $value ) ) { //don't create any empty entries
140 143
 			$array[] = $value;
@@ -166,11 +169,21 @@  discard block
 block discarded – undo
166 169
 			/** @ToDo: System for Default values?... **/
167 170
 	}
168 171
 	//represented by an array of record fields or just a single array value:
172
+
173
+	/**
174
+	 * @param boolean $containsRecord
175
+	 * @param boolean $isPageTitle
176
+	 */
169 177
 	protected function deliverSingleManyValuesData( $value_items, $containsRecord, $isPageTitle ) {
170 178
 		if( empty( $value_items ) ) //happens when one of the higher functions delivers null
171 179
 			return null;
172 180
 		return implode( $this->mRecordSep, $value_items );
173 181
 	}
182
+
183
+	/**
184
+	 * @param boolean $isMissingProperty
185
+	 * @param boolean $isPageTitle
186
+	 */
174 187
 	protected function deliverPropertiesManyValues( $manyValue_items, $isMissingProperty, $isPageTitle, SMWResultArray $data ) {
175 188
 		if( empty( $manyValue_items ) )
176 189
 			return null;
@@ -236,6 +249,9 @@  discard block
 block discarded – undo
236 249
 		return true;
237 250
 	}
238 251
 	
252
+	/**
253
+	 * @param string $dfltCacheKey
254
+	 */
239 255
 	protected function initializeCfgValue( $dfltVal, $dfltCacheKey ) {		
240 256
 		$cache = &self::$mDefaultSeps[ $dfltCacheKey ];
241 257
 		if( ! isset( $cache ) ) {
Please login to merge, or discard this patch.
formats/bibtex/SRF_BibTeX.php 1 patch
Doc Comments   +26 added lines, -1 removed lines patch added patch discarded remove patch
@@ -47,7 +47,7 @@  discard block
 block discarded – undo
47 47
 	 *
48 48
 	 * @param SMWQueryResult $queryResult
49 49
 	 *
50
-	 * @return string|boolean
50
+	 * @return string
51 51
 	 */
52 52
 	public function getFileName( SMWQueryResult $queryResult ) {
53 53
 		if ( $this->getSearchLabel( SMW_OUTPUT_WIKI ) != '' ) {
@@ -222,6 +222,31 @@  discard block
 block discarded – undo
222 222
 	private $URI;
223 223
 	private $fields = array();
224 224
 
225
+	/**
226
+	 * @param string $type
227
+	 * @param string $address
228
+	 * @param string $annote
229
+	 * @param string $booktitle
230
+	 * @param string $chapter
231
+	 * @param string $crossref
232
+	 * @param string $doi
233
+	 * @param string $edition
234
+	 * @param string $eprint
235
+	 * @param string $howpublished
236
+	 * @param string $institution
237
+	 * @param string $journal
238
+	 * @param string $key
239
+	 * @param string $note
240
+	 * @param string $number
241
+	 * @param string $organization
242
+	 * @param string $pages
243
+	 * @param string $publisher
244
+	 * @param string $school
245
+	 * @param string $series
246
+	 * @param string $title
247
+	 * @param string $url
248
+	 * @param string $volume
249
+	 */
225 250
 	public function __construct( $type, $address, $annote, $author, $booktitle, $chapter, $crossref, $doi, $edition, $editor, $eprint, $howpublished, $institution, $journal, $key, $month, $note, $number, $organization, $pages, $publisher, $school, $series, $title, $url, $volume, $year ) {
226 251
 		if ( $type ) $this->bibTeXtype = ucfirst( $type ); else $this->bibTeXtype = 'Book';
227 252
 
Please login to merge, or discard this patch.
formats/calendar/SRFC_HistoricalDate.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -26,6 +26,9 @@
 block discarded – undo
26 26
 
27 27
 	protected $m_date; // the Julian day
28 28
 
29
+	/**
30
+	 * @param integer $day
31
+	 */
29 32
 	function create( $year, $month, $day ) {
30 33
 		if ( $year < 1582 ||
31 34
 			( $year == 1582 && ( $month < 10 || ( $month == 10 && $day < 15 ) ) ) ) {
Please login to merge, or discard this patch.
formats/dygraphs/SRF_Dygraphs.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -51,7 +51,7 @@
 block discarded – undo
51 51
 	 * @since 1.8
52 52
 	 *
53 53
 	 * @param SMWQueryResult $result
54
-	 * @param $outputMode
54
+	 * @param integer $outputMode
55 55
 	 *
56 56
 	 * @return array
57 57
 	 */
Please login to merge, or discard this patch.
formats/Exhibit/SRF_Exhibit.php 1 patch
Doc Comments   +4 added lines patch added patch discarded remove patch
@@ -30,6 +30,10 @@
 block discarded – undo
30 30
 	}
31 31
 
32 32
 	// /Tries to determine the namespace in the event it got lost
33
+
34
+	/**
35
+	 * @param SMWQueryResult $res
36
+	 */
33 37
 	protected function determineNamespace( $res ) {
34 38
 		$row = $res->getNext();
35 39
 		if ( $row != null ) {
Please login to merge, or discard this patch.
formats/Filtered/SRF_Filtered.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -77,6 +77,9 @@
 block discarded – undo
77 77
 	private $mParams;
78 78
 	private $mFiltersOnTop;
79 79
 
80
+	/**
81
+	 * @param boolean $hasTemplates
82
+	 */
80 83
 	public function hasTemplates ( $hasTemplates = null ) {
81 84
 		$ret = $this->hasTemplates;
82 85
 		if ( is_bool( $hasTemplates ) ) {
Please login to merge, or discard this patch.
formats/Filtered/views/SRF_FV_Calendar.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -219,7 +219,7 @@
 block discarded – undo
219 219
 	/**
220 220
 	 * Returns the name of the resource module to load for this view.
221 221
 	 *
222
-	 * @return string|array
222
+	 * @return string
223 223
 	 */
224 224
 	public function getResourceModules() {
225 225
 		return 'ext.srf.filtered.calendar-view';
Please login to merge, or discard this patch.
formats/Filtered/views/SRF_FV_Table.php 1 patch
Doc Comments   +5 added lines, -1 removed lines patch added patch discarded remove patch
@@ -136,6 +136,10 @@  discard block
 block discarded – undo
136 136
 		);
137 137
 	}
138 138
 
139
+	/**
140
+	 * @param integer $outputmode
141
+	 * @param string[] $columnClasses
142
+	 */
139 143
 	private function getTableRows( $queryResults, $outputmode, $columnClasses) {
140 144
 		$tableRows = array();
141 145
 		
@@ -254,7 +258,7 @@  discard block
 block discarded – undo
254 258
 	/**
255 259
 	 * Returns the name of the resource module to load for this view.
256 260
 	 *
257
-	 * @return string|array
261
+	 * @return string
258 262
 	 */
259 263
 	public function getResourceModules() {
260 264
 		return 'ext.srf.filtered.table-view';
Please login to merge, or discard this patch.
formats/gallery/Gallery.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 SRF;
4 4
 
5 5
 use SMW\ResultPrinter;
6
-
7 6
 use SMWQueryResult;
8 7
 use SMWPrintRequest;
9 8
 use SMWDataItem;
10 9
 use SMWOutputs;
11 10
 use SRFUtils;
12
-
13 11
 use Html;
14 12
 use ImageGallery;
15 13
 use Title;
Please login to merge, or discard this patch.