Code Duplication    Length = 10-10 lines in 3 locations

src/Surfnet/StepupGateway/SamlStepupProviderBundle/Saml/ProxyResponseFactory.php 1 location

@@ 146-155 (lines=10) @@
143
     * @param string $interval a DateInterval compatible interval to skew the time with
144
     * @return int
145
     */
146
    private function getTimestamp($interval = null)
147
    {
148
        $time = clone $this->currentTime;
149
150
        if ($interval) {
151
            $time->add(new DateInterval($interval));
152
        }
153
154
        return $time->getTimestamp();
155
    }
156
}
157

src/Surfnet/StepupGateway/SecondFactorOnlyBundle/Saml/ResponseFactory.php 1 location

@@ 161-170 (lines=10) @@
158
     * @param string $interval a \DateInterval compatible interval to skew the time with
159
     * @return int
160
     */
161
    private function getTimestamp($interval = null)
162
    {
163
        $time = clone $this->currentTime;
164
165
        if ($interval) {
166
            $time->add(new \DateInterval($interval));
167
        }
168
169
        return $time->getTimestamp();
170
    }
171
}
172

src/Surfnet/StepupGateway/GatewayBundle/Service/ProxyResponseService.php 1 location

@@ 179-188 (lines=10) @@
176
     * @param string $interval a \DateInterval compatible interval to skew the time with
177
     * @return int
178
     */
179
    private function getTimestamp($interval = null)
180
    {
181
        $time = clone $this->currentTime;
182
183
        if ($interval) {
184
            $time->add(new \DateInterval($interval));
185
        }
186
187
        return $time->getTimestamp();
188
    }
189
}
190