Issues (29)

src/GJClasses/Time.php (28 issues)

Labels
Severity
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
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...
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...
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...
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...
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...
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
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...
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...
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...
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...
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...
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
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...
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...
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...
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...
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...
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
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...
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...
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...
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...
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
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...
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...
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...
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...
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