Completed
Push — master ( 27dfb9...a76756 )
by Edward
01:58
created

index.php (5 issues)

Upgrade to new PHP Analysis Engine

These results are based on our legacy PHP analysis, consider migrating to our new PHP analysis engine instead. Learn more

1
<?php
2
/**
3
 * File index.php
4
 *
5
 * @author Edward Pfremmer <[email protected]>
6
 */
7
//
0 ignored issues
show
Unused Code Comprehensibility introduced by
58% of this comment could be valid code. Did you maybe forget this after debugging?

Sometimes obsolete code just ends up commented out instead of removed. In this case it is better to remove the code once you have checked you do not need it.

The code might also have been commented out for debugging purposes. In this case it is vital that someone uncomments it again or your project may behave in very unexpected ways in production.

This check looks for comments that seem to be mostly valid code and reports them.

Loading history...
8
//$tz1 = new DateTimeZone('UTC');
9
//$tz2 = new DateTimeZone('America/Chicago');
10
//
11
////var_dump($tz1, $tz2);
12
//
13
//$date1 = new DateTime(sprintf('@%s', (new DateTime('now', $tz1))->getTimestamp()));
14
//$date2 = new DateTime(sprintf('@%s', (new DateTime('now', $tz2))->getTimestamp()));
15
//
16
//var_dump($date1, $date2);
17
18
use PHPWeekly\Issue63\Stardate;
19
20
require_once 'src/StarDate.php';
21
22
23
$time = time();
24
$date = new DateTime("@$time");
25
26
var_dump($time, $date->getTimestamp(), Stardate::stardateToTimestamp(Stardate::timestampToStardate($time)));
27
28
29
//$sdn = new Stardate();
0 ignored issues
show
Unused Code Comprehensibility introduced by
59% of this comment could be valid code. Did you maybe forget this after debugging?

Sometimes obsolete code just ends up commented out instead of removed. In this case it is better to remove the code once you have checked you do not need it.

The code might also have been commented out for debugging purposes. In this case it is vital that someone uncomments it again or your project may behave in very unexpected ways in production.

This check looks for comments that seem to be mostly valid code and reports them.

Loading history...
30
//$sd0 = Stardate::createFromDateString('Fri Jul 05 2318 12:00:00 GMT-0500 (CDT)');
31
//$sd1 = new Stardate('1.0');
32
//$sd2 = new Stardate(54868.6);
33
//
34
//var_dump(
35
//    $sdn, $sdn->getTimestamp(), $sdn->getStardate(),
36
//    $sd0, $sd0->getTimestamp(), $sd0->getStardate(),
37
//    $sd1, $sd1->getTimestamp(), $sd1->getStardate(),
38
//    $sd2, $sd2->getTimestamp(), $sd2->getStardate()
39
//);
40
41
//$sd1 = new StarDate('54868.6');
0 ignored issues
show
Unused Code Comprehensibility introduced by
55% of this comment could be valid code. Did you maybe forget this after debugging?

Sometimes obsolete code just ends up commented out instead of removed. In this case it is better to remove the code once you have checked you do not need it.

The code might also have been commented out for debugging purposes. In this case it is vital that someone uncomments it again or your project may behave in very unexpected ways in production.

This check looks for comments that seem to be mostly valid code and reports them.

Loading history...
42
43
//var_dump(
0 ignored issues
show
Unused Code Comprehensibility introduced by
55% of this comment could be valid code. Did you maybe forget this after debugging?

Sometimes obsolete code just ends up commented out instead of removed. In this case it is better to remove the code once you have checked you do not need it.

The code might also have been commented out for debugging purposes. In this case it is vital that someone uncomments it again or your project may behave in very unexpected ways in production.

This check looks for comments that seem to be mostly valid code and reports them.

Loading history...
44
//    StarDate::stardateToTimestamp(54868.6),
45
//    StarDate::stardateToTimestamp(0)
46
//);
47
48
49
//var_dump(strtotime(123));
0 ignored issues
show
Unused Code Comprehensibility introduced by
68% of this comment could be valid code. Did you maybe forget this after debugging?

Sometimes obsolete code just ends up commented out instead of removed. In this case it is better to remove the code once you have checked you do not need it.

The code might also have been commented out for debugging purposes. In this case it is vital that someone uncomments it again or your project may behave in very unexpected ways in production.

This check looks for comments that seem to be mostly valid code and reports them.

Loading history...
50
//var_dump(strtotime('123'));
51
//var_dump(strtotime('*123'));
52
//var_dump(strtotime(54868.6));
53
//var_dump(strtotime('*54868.6'));
54
//var_dump(strtotime(''));
55
//var_dump(strtotime(''));
56
//var_dump(strtotime(''));
57