GitHub Access Token became invalid

It seems like the GitHub access token used for retrieving details about this repository from GitHub became invalid. This might prevent certain types of inspections from being run (in particular, everything related to pull requests).
Please ask an admin of your repository to re-new the access token on this website.
Completed
Push — json-serializer-refactoring ( 4d51bd...63a07b )
by Alex
04:43
created

DateTimeConverter   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 14
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 0

Test Coverage

Coverage 100%

Importance

Changes 2
Bugs 1 Features 0
Metric Value
wmc 1
c 2
b 1
f 0
lcom 1
cbo 0
dl 0
loc 14
ccs 2
cts 2
cp 1
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A toWireFormattedString() 0 4 1
1
<?php
2
namespace PSB\Core;
3
4
/**
5
 * The assumption made by this class is that all times are provided by a Clock which deals only in UTC
6
 */
7
class DateTimeConverter
8
{
9
    private $format = 'Y-m-d\TH:i:s\Z';
10
11
    /**
12
     * @param \DateTime $date
13
     *
14
     * @return string
15
     */
16 1
    public function toWireFormattedString(\DateTime $date)
17
    {
18 1
        return $date->format($this->format);
19
    }
20
}
21