Completed
Push — 1.7 ( ce7091...0d97cf )
by Greg
14:14 queued 07:41
created
app/Module/GoogleMaps/Schema/Migration1.php 1 patch
Braces   +4 added lines, -2 removed lines patch added patch discarded remove patch
@@ -22,9 +22,11 @@
 block discarded – undo
22 22
 /**
23 23
  * Upgrade the database schema from version 1 to version 2.
24 24
  */
25
-class Migration1 implements MigrationInterface {
25
+class Migration1 implements MigrationInterface
26
+{
26 27
 	/** {@inheritDoc} */
27
-	public function upgrade() {
28
+	public function upgrade()
29
+	{
28 30
 		// Update the tables to support streetview
29 31
 		try {
30 32
 			Database::exec(
Please login to merge, or discard this patch.
app/Module/GoogleMaps/Schema/Migration5.php 1 patch
Braces   +4 added lines, -2 removed lines patch added patch discarded remove patch
@@ -21,9 +21,11 @@
 block discarded – undo
21 21
 /**
22 22
  * Upgrade the database schema from version 5 to version 6.
23 23
  */
24
-class Migration5 implements MigrationInterface {
24
+class Migration5 implements MigrationInterface
25
+{
25 26
 	/** {@inheritDoc} */
26
-	public function upgrade() {
27
+	public function upgrade()
28
+	{
27 29
 		// Default settings
28 30
 		Database::prepare(
29 31
 			"INSERT IGNORE INTO `##module_setting` (module_name, setting_name, setting_value) VALUES " .
Please login to merge, or discard this patch.
app/Module/GoogleMaps/Schema/Migration0.php 1 patch
Braces   +4 added lines, -2 removed lines patch added patch discarded remove patch
@@ -21,9 +21,11 @@
 block discarded – undo
21 21
 /**
22 22
  * Upgrade the database schema from version 0 (empty database) to version 1.
23 23
  */
24
-class Migration0 implements MigrationInterface {
24
+class Migration0 implements MigrationInterface
25
+{
25 26
 	/** {@inheritDoc} */
26
-	public function upgrade() {
27
+	public function upgrade()
28
+	{
27 29
 		// Create the tables, as per PhpGedView 4.2.1
28 30
 
29 31
 		Database::exec(
Please login to merge, or discard this patch.
app/Module/GoogleMaps/Schema/Migration3.php 1 patch
Braces   +4 added lines, -2 removed lines patch added patch discarded remove patch
@@ -21,9 +21,11 @@
 block discarded – undo
21 21
 /**
22 22
  * Upgrade the database schema from version 3 to version 4.
23 23
  */
24
-class Migration3 implements MigrationInterface {
24
+class Migration3 implements MigrationInterface
25
+{
25 26
 	/** {@inheritDoc} */
26
-	public function upgrade() {
27
+	public function upgrade()
28
+	{
27 29
 		// Combine the two ways of enabling the GM module
28 30
 		Database::exec(
29 31
 			"UPDATE `##module` m, `##module_setting` ms SET m.status=CASE WHEN (m.status=1 AND ms.setting_value=1) THEN 'enabled' ELSE 'disabled' END WHERE m.module_name=ms.module_name AND m.module_name='googlemap' AND ms.setting_name='GM_ENABLED'"
Please login to merge, or discard this patch.
app/Module/GoogleMaps/Schema/Migration4.php 1 patch
Braces   +4 added lines, -2 removed lines patch added patch discarded remove patch
@@ -21,9 +21,11 @@
 block discarded – undo
21 21
 /**
22 22
  * Upgrade the database schema from version 4 to version 5.
23 23
  */
24
-class Migration4 implements MigrationInterface {
24
+class Migration4 implements MigrationInterface
25
+{
25 26
 	/** {@inheritDoc} */
26
-	public function upgrade() {
27
+	public function upgrade()
28
+	{
27 29
 		// Delete some old/unused configuration settings
28 30
 		Database::exec(
29 31
 			"DELETE FROM `##module_setting` WHERE module_name='googlemap' AND setting_name IN (
Please login to merge, or discard this patch.
app/Module/ExtraInformationModule.php 1 patch
Braces   +16 added lines, -8 removed lines patch added patch discarded remove patch
@@ -23,24 +23,29 @@  discard block
 block discarded – undo
23 23
  * Class ExtraInformationModule
24 24
  * A sidebar to show non-genealogy information about an individual
25 25
  */
26
-class ExtraInformationModule extends AbstractModule implements ModuleSidebarInterface {
26
+class ExtraInformationModule extends AbstractModule implements ModuleSidebarInterface
27
+{
27 28
 	/** {@inheritdoc} */
28
-	public function getTitle() {
29
+	public function getTitle()
30
+	{
29 31
 		return /* I18N: Name of a module/sidebar */ I18N::translate('Extra information');
30 32
 	}
31 33
 
32 34
 	/** {@inheritdoc} */
33
-	public function getDescription() {
35
+	public function getDescription()
36
+	{
34 37
 		return /* I18N: Description of the “Extra information” module */ I18N::translate('A sidebar showing non-genealogy information about an individual.');
35 38
 	}
36 39
 
37 40
 	/** {@inheritdoc} */
38
-	public function defaultSidebarOrder() {
41
+	public function defaultSidebarOrder()
42
+	{
39 43
 		return 10;
40 44
 	}
41 45
 
42 46
 	/** {@inheritdoc} */
43
-	public function hasSidebarContent() {
47
+	public function hasSidebarContent()
48
+	{
44 49
 		return true;
45 50
 	}
46 51
 
@@ -49,7 +54,8 @@  discard block
 block discarded – undo
49 54
 	 *
50 55
 	 * @return string
51 56
 	 */
52
-	public function getSidebarContent() {
57
+	public function getSidebarContent()
58
+	{
53 59
 		global $controller;
54 60
 
55 61
 		$indifacts = array();
@@ -73,7 +79,8 @@  discard block
 block discarded – undo
73 79
 	}
74 80
 
75 81
 	/** {@inheritdoc} */
76
-	public function getSidebarAjaxContent() {
82
+	public function getSidebarAjaxContent()
83
+	{
77 84
 		return '';
78 85
 	}
79 86
 
@@ -84,7 +91,8 @@  discard block
 block discarded – undo
84 91
 	 *
85 92
 	 * @return bool
86 93
 	 */
87
-	public static function showFact(Fact $fact) {
94
+	public static function showFact(Fact $fact)
95
+	{
88 96
 		switch ($fact->getTag()) {
89 97
 		case 'AFN':
90 98
 		case 'CHAN':
Please login to merge, or discard this patch.
app/Module/ClippingsCart/ClippingsCartController.php 1 patch
Braces   +20 added lines, -10 removed lines patch added patch discarded remove patch
@@ -30,7 +30,8 @@  discard block
 block discarded – undo
30 30
 /**
31 31
  * The clippings cart.
32 32
  */
33
-class ClippingsCartController {
33
+class ClippingsCartController
34
+{
34 35
 	/** @var string Data to be downloaded. */
35 36
 	private $download_data;
36 37
 
@@ -70,7 +71,8 @@  discard block
 block discarded – undo
70 71
 	/**
71 72
 	 * Create the clippings controller
72 73
 	 */
73
-	public function __construct() {
74
+	public function __construct()
75
+	{
74 76
 		global $WT_TREE;
75 77
 
76 78
 		// Our cart is an array of items in the session
@@ -292,7 +294,8 @@  discard block
 block discarded – undo
292 294
 	/**
293 295
 	 * Loads everything in the clippings cart into a zip file.
294 296
 	 */
295
-	private function zipCart() {
297
+	private function zipCart()
298
+	{
296 299
 		$tempFileName = 'clipping' . rand() . '.ged';
297 300
 		$fp           = fopen(WT_DATA_DIR . $tempFileName, "wb");
298 301
 		if ($fp) {
@@ -325,7 +328,8 @@  discard block
 block discarded – undo
325 328
 	 * Brings up the download dialog box and allows the user to download the file
326 329
 	 * based on the options he or she selected.
327 330
 	 */
328
-	public function downloadClipping() {
331
+	public function downloadClipping()
332
+	{
329 333
 		if ($this->IncludeMedia === 'yes' || $this->Zip === 'yes') {
330 334
 			header('Content-Type: application/zip');
331 335
 			header('Content-Disposition: attachment; filename="clipping.zip"');
@@ -345,7 +349,8 @@  discard block
 block discarded – undo
345 349
 	 *
346 350
 	 * @param GedcomRecord $record
347 351
 	 */
348
-	public function addClipping(GedcomRecord $record) {
352
+	public function addClipping(GedcomRecord $record)
353
+	{
349 354
 		if ($record->canShowName()) {
350 355
 			$this->cart[$record->getTree()->getTreeId()][$record->getXref()] = true;
351 356
 			// Add directly linked records
@@ -362,7 +367,8 @@  discard block
 block discarded – undo
362 367
 	 * @param Family|null $family
363 368
 	 * @param int         $level
364 369
 	 */
365
-	public function addFamilyDescendancy(Family $family = null, $level = PHP_INT_MAX) {
370
+	public function addFamilyDescendancy(Family $family = null, $level = PHP_INT_MAX)
371
+	{
366 372
 		if (!$family) {
367 373
 			return;
368 374
 		}
@@ -385,7 +391,8 @@  discard block
 block discarded – undo
385 391
 	 *
386 392
 	 * @param Family|null $family
387 393
 	 */
388
-	public function addFamilyMembers(Family $family = null) {
394
+	public function addFamilyMembers(Family $family = null)
395
+	{
389 396
 		if (!$family) {
390 397
 			return;
391 398
 		}
@@ -404,7 +411,8 @@  discard block
 block discarded – undo
404 411
 	 * @param Individual|null $person
405 412
 	 * @param int             $level
406 413
 	 */
407
-	public function addAncestorsToCart(Individual $person = null, $level = 0) {
414
+	public function addAncestorsToCart(Individual $person = null, $level = 0)
415
+	{
408 416
 		if (!$person) {
409 417
 			return;
410 418
 		}
@@ -424,7 +432,8 @@  discard block
 block discarded – undo
424 432
 	 * @param Individual|null $person
425 433
 	 * @param int             $level
426 434
 	 */
427
-	public function addAncestorsToCartFamilies(Individual $person = null, $level = 0) {
435
+	public function addAncestorsToCartFamilies(Individual $person = null, $level = 0)
436
+	{
428 437
 		if (!$person) {
429 438
 			return;
430 439
 		}
@@ -445,7 +454,8 @@  discard block
 block discarded – undo
445 454
 	 *
446 455
 	 * @return int
447 456
 	 */
448
-	private static function compareClippings($a, $b) {
457
+	private static function compareClippings($a, $b)
458
+	{
449 459
 		global $WT_TREE;
450 460
 
451 461
 		$a = GedcomRecord::getInstance($a, $WT_TREE);
Please login to merge, or discard this patch.
app/Module/LoggedInUsersModule.php 1 patch
Braces   +16 added lines, -8 removed lines patch added patch discarded remove patch
@@ -26,14 +26,17 @@  discard block
 block discarded – undo
26 26
 /**
27 27
  * Class LoggedInUsersModule
28 28
  */
29
-class LoggedInUsersModule extends AbstractModule implements ModuleBlockInterface {
29
+class LoggedInUsersModule extends AbstractModule implements ModuleBlockInterface
30
+{
30 31
 	/** {@inheritdoc} */
31
-	public function getTitle() {
32
+	public function getTitle()
33
+	{
32 34
 		return /* I18N: Name of a module. (A list of users who are online now) */ I18N::translate('Who is online');
33 35
 	}
34 36
 
35 37
 	/** {@inheritdoc} */
36
-	public function getDescription() {
38
+	public function getDescription()
39
+	{
37 40
 		return /* I18N: Description of the “Who is online” module */ I18N::translate('A list of users and visitors who are currently online.');
38 41
 	}
39 42
 
@@ -46,7 +49,8 @@  discard block
 block discarded – undo
46 49
 	 *
47 50
 	 * @return string
48 51
 	 */
49
-	public function getBlock($block_id, $template = true, $cfg = array()) {
52
+	public function getBlock($block_id, $template = true, $cfg = array())
53
+	{
50 54
 		global $WT_TREE;
51 55
 
52 56
 		$id        = $this->getName() . $block_id;
@@ -106,17 +110,20 @@  discard block
 block discarded – undo
106 110
 	}
107 111
 
108 112
 	/** {@inheritdoc} */
109
-	public function loadAjax() {
113
+	public function loadAjax()
114
+	{
110 115
 		return false;
111 116
 	}
112 117
 
113 118
 	/** {@inheritdoc} */
114
-	public function isUserBlock() {
119
+	public function isUserBlock()
120
+	{
115 121
 		return true;
116 122
 	}
117 123
 
118 124
 	/** {@inheritdoc} */
119
-	public function isGedcomBlock() {
125
+	public function isGedcomBlock()
126
+	{
120 127
 		return true;
121 128
 	}
122 129
 
@@ -125,6 +132,7 @@  discard block
 block discarded – undo
125 132
 	 *
126 133
 	 * @param int $block_id
127 134
 	 */
128
-	public function configureBlock($block_id) {
135
+	public function configureBlock($block_id)
136
+	{
129 137
 	}
130 138
 }
Please login to merge, or discard this patch.
app/Module/ModuleReportInterface.php 1 patch
Braces   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -20,7 +20,8 @@
 block discarded – undo
20 20
 /**
21 21
  * Interface ModuleReportInterface - Classes and libraries for module system
22 22
  */
23
-interface ModuleReportInterface {
23
+interface ModuleReportInterface
24
+{
24 25
 	/**
25 26
 	 * Return a menu item for this report.
26 27
 	 *
Please login to merge, or discard this patch.