Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion rector.php
Original file line number Diff line number Diff line change
Expand Up @@ -202,4 +202,4 @@
// keep '\\' prefix string on string '\Foo\Bar'
StringClassNameToClassConstantRector::SHOULD_KEEP_PRE_SLASH => true,
])
->withCodeQualityLevel(58);
->withCodeQualityLevel(61);
4 changes: 1 addition & 3 deletions system/Database/MigrationRunner.php
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ class MigrationRunner
*
* @var string|null
*/
protected $namespace;
protected $namespace = APP_NAMESPACE;

/**
* The database Group to migrate.
Expand Down Expand Up @@ -136,8 +136,6 @@ public function __construct(MigrationsConfig $config, $db = null)
$this->enabled = $config->enabled ?? false;
$this->table = $config->table ?? 'migrations';

$this->namespace = APP_NAMESPACE;

// Even if a DB connection is passed, since it is a test,
// it is assumed to use the default group name
$this->group = is_string($db) ? $db : config(Database::class)->defaultGroup;
Expand Down
10 changes: 5 additions & 5 deletions system/Pager/PagerRenderer.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,12 @@ class PagerRenderer
/**
* First page number in the set of links to be displayed.
*
* `first` and `last` will be updated by `setSurroundCount()`.
* You must call `setSurroundCount()` after instantiation.
*
* @var int
*/
protected $first;
protected $first = 1;

/**
* Last page number in the set of links to be displayed.
Expand Down Expand Up @@ -102,10 +105,7 @@ class PagerRenderer
*/
public function __construct(array $details)
{
// `first` and `last` will be updated by `setSurroundCount()`.
// You must call `setSurroundCount()` after instantiation.
$this->first = 1;
$this->last = $details['pageCount'];
$this->last = $details['pageCount'];

$this->current = $details['currentPage'];
$this->total = $details['total'];
Expand Down
Loading