Completed
Branch develop (bfa16a)
by Greg
10:11
created
app/Fact.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -87,7 +87,7 @@
 block discarded – undo
87 87
 	/**
88 88
 	 * Get the record to which this fact links
89 89
 	 *
90
-	 * @return Individual|Family|Source|Repository|Media|Note|null
90
+	 * @return GedcomRecord|null
91 91
 	 */
92 92
 	public function getTarget() {
93 93
 		$xref = trim($this->getValue(), '@');
Please login to merge, or discard this patch.
app/Module.php 2 patches
Doc Comments   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -152,7 +152,7 @@  discard block
 block discarded – undo
152 152
 	 *
153 153
 	 * @param Tree $tree
154 154
 	 *
155
-	 * @return ModuleBlockInterface[]
155
+	 * @return AbstractModule[]
156 156
 	 */
157 157
 	public static function getActiveBlocks(Tree $tree) {
158 158
 		return self::getActiveModulesByComponent($tree, 'block');
@@ -163,7 +163,7 @@  discard block
 block discarded – undo
163 163
 	 *
164 164
 	 * @param Tree $tree
165 165
 	 *
166
-	 * @return ModuleChartInterface[]
166
+	 * @return AbstractModule[]
167 167
 	 */
168 168
 	public static function getActiveCharts(Tree $tree) {
169 169
 		return self::getActiveModulesByComponent($tree, 'chart');
@@ -174,7 +174,7 @@  discard block
 block discarded – undo
174 174
 	 *
175 175
 	 * @param Tree $tree
176 176
 	 *
177
-	 * @return ModuleMenuInterface[]
177
+	 * @return AbstractModule[]
178 178
 	 */
179 179
 	public static function getActiveMenus(Tree $tree) {
180 180
 		return self::getActiveModulesByComponent($tree, 'menu');
@@ -185,7 +185,7 @@  discard block
 block discarded – undo
185 185
 	 *
186 186
 	 * @param Tree $tree
187 187
 	 *
188
-	 * @return ModuleReportInterface[]
188
+	 * @return AbstractModule[]
189 189
 	 */
190 190
 	public static function getActiveReports(Tree $tree) {
191 191
 		return self::getActiveModulesByComponent($tree, 'report');
@@ -196,7 +196,7 @@  discard block
 block discarded – undo
196 196
 	 *
197 197
 	 * @param Tree $tree
198 198
 	 *
199
-	 * @return ModuleSidebarInterface[]
199
+	 * @return AbstractModule[]
200 200
 	 */
201 201
 	public static function getActiveSidebars(Tree $tree) {
202 202
 		return self::getActiveModulesByComponent($tree, 'sidebar');
@@ -207,7 +207,7 @@  discard block
 block discarded – undo
207 207
 	 *
208 208
 	 * @param Tree $tree
209 209
 	 *
210
-	 * @return ModuleTabInterface[]
210
+	 * @return AbstractModule[]
211 211
 	 */
212 212
 	public static function getActiveTabs(Tree $tree) {
213 213
 		return self::getActiveModulesByComponent($tree, 'tab');
@@ -218,7 +218,7 @@  discard block
 block discarded – undo
218 218
 	 *
219 219
 	 * @param Tree $tree
220 220
 	 *
221
-	 * @return ModuleThemeInterface[]
221
+	 * @return AbstractModule[]
222 222
 	 */
223 223
 	public static function getActiveThemes(Tree $tree) {
224 224
 		return self::getActiveModulesByComponent($tree, 'theme');
Please login to merge, or discard this patch.
Upper-Lower-Casing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -135,7 +135,7 @@
 block discarded – undo
135 135
 					}
136 136
 				} catch (\Exception $ex) {
137 137
 					// The module has been deleted or is broken? Disable it.
138
-					Log::addConfigurationLog("Module {$module_name} is missing or broken - disabling it. " . $ex->getMessage());
138
+					Log::addConfigurationLog("module {$module_name} is missing or broken - disabling it. " . $ex->getMessage());
139 139
 					Database::prepare(
140 140
 						"UPDATE `##module` SET status = 'disabled' WHERE module_name = :module_name"
141 141
 					)->execute([
Please login to merge, or discard this patch.
app/Module/BatchUpdateModule.php 2 patches
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -268,7 +268,7 @@  discard block
 block discarded – undo
268 268
 	 *
269 269
 	 * @param string $xref
270 270
 	 *
271
-	 * @return string|null
271
+	 * @return integer|null
272 272
 	 */
273 273
 	private function findNextXref($xref) {
274 274
 		foreach (array_keys($this->all_xrefs) as $key) {
@@ -288,7 +288,7 @@  discard block
 block discarded – undo
288 288
 	 *
289 289
 	 * @param string $xref
290 290
 	 *
291
-	 * @return string|null
291
+	 * @return integer|null
292 292
 	 */
293 293
 	private function findPrevXref($xref) {
294 294
 		foreach (array_reverse(array_keys($this->all_xrefs)) as $key) {
Please login to merge, or discard this patch.
Braces   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -235,7 +235,8 @@  discard block
 block discarded – undo
235 235
 					<?php // Reset - otherwise we might "undo all changes", which refreshes the ?>
236 236
 					<?php // page, which makes them all again!  ?>
237 237
 					<script>reset_reload();</script>
238
-			<?php else: ?>
238
+			<?php else {
239
+	: ?>
239 240
 					<hr>
240 241
 					<div id="batch_update2" class="col-sm-12">
241 242
 						<?php if ($this->curr_xref): ?>
@@ -273,6 +274,7 @@  discard block
 block discarded – undo
273 274
 		foreach (array_keys($this->all_xrefs) as $key) {
274 275
 			if ($key > $xref) {
275 276
 				$record = self::getLatestRecord($key, $this->all_xrefs[$key]);
277
+}
276 278
 				if ($this->PLUGIN->doesRecordNeedUpdate($key, $record)) {
277 279
 					return $key;
278 280
 				}
Please login to merge, or discard this patch.
app/Module/ModuleBlockInterface.php 1 patch
Doc Comments   +1 added lines patch added patch discarded remove patch
@@ -58,6 +58,7 @@
 block discarded – undo
58 58
 	 * An HTML form to edit block settings
59 59
 	 *
60 60
 	 * @param int $block_id
61
+	 * @return void
61 62
 	 */
62 63
 	public function configureBlock($block_id);
63 64
 }
Please login to merge, or discard this patch.
app/Report/ReportBase.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -463,7 +463,7 @@
 block discarded – undo
463 463
 	 *
464 464
 	 * @param string $s Style name
465 465
 	 *
466
-	 * @return array
466
+	 * @return string
467 467
 	 */
468 468
 	public function getStyle($s) {
469 469
 		if (!isset($this->Styles[$s])) {
Please login to merge, or discard this patch.
app/Report/ReportBaseCell.php 1 patch
Doc Comments   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -127,7 +127,7 @@  discard block
 block discarded – undo
127 127
 	 * @param int $stretch Stretch carachter mode
128 128
 	 * @param string $bocolor Border color
129 129
 	 * @param string $tcolor  Text color
130
-	 * @param        $reseth
130
+	 * @param        boolean $reseth
131 131
 	 */
132 132
 	public function __construct(
133 133
 		$width, $height, $border, $align, $bgcolor, $style, $ln, $top, $left, $fill, $stretch, $bocolor, $tcolor, $reseth
@@ -157,7 +157,7 @@  discard block
 block discarded – undo
157 157
 	 *
158 158
 	 * @param $renderer
159 159
 	 *
160
-	 * @return float
160
+	 * @return integer
161 161
 	 */
162 162
 	public function getHeight($renderer) {
163 163
 		return $this->height;
@@ -181,7 +181,7 @@  discard block
 block discarded – undo
181 181
 	 *
182 182
 	 * @param $renderer
183 183
 	 *
184
-	 * @return float
184
+	 * @return integer
185 185
 	 */
186 186
 	public function getWidth($renderer) {
187 187
 		return $this->width;
Please login to merge, or discard this patch.
app/Report/ReportHtml.php 1 patch
Doc Comments   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -308,7 +308,7 @@  discard block
 block discarded – undo
308 308
 	 * @param string $tcolor  Text color
309 309
 	 * @param bool    $reseth
310 310
 	 *
311
-	 * @return object ReportHtmlCell
311
+	 * @return ReportHtmlCell ReportHtmlCell
312 312
 	 */
313 313
 	public function createCell($width, $height, $border, $align, $bgcolor, $style, $ln, $top, $left, $fill, $stretch, $bocolor, $tcolor, $reseth) {
314 314
 		return new ReportHtmlCell($width, $height, $border, $align, $bgcolor, $style, $ln, $top, $left, $fill, $stretch, $bocolor, $tcolor, $reseth);
@@ -466,7 +466,7 @@  discard block
 block discarded – undo
466 466
 	/**
467 467
 	 * Add a page header.
468 468
 	 *
469
-	 * @param $element
469
+	 * @param ReportBaseElement $element
470 470
 	 *
471 471
 	 * @return int
472 472
 	 */
@@ -479,7 +479,7 @@  discard block
 block discarded – undo
479 479
 	/**
480 480
 	 * Checks the Footnote and numbers them - ReportHtml
481 481
 	 *
482
-	 * @param object $footnote
482
+	 * @param ReportBaseFootnote $footnote
483 483
 	 *
484 484
 	 * @return bool false if not numbered before | object if already numbered
485 485
 	 */
@@ -553,7 +553,7 @@  discard block
 block discarded – undo
553 553
 	/**
554 554
 	 * Get the current footnotes height.
555 555
 	 *
556
-	 * @param $cellWidth
556
+	 * @param double $cellWidth
557 557
 	 *
558 558
 	 * @return int
559 559
 	 */
@@ -600,9 +600,9 @@  discard block
 block discarded – undo
600 600
 	/**
601 601
 	 * Get a text height in points - ReportHtml
602 602
 	 *
603
-	 * @param $str
603
+	 * @param string $str
604 604
 	 *
605
-	 * @return int
605
+	 * @return double
606 606
 	 */
607 607
 	public function getTextCellHeight($str) {
608 608
 		// Count the number of lines to calculate the height
@@ -641,7 +641,7 @@  discard block
 block discarded – undo
641 641
 	/**
642 642
 	 * Set the current style.
643 643
 	 *
644
-	 * @param $s
644
+	 * @param string $s
645 645
 	 */
646 646
 	public function setCurrentStyle($s) {
647 647
 		$this->currentStyle = $s;
Please login to merge, or discard this patch.
app/Report/ReportHtmlFootnote.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -59,7 +59,7 @@
 block discarded – undo
59 59
 	 * @param ReportHtml $html
60 60
 	 * @param int        $cellWidth The width of the cell to use it for text wraping
61 61
 	 *
62
-	 * @return int       Footnote height in points
62
+	 * @return double       Footnote height in points
63 63
 	 */
64 64
 	public function getFootnoteHeight($html, $cellWidth = 0) {
65 65
 		if ($html->getCurrentStyle() != $this->styleName) {
Please login to merge, or discard this patch.
app/Report/ReportPdfFootnote.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -59,7 +59,7 @@
 block discarded – undo
59 59
 	 *
60 60
 	 * @param ReportTcpdf $renderer
61 61
 	 *
62
-	 * @return float $h
62
+	 * @return integer $h
63 63
 	 */
64 64
 	public function getFootnoteHeight($renderer) {
65 65
 		return 0;
Please login to merge, or discard this patch.