Code Duplication    Length = 9-9 lines in 2 locations

src/Surfnet/StepupMiddlewareClient/Identity/Dto/RaSecondFactorExportQuery.php 1 location

@@ 217-225 (lines=9) @@
214
    /**
215
     * @param string $status
216
     */
217
    public function setStatus($status)
218
    {
219
        Assert\that($status)->choice(
220
            [self::STATUS_UNVERIFIED, self::STATUS_VERIFIED, self::STATUS_VETTED, self::STATUS_REVOKED, ''],
221
            'Invalid second factor status, must be one of the STATUS constants'
222
        );
223
224
        $this->status = $status ?: null;
225
    }
226
227
    /**
228
     * @param string $orderBy

src/Surfnet/StepupMiddlewareClient/Identity/Dto/RaSecondFactorSearchQuery.php 1 location

@@ 191-199 (lines=9) @@
188
    /**
189
     * @param string $status
190
     */
191
    public function setStatus($status)
192
    {
193
        Assert\that($status)->choice(
194
            [self::STATUS_UNVERIFIED, self::STATUS_VERIFIED, self::STATUS_VETTED, self::STATUS_REVOKED, ''],
195
            'Invalid second factor status, must be one of the STATUS constants'
196
        );
197
198
        $this->status = $status ?: null;
199
    }
200
201
    /**
202
     * @return null|string