Test Failed
Branch master (4a3c5b)
by Greg
12:31
created
admin_site_upgrade.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -29,10 +29,10 @@
 block discarded – undo
29 29
 // Check for updates
30 30
 $latest_version_txt = Functions::fetchLatestVersion();
31 31
 if (preg_match('/^[0-9.]+\|[0-9.]+\|/', $latest_version_txt)) {
32
-	list($latest_version, , $download_url) = explode('|', $latest_version_txt);
32
+	list($latest_version,, $download_url) = explode('|', $latest_version_txt);
33 33
 } else {
34 34
 	// Cannot determine the latest version
35
-	list($latest_version, , $download_url) = explode('|', '||');
35
+	list($latest_version,, $download_url) = explode('|', '||');
36 36
 }
37 37
 
38 38
 $latest_version_html = '<span dir="ltr">' . $latest_version . '</span>';
Please login to merge, or discard this patch.
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.
mediafirewall.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -68,7 +68,7 @@
 block discarded – undo
68 68
 	// Caution - $media_dir may contain relative paths: ../../
69 69
 	$source_dir = new Filesystem(new Local(WT_DATA_DIR . $media_dir));
70 70
 	$cache_dir  = new Filesystem(new Local(WT_DATA_DIR . 'thumbnail-cache/' . md5($media_dir)));
71
-	$assets_dir = new Filesystem(new Local( 'assets'));
71
+	$assets_dir = new Filesystem(new Local('assets'));
72 72
 
73 73
 	$server = ServerFactory::create([
74 74
 		'driver'     => $driver,
Please login to merge, or discard this patch.
app/Controller/IndividualController.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -97,7 +97,7 @@  discard block
 block discarded – undo
97 97
 	public function getTabs() {
98 98
 		$active_tabs = Module::getActiveTabs($this->record->getTree());
99 99
 
100
-		return array_filter($active_tabs, function(ModuleTabInterface $tab) {
100
+		return array_filter($active_tabs, function (ModuleTabInterface $tab) {
101 101
 			return $tab->hasTabContent();
102 102
 		});
103 103
 	}
@@ -247,7 +247,7 @@  discard block
 block discarded – undo
247 247
 		}
248 248
 
249 249
 		if ($individual->canEdit() && !$fact->isPendingDeletion()) {
250
-			$edit_links = FontAwesome::linkIcon('edit', I18N::translate('Edit the gender'), ['class' => 'btn btn-link', 'href' => 'edit_interface.php?action=edit&xref=' . $individual->getXref() . '&fact_id=' . $fact->getFactId() . '&ged=' . $individual->getTree()->getNameHtml() ]);
250
+			$edit_links = FontAwesome::linkIcon('edit', I18N::translate('Edit the gender'), ['class' => 'btn btn-link', 'href' => 'edit_interface.php?action=edit&xref=' . $individual->getXref() . '&fact_id=' . $fact->getFactId() . '&ged=' . $individual->getTree()->getNameHtml()]);
251 251
 		} else {
252 252
 			$edit_links = '';
253 253
 		}
Please login to merge, or discard this patch.
message.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -95,7 +95,7 @@  discard block
 block discarded – undo
95 95
 $controller->restrictAccess(!in_array($to, ['all', 'never_logged', 'last_6mo']) || Auth::isAdmin());
96 96
 $controller->pageHeader();
97 97
 
98
-$to_names = implode(I18N::$list_separator, array_map(function(User $user) {
98
+$to_names = implode(I18N::$list_separator, array_map(function (User $user) {
99 99
 	return $user->getRealName();
100 100
 }, recipients($to)));
101 101
 
@@ -184,11 +184,11 @@  discard block
 block discarded – undo
184 184
 	if ($to === 'all') {
185 185
 		$recipients = User::all();
186 186
 	} elseif ($to === 'last_6mo') {
187
-		$recipients = array_filter(User::all(), function(User $user) {
187
+		$recipients = array_filter(User::all(), function (User $user) {
188 188
 			return $user->getPreference('sessiontime') > 0 && WT_TIMESTAMP - $user->getPreference('sessiontime') > 60 * 60 * 24 * 30 * 6;
189 189
 		});
190 190
 	} elseif ($to === 'never_logged') {
191
-		$recipients = array_filter(User::all(), function(User $user) {
191
+		$recipients = array_filter(User::all(), function (User $user) {
192 192
 			return $user->getPreference('verified_by_admin') && $user->getPreference('reg_timestamp') > $user->getPreference('sessiontime');
193 193
 		});
194 194
 	} else {
Please login to merge, or discard this patch.
app/View.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -62,7 +62,7 @@
 block discarded – undo
62 62
 	 * @return string
63 63
 	 */
64 64
 	public static function getFilenameForView($view_name) {
65
-		$view_file  = $view_name . '.php';
65
+		$view_file = $view_name . '.php';
66 66
 		//$theme_view = WT_THEMES_DIR . Theme::theme()->themeId() . '/resources/views/' . $view_file;
67 67
 
68 68
 		//if (file_exists($theme_view)) {
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/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.