Completed
Push — develop ( 0fd37b...5cb4f0 )
by Greg
13:35
created
editnews.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -47,7 +47,7 @@
 block discarded – undo
47 47
 
48 48
 switch ($action) {
49 49
 case 'delete':
50
-	Database::prepare("DELETE FROM `##news` WHERE news_id = :news_id")->execute(['news_id' => $news_id,]);
50
+	Database::prepare("DELETE FROM `##news` WHERE news_id = :news_id")->execute(['news_id' => $news_id, ]);
51 51
 
52 52
 	header('Location: index.php?ctype=' . $ctype . '&ged=' . $controller->tree()->getNameUrl());
53 53
 
Please login to merge, or discard this patch.
relationship.php 1 patch
Braces   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -82,7 +82,8 @@  discard block
 block discarded – undo
82 82
 				<?php if ($ancestors_only === '1'): ?>
83 83
 					<input type="hidden" name="ancestors" value="1">
84 84
 					<?= I18N::translate('Find relationships via ancestors') ?>
85
-				<?php else: ?>
85
+				<?php else {
86
+	: ?>
86 87
 					<?= Bootstrap4::radioButtons('ancestors', ['0' => I18N::translate('Find any relationship'), '1' => I18N::translate('Find relationships via ancestors')], $ancestors, false) ?>
87 88
 			<?php endif ?>
88 89
 			</div>
@@ -116,6 +117,7 @@  discard block
 block discarded – undo
116 117
 if ($person1 && $person2) {
117 118
 	if (I18N::direction() === 'ltr') {
118 119
 		$diagonal1 = Theme::theme()->parameter('image-dline');
120
+}
119 121
 		$diagonal2 = Theme::theme()->parameter('image-dline2');
120 122
 	} else {
121 123
 		$diagonal1 = Theme::theme()->parameter('image-dline2');
Please login to merge, or discard this patch.
index.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -13,7 +13,7 @@
 block discarded – undo
13 13
  * You should have received a copy of the GNU General Public License
14 14
  * along with this program. If not, see <http://www.gnu.org/licenses/>.
15 15
  */
16
-declare(strict_types=1);
16
+declare(strict_types = 1);
17 17
 
18 18
 namespace Fisharebest\Webtrees;
19 19
 
Please login to merge, or discard this patch.
routes/web.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -13,7 +13,7 @@
 block discarded – undo
13 13
  * You should have received a copy of the GNU General Public License
14 14
  * along with this program. If not, see <http://www.gnu.org/licenses/>.
15 15
  */
16
-declare(strict_types=1);
16
+declare(strict_types = 1);
17 17
 
18 18
 namespace Fisharebest\Webtrees;
19 19
 
Please login to merge, or discard this patch.
app/Module.php 1 patch
Upper-Lower-Casing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -168,7 +168,7 @@
 block discarded – undo
168 168
 					DebugBar::addThrowable($ex);
169 169
 
170 170
 					// The module has been deleted or is broken? Disable it.
171
-					Log::addConfigurationLog("Module {$module_name} is missing or broken - disabling it. " . $ex->getMessage());
171
+					Log::addConfigurationLog("module {$module_name} is missing or broken - disabling it. " . $ex->getMessage());
172 172
 					Database::prepare(
173 173
 						"UPDATE `##module` SET status = 'disabled' WHERE module_name = :module_name"
174 174
 					)->execute([
Please login to merge, or discard this patch.
app/Database.php 1 patch
Spacing   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -78,8 +78,7 @@
 block discarded – undo
78 78
 		// Create the underlying PDO object
79 79
 		self::$pdo = new PDO(
80 80
 			(substr($config['dbhost'], 0, 1) === '/' ?
81
-				"mysql:unix_socket={$config['dbhost']};dbname={$config['dbname']}" :
82
-				"mysql:host={$config['dbhost']};dbname={$config['dbname']};port={$config['dbport']}"
81
+				"mysql:unix_socket={$config['dbhost']};dbname={$config['dbname']}" : "mysql:host={$config['dbhost']};dbname={$config['dbname']};port={$config['dbport']}"
83 82
 			),
84 83
 			$config['dbuser'], $config['dbpass'],
85 84
 			[
Please login to merge, or discard this patch.
app/DebugBar.php 1 patch
Doc Comments   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -179,7 +179,7 @@  discard block
 block discarded – undo
179 179
 	/**
180 180
 	 * Log an exception/throwable
181 181
 	 *
182
-	 * @param Throwable $throwable
182
+	 * @param \Exception $throwable
183 183
 	 */
184 184
 	public static function addThrowable(Throwable $throwable) {
185 185
 		if (self::$debugbar !== null) {
@@ -190,7 +190,6 @@  discard block
 block discarded – undo
190 190
 	/**
191 191
 	 * Log an exception/throwable
192 192
 	 *
193
-	 * @param Throwable $throwable
194 193
 	 */
195 194
 	public static function addView(string $view, array $data) {
196 195
 		if (self::$debugbar !== null) {
Please login to merge, or discard this patch.
app/Http/Controllers/HomePageController.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -492,7 +492,7 @@
 block discarded – undo
492 492
 	 * Take a list of block names, and return block (module) objects.
493 493
 	 *
494 494
 	 * @param string[] $blocks
495
-	 * @param array    $active_blocks
495
+	 * @param ModuleBlockInterface[]    $active_blocks
496 496
 	 *
497 497
 	 * @return ModuleBlockInterface[]
498 498
 	 */
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -13,7 +13,7 @@
 block discarded – undo
13 13
  * You should have received a copy of the GNU General Public License
14 14
  * along with this program. If not, see <http://www.gnu.org/licenses/>.
15 15
  */
16
-declare(strict_types=1);
16
+declare(strict_types = 1);
17 17
 
18 18
 namespace Fisharebest\Webtrees\Http\Controllers;
19 19
 
Please login to merge, or discard this patch.
app/Controller/PageController.php 1 patch
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -17,7 +17,6 @@
 block discarded – undo
17 17
 
18 18
 use Fisharebest\Webtrees\Auth;
19 19
 use Fisharebest\Webtrees\Database;
20
-use Fisharebest\Webtrees\DebugBar;
21 20
 use Fisharebest\Webtrees\Family;
22 21
 use Fisharebest\Webtrees\Functions\Functions;
23 22
 use Fisharebest\Webtrees\I18N;
Please login to merge, or discard this patch.