Completed
Pull Request — master (#1904)
by Rico
09:54
created
app/Tree.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -1,5 +1,5 @@  discard block
 block discarded – undo
1 1
 <?php
2
-declare(strict_types = 1);
2
+declare(strict_types=1);
3 3
 /**
4 4
  * webtrees: online genealogy
5 5
  * Copyright (C) 2018 webtrees development team
@@ -295,7 +295,7 @@  discard block
 block discarded – undo
295 295
     public static function getAll(): array
296 296
     {
297 297
         if (empty(self::$trees)) {
298
-            $rows        = Database::prepare(
298
+            $rows = Database::prepare(
299 299
                 "SELECT g.gedcom_id AS tree_id, g.gedcom_name AS tree_name, gs1.setting_value AS tree_title" .
300 300
                 " FROM `##gedcom` g" .
301 301
                 " LEFT JOIN `##gedcom_setting`      gs1 ON (g.gedcom_id=gs1.gedcom_id AND gs1.setting_name='title')" .
Please login to merge, or discard this patch.
app/Database.php 1 patch
Spacing   +4 added lines, -5 removed lines patch added patch discarded remove patch
@@ -1,5 +1,5 @@  discard block
 block discarded – undo
1 1
 <?php
2
-declare(strict_types = 1);
2
+declare(strict_types=1);
3 3
 /**
4 4
  * webtrees: online genealogy
5 5
  * Copyright (C) 2018 webtrees development team
@@ -89,8 +89,7 @@  discard block
 block discarded – undo
89 89
         self::$table_prefix = $config['tblpfx'];
90 90
 
91 91
         $dsn = (substr($config['dbhost'], 0, 1) === '/' ?
92
-            "mysql:unix_socket='{$config['dbhost']};dbname={$config['dbname']}" :
93
-            "mysql:host={$config['dbhost']};dbname={$config['dbname']};port={$config['dbport']}"
92
+            "mysql:unix_socket='{$config['dbhost']};dbname={$config['dbname']}" : "mysql:host={$config['dbhost']};dbname={$config['dbname']};port={$config['dbport']}"
94 93
         );
95 94
 
96 95
         // Create the underlying PDO object.
@@ -223,7 +222,7 @@  discard block
 block discarded – undo
223 222
     public static function updateSchema($namespace, $schema_name, $target_version): bool
224 223
     {
225 224
         try {
226
-            $current_version = (int)Site::getPreference($schema_name);
225
+            $current_version = (int) Site::getPreference($schema_name);
227 226
         } catch (PDOException $ex) {
228 227
             DebugBar::addThrowable($ex);
229 228
 
@@ -240,7 +239,7 @@  discard block
 block discarded – undo
240 239
             $migration = new $class();
241 240
             $migration->upgrade();
242 241
             $current_version++;
243
-            Site::setPreference($schema_name, (string)$current_version);
242
+            Site::setPreference($schema_name, (string) $current_version);
244 243
             $updates_applied = true;
245 244
         }
246 245
 
Please login to merge, or discard this patch.
app/CommonMark/XrefParser.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,5 +1,5 @@
 block discarded – undo
1 1
 <?php
2
-declare(strict_types = 1);
2
+declare(strict_types=1);
3 3
 /**
4 4
  * webtrees: online genealogy
5 5
  * Copyright (C) 2018 webtrees development team
Please login to merge, or discard this patch.
app/CommonMark/XrefExtension.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,5 +1,5 @@
 block discarded – undo
1 1
 <?php
2
-declare(strict_types = 1);
2
+declare(strict_types=1);
3 3
 /**
4 4
  * webtrees: online genealogy
5 5
  * Copyright (C) 2018 webtrees development team
Please login to merge, or discard this patch.
app/CommonMark/CensusTableParser.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,5 +1,5 @@
 block discarded – undo
1 1
 <?php
2
-declare(strict_types = 1);
2
+declare(strict_types=1);
3 3
 /**
4 4
  * webtrees: online genealogy
5 5
  * Copyright (C) 2018 webtrees development team
Please login to merge, or discard this patch.
app/CommonMark/CensusTableExtension.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,5 +1,5 @@
 block discarded – undo
1 1
 <?php
2
-declare(strict_types = 1);
2
+declare(strict_types=1);
3 3
 /**
4 4
  * webtrees: online genealogy
5 5
  * Copyright (C) 2018 webtrees development team
Please login to merge, or discard this patch.
app/Statement.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -1,5 +1,5 @@  discard block
 block discarded – undo
1 1
 <?php
2
-declare(strict_types = 1);
2
+declare(strict_types=1);
3 3
 /**
4 4
  * webtrees: online genealogy
5 5
  * Copyright (C) 2018 webtrees development team
@@ -72,7 +72,7 @@  discard block
 block discarded – undo
72 72
                     $this->pdo_statement->bindValue($key, $bind_variable, PDO::PARAM_NULL);
73 73
                     break;
74 74
                 case 'boolean':
75
-                    $this->pdo_statement->bindValue($key, (int)$bind_variable, PDO::PARAM_INT);
75
+                    $this->pdo_statement->bindValue($key, (int) $bind_variable, PDO::PARAM_INT);
76 76
                     break;
77 77
                 case 'integer':
78 78
                     $this->pdo_statement->bindValue($key, $bind_variable, PDO::PARAM_INT);
Please login to merge, or discard this patch.
app/Media.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,5 +1,5 @@
 block discarded – undo
1 1
 <?php
2
-declare(strict_types = 1);
2
+declare(strict_types=1);
3 3
 /**
4 4
  * webtrees: online genealogy
5 5
  * Copyright (C) 2018 webtrees development team
Please login to merge, or discard this patch.
app/Schema/Migration10.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,5 +1,5 @@
 block discarded – undo
1 1
 <?php
2
-declare(strict_types = 1);
2
+declare(strict_types=1);
3 3
 /**
4 4
  * webtrees: online genealogy
5 5
  * Copyright (C) 2018 webtrees development team
Please login to merge, or discard this patch.