Time   A
last analyzed

Complexity

Total Complexity 5

Size/Duplication

Total Lines 26
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 6
c 1
b 0
f 0
dl 0
loc 26
rs 10
wmc 5

5 Methods

Rating   Name   Duplication   Size   Complexity  
A timeBasicPlusYears() 0 3 1
A timeLong() 0 3 1
A timeBasic() 0 3 1
A stamp() 0 3 1
A timeBasicPlusDays() 0 3 1
1
<?php
2
namespace GJClasses;
3
4
class Time
5
{
6
7
    public function stamp()
8
    {
9
        return gmdate('Y-m-d H:i:s', mktime(date("H"), date("i"), date("s"), date("m"), date("d"), date("Y")));
0 ignored issues
show
Bug introduced by
date('Y') of type string is incompatible with the type integer expected by parameter $year of mktime(). ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-type  annotation

9
        return gmdate('Y-m-d H:i:s', mktime(date("H"), date("i"), date("s"), date("m"), date("d"), /** @scrutinizer ignore-type */ date("Y")));
Loading history...
Bug introduced by
date('H') of type string is incompatible with the type integer expected by parameter $hour of mktime(). ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-type  annotation

9
        return gmdate('Y-m-d H:i:s', mktime(/** @scrutinizer ignore-type */ date("H"), date("i"), date("s"), date("m"), date("d"), date("Y")));
Loading history...
Bug introduced by
date('i') of type string is incompatible with the type integer expected by parameter $minute of mktime(). ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-type  annotation

9
        return gmdate('Y-m-d H:i:s', mktime(date("H"), /** @scrutinizer ignore-type */ date("i"), date("s"), date("m"), date("d"), date("Y")));
Loading history...
Bug introduced by
date('d') of type string is incompatible with the type integer expected by parameter $day of mktime(). ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-type  annotation

9
        return gmdate('Y-m-d H:i:s', mktime(date("H"), date("i"), date("s"), date("m"), /** @scrutinizer ignore-type */ date("d"), date("Y")));
Loading history...
Bug introduced by
date('s') of type string is incompatible with the type integer expected by parameter $second of mktime(). ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-type  annotation

9
        return gmdate('Y-m-d H:i:s', mktime(date("H"), date("i"), /** @scrutinizer ignore-type */ date("s"), date("m"), date("d"), date("Y")));
Loading history...
Bug introduced by
date('m') of type string is incompatible with the type integer expected by parameter $month of mktime(). ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-type  annotation

9
        return gmdate('Y-m-d H:i:s', mktime(date("H"), date("i"), date("s"), /** @scrutinizer ignore-type */ date("m"), date("d"), date("Y")));
Loading history...
10
    }
11
12
    public function timeLong()
13
    {
14
        return gmdate('l, F jS', mktime(date("H"), date("i"), date("s"), date("m"), date("d"), date("Y")));
0 ignored issues
show
Bug introduced by
date('m') of type string is incompatible with the type integer expected by parameter $month of mktime(). ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-type  annotation

14
        return gmdate('l, F jS', mktime(date("H"), date("i"), date("s"), /** @scrutinizer ignore-type */ date("m"), date("d"), date("Y")));
Loading history...
Bug introduced by
date('Y') of type string is incompatible with the type integer expected by parameter $year of mktime(). ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-type  annotation

14
        return gmdate('l, F jS', mktime(date("H"), date("i"), date("s"), date("m"), date("d"), /** @scrutinizer ignore-type */ date("Y")));
Loading history...
Bug introduced by
date('i') of type string is incompatible with the type integer expected by parameter $minute of mktime(). ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-type  annotation

14
        return gmdate('l, F jS', mktime(date("H"), /** @scrutinizer ignore-type */ date("i"), date("s"), date("m"), date("d"), date("Y")));
Loading history...
Bug introduced by
date('H') of type string is incompatible with the type integer expected by parameter $hour of mktime(). ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-type  annotation

14
        return gmdate('l, F jS', mktime(/** @scrutinizer ignore-type */ date("H"), date("i"), date("s"), date("m"), date("d"), date("Y")));
Loading history...
Bug introduced by
date('d') of type string is incompatible with the type integer expected by parameter $day of mktime(). ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-type  annotation

14
        return gmdate('l, F jS', mktime(date("H"), date("i"), date("s"), date("m"), /** @scrutinizer ignore-type */ date("d"), date("Y")));
Loading history...
Bug introduced by
date('s') of type string is incompatible with the type integer expected by parameter $second of mktime(). ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-type  annotation

14
        return gmdate('l, F jS', mktime(date("H"), date("i"), /** @scrutinizer ignore-type */ date("s"), date("m"), date("d"), date("Y")));
Loading history...
15
    }
16
17
    public function timeBasic()
18
    {
19
        return gmdate("Y-m-d", mktime(date("H"), date("i"), date("s"), date("m"), date("d"), date("Y")));
0 ignored issues
show
Bug introduced by
date('m') of type string is incompatible with the type integer expected by parameter $month of mktime(). ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-type  annotation

19
        return gmdate("Y-m-d", mktime(date("H"), date("i"), date("s"), /** @scrutinizer ignore-type */ date("m"), date("d"), date("Y")));
Loading history...
Bug introduced by
date('Y') of type string is incompatible with the type integer expected by parameter $year of mktime(). ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-type  annotation

19
        return gmdate("Y-m-d", mktime(date("H"), date("i"), date("s"), date("m"), date("d"), /** @scrutinizer ignore-type */ date("Y")));
Loading history...
Bug introduced by
date('H') of type string is incompatible with the type integer expected by parameter $hour of mktime(). ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-type  annotation

19
        return gmdate("Y-m-d", mktime(/** @scrutinizer ignore-type */ date("H"), date("i"), date("s"), date("m"), date("d"), date("Y")));
Loading history...
Bug introduced by
date('s') of type string is incompatible with the type integer expected by parameter $second of mktime(). ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-type  annotation

19
        return gmdate("Y-m-d", mktime(date("H"), date("i"), /** @scrutinizer ignore-type */ date("s"), date("m"), date("d"), date("Y")));
Loading history...
Bug introduced by
date('d') of type string is incompatible with the type integer expected by parameter $day of mktime(). ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-type  annotation

19
        return gmdate("Y-m-d", mktime(date("H"), date("i"), date("s"), date("m"), /** @scrutinizer ignore-type */ date("d"), date("Y")));
Loading history...
Bug introduced by
date('i') of type string is incompatible with the type integer expected by parameter $minute of mktime(). ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-type  annotation

19
        return gmdate("Y-m-d", mktime(date("H"), /** @scrutinizer ignore-type */ date("i"), date("s"), date("m"), date("d"), date("Y")));
Loading history...
20
    }
21
22
    public function timeBasicPlusDays($days)
23
    {
24
        return gmdate("Y-m-d", mktime(date("H"), date("i"), date("s"), date("m"), date("d") + $days, date("Y")));
0 ignored issues
show
Bug introduced by
date('Y') of type string is incompatible with the type integer expected by parameter $year of mktime(). ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-type  annotation

24
        return gmdate("Y-m-d", mktime(date("H"), date("i"), date("s"), date("m"), date("d") + $days, /** @scrutinizer ignore-type */ date("Y")));
Loading history...
Bug introduced by
date('m') of type string is incompatible with the type integer expected by parameter $month of mktime(). ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-type  annotation

24
        return gmdate("Y-m-d", mktime(date("H"), date("i"), date("s"), /** @scrutinizer ignore-type */ date("m"), date("d") + $days, date("Y")));
Loading history...
Bug introduced by
date('i') of type string is incompatible with the type integer expected by parameter $minute of mktime(). ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-type  annotation

24
        return gmdate("Y-m-d", mktime(date("H"), /** @scrutinizer ignore-type */ date("i"), date("s"), date("m"), date("d") + $days, date("Y")));
Loading history...
Bug introduced by
date('s') of type string is incompatible with the type integer expected by parameter $second of mktime(). ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-type  annotation

24
        return gmdate("Y-m-d", mktime(date("H"), date("i"), /** @scrutinizer ignore-type */ date("s"), date("m"), date("d") + $days, date("Y")));
Loading history...
Bug introduced by
date('H') of type string is incompatible with the type integer expected by parameter $hour of mktime(). ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-type  annotation

24
        return gmdate("Y-m-d", mktime(/** @scrutinizer ignore-type */ date("H"), date("i"), date("s"), date("m"), date("d") + $days, date("Y")));
Loading history...
25
    }
26
27
    public function timeBasicPlusYears($years)
28
    {
29
        return gmdate("Y-m-d", mktime(date("H"), date("i"), date("s"), date("m"), date("d"), date("Y") + $years));
0 ignored issues
show
Bug introduced by
date('s') of type string is incompatible with the type integer expected by parameter $second of mktime(). ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-type  annotation

29
        return gmdate("Y-m-d", mktime(date("H"), date("i"), /** @scrutinizer ignore-type */ date("s"), date("m"), date("d"), date("Y") + $years));
Loading history...
Bug introduced by
date('H') of type string is incompatible with the type integer expected by parameter $hour of mktime(). ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-type  annotation

29
        return gmdate("Y-m-d", mktime(/** @scrutinizer ignore-type */ date("H"), date("i"), date("s"), date("m"), date("d"), date("Y") + $years));
Loading history...
Bug introduced by
date('d') of type string is incompatible with the type integer expected by parameter $day of mktime(). ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-type  annotation

29
        return gmdate("Y-m-d", mktime(date("H"), date("i"), date("s"), date("m"), /** @scrutinizer ignore-type */ date("d"), date("Y") + $years));
Loading history...
Bug introduced by
date('i') of type string is incompatible with the type integer expected by parameter $minute of mktime(). ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-type  annotation

29
        return gmdate("Y-m-d", mktime(date("H"), /** @scrutinizer ignore-type */ date("i"), date("s"), date("m"), date("d"), date("Y") + $years));
Loading history...
Bug introduced by
date('m') of type string is incompatible with the type integer expected by parameter $month of mktime(). ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-type  annotation

29
        return gmdate("Y-m-d", mktime(date("H"), date("i"), date("s"), /** @scrutinizer ignore-type */ date("m"), date("d"), date("Y") + $years));
Loading history...
30
    }
31
32
}
33