Passed
Pull Request — master (#1)
by Peter
03:15
created

WebsiteLists   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 12
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 3
c 1
b 0
f 0
dl 0
loc 12
rs 10
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A getCreationDate() 0 3 1
1
<?php
2
3
declare(strict_types=1);
4
5
namespace AbterPhp\Website\Databases\Migrations;
6
7
use AbterPhp\Framework\Databases\Migrations\BaseMigration;
8
use DateTime;
9
10
class WebsiteLists extends BaseMigration
11
{
12
    const FILENAME = 'website-lists.sql';
13
14
    /**
15
     * Gets the creation date, which is used for ordering
16
     *
17
     * @return DateTime The date this migration was created
18
     */
19
    public static function getCreationDate(): DateTime
20
    {
21
        return DateTime::createFromFormat(DateTime::ATOM, '2019-12-13T18:52:00+00:00');
0 ignored issues
show
Bug Best Practice introduced by
The expression return DateTime::createF...-12-13T18:52:00+00:00') could return the type false which is incompatible with the type-hinted return DateTime. Consider adding an additional type-check to rule them out.
Loading history...
22
    }
23
}
24