@@ -85,8 +85,7 @@ |
||
| 85 | 85 | // Create the underlying PDO object |
| 86 | 86 | self::$pdo = new PDO( |
| 87 | 87 | (substr($DBHOST, 0, 1) === '/' ? |
| 88 | - "mysql:unix_socket={$DBHOST};dbname={$DBNAME}" : |
|
| 89 | - "mysql:host={$DBHOST};dbname={$DBNAME};port={$DBPORT}" |
|
| 88 | + "mysql:unix_socket={$DBHOST};dbname={$DBNAME}" : "mysql:host={$DBHOST};dbname={$DBNAME};port={$DBPORT}" |
|
| 90 | 89 | ), |
| 91 | 90 | $DBUSER, $DBPASS, |
| 92 | 91 | array( |
@@ -16,8 +16,8 @@ |
||
| 16 | 16 | namespace Fisharebest\Webtrees; |
| 17 | 17 | |
| 18 | 18 | use Exception; |
| 19 | -use Swift_Mailer; |
|
| 20 | 19 | use Swift_MailTransport; |
| 20 | +use Swift_Mailer; |
|
| 21 | 21 | use Swift_Message; |
| 22 | 22 | use Swift_NullTransport; |
| 23 | 23 | use Swift_SmtpTransport; |
@@ -19,7 +19,6 @@ |
||
| 19 | 19 | use Fisharebest\Webtrees\Database; |
| 20 | 20 | use Fisharebest\Webtrees\Filter; |
| 21 | 21 | use Fisharebest\Webtrees\Functions\FunctionsDate; |
| 22 | -use Fisharebest\Webtrees\Functions\FunctionsPrint; |
|
| 23 | 22 | use Fisharebest\Webtrees\I18N; |
| 24 | 23 | use Fisharebest\Webtrees\Theme; |
| 25 | 24 | |
@@ -109,7 +109,7 @@ |
||
| 109 | 109 | </option> |
| 110 | 110 | </select> |
| 111 | 111 | </td> |
| 112 | - <?php else: ?> |
|
| 112 | + <?php else : ?> |
|
| 113 | 113 | <td class="descriptionbox wrap"></td> |
| 114 | 114 | <td class="optionbox wrap"></td> |
| 115 | 115 | <?php endif ?> |
@@ -1486,7 +1486,7 @@ |
||
| 1486 | 1486 | '1' => I18N::translateContext('Show the [first/last] [N] parts of a place name.', 'last'), |
| 1487 | 1487 | ], $WT_TREE->getPreference('SHOW_PEDIGREE_PLACES_SUFFIX') |
| 1488 | 1488 | ), |
| 1489 | - Bootstrap4::select('SHOW_PEDIGREE_PLACES', FunctionsEdit::numericOptions(range(1,9)), $WT_TREE->getPreference('SHOW_PEDIGREE_PLACES')) |
|
| 1489 | + Bootstrap4::select('SHOW_PEDIGREE_PLACES', FunctionsEdit::numericOptions(range(1, 9)), $WT_TREE->getPreference('SHOW_PEDIGREE_PLACES')) |
|
| 1490 | 1490 | ) ?> |
| 1491 | 1491 | <p class="small text-muted"> |
| 1492 | 1492 | <?= /* I18N: Help text for the “Abbreviate place names” configuration setting */ I18N::translate('Place names are frequently too long to fit on charts, lists, etc. They can be abbreviated by showing just the first few parts of the name, such as <i>village, county</i>, or the last few part of it, such as <i>region, country</i>.') ?> |
@@ -19,7 +19,6 @@ |
||
| 19 | 19 | use Fisharebest\Webtrees\Fact; |
| 20 | 20 | use Fisharebest\Webtrees\Functions\Functions; |
| 21 | 21 | use Fisharebest\Webtrees\Functions\FunctionsPrintFacts; |
| 22 | -use Fisharebest\Webtrees\GedcomTag; |
|
| 23 | 22 | use Fisharebest\Webtrees\I18N; |
| 24 | 23 | |
| 25 | 24 | /** |
@@ -19,7 +19,6 @@ |
||
| 19 | 19 | use Fisharebest\Webtrees\Fact; |
| 20 | 20 | use Fisharebest\Webtrees\Functions\Functions; |
| 21 | 21 | use Fisharebest\Webtrees\Functions\FunctionsPrintFacts; |
| 22 | -use Fisharebest\Webtrees\GedcomTag; |
|
| 23 | 22 | use Fisharebest\Webtrees\I18N; |
| 24 | 23 | |
| 25 | 24 | /** |
@@ -25,7 +25,6 @@ |
||
| 25 | 25 | use Fisharebest\Webtrees\Query\QueryName; |
| 26 | 26 | use PDO; |
| 27 | 27 | use PDOException; |
| 28 | -use Rhumsaa\Uuid\Uuid; |
|
| 29 | 28 | |
| 30 | 29 | /** |
| 31 | 30 | * A selection of pre-formatted statistical queries. |
@@ -49,7 +49,7 @@ |
||
| 49 | 49 | protected function formatSecondaryMenu() { |
| 50 | 50 | return |
| 51 | 51 | '<ul class="secondary-menu">' . |
| 52 | - implode('', array_map(function(Menu $menu) { return $this->formatSecondaryMenuItem($menu); }, $this->secondaryMenu())) . |
|
| 52 | + implode('', array_map(function (Menu $menu) { return $this->formatSecondaryMenuItem($menu); }, $this->secondaryMenu())) . |
|
| 53 | 53 | '<li>' . |
| 54 | 54 | $this->formQuickSearch() . |
| 55 | 55 | '</li>' . |