collapse
79%
WDescription%
Clover Coverage: Elements 99% (781/984)79
Number of pmd violations is 2779
Build stability: 1 out of the last 5 builds failed.80
Test Result: 0 tests failing out of a total of 160 tests.100
Build History
x
 
 
 
 
 
 
 
 
 
 

File: TimeRange.php Lines 51 to 65
51
52    /**
53     *
54     * 渡されたDateTimeを破壊しないようcloneする。
55     * 利用側が時刻のみを指定してDateTimeを作れるよう、日付部分は固定値に上書きする。
56     * @param \DateTime $target
57     * @return \DateTime
58     */
59    public function normalize(\DateTime $target) {
Type Class Description
pmd UnusedLocalVariable Avoid unused local variables such as '$strDateTime'.
60
Type Class Description
pmd UnusedLocalVariable Avoid unused local variables such as '$strDateTime'.
        $strDateTime = $target->format('c');
61        $copiedTime = clone $target;
62        $copiedTime->setDate(1970, 1, 1);
63        return $copiedTime;
64    }
65}