Skip to content

Commit 082238e

Browse files
authored
Refactor/history (#62)
* Added Slevomat Styleguide rule * Added CodingStyle Rules * refactored history page.
1 parent 50a7ab5 commit 082238e

File tree

105 files changed

+1599
-760
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

105 files changed

+1599
-760
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ For an overview of the software quality over time and the evolving metrics, chec
4848
| functions.php || yyyy-mm-dd |
4949
| groups.php || yyyy-mm-dd |
5050
| help.php || yyyy-mm-dd |
51-
| history.php | | yyyy-mm-dd |
51+
| history.php | | 2025-09-14 |
5252
| index.php || 2024-12-26 |
5353
| indexes.php || yyyy-mm-dd |
5454
| info.php || yyyy-mm-dd |

all_db.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
<?php
22

3+
declare(strict_types=1);
4+
35
use PhpPgAdmin\Website\AllDb;
46

57
require_once __DIR__ . DIRECTORY_SEPARATOR . 'autoload.php';

autoload.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515

1616
require_once __DIR__ . DIRECTORY_SEPARATOR . 'vendor' . DIRECTORY_SEPARATOR . 'autoload.php';
1717

18-
spl_autoload_register(function ($class) {
18+
spl_autoload_register(static function ($class): void {
1919
// project-specific namespace prefix
2020
$prefix = 'PhpPgAdmin\\';
2121

@@ -24,6 +24,7 @@
2424

2525
// does the class use the namespace prefix?
2626
$len = strlen($prefix);
27+
2728
if (strncmp($prefix, $class, $len) !== 0) {
2829
// no, move to the next registered autoloader
2930
return;

browser.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
<?php
22

3+
declare(strict_types=1);
4+
35
use PhpPgAdmin\Website\Browser;
46

57
require_once __DIR__ . DIRECTORY_SEPARATOR . 'autoload.php';

0 commit comments

Comments
 (0)