Code Duplication    Length = 9-9 lines in 2 locations

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

@@ 182-190 (lines=9) @@
179
    /**
180
     * @param string $status
181
     */
182
    public function setStatus($status)
183
    {
184
        Assert\that($status)->choice(
185
            [self::STATUS_UNVERIFIED, self::STATUS_VERIFIED, self::STATUS_VETTED, self::STATUS_REVOKED, ''],
186
            'Invalid second factor status, must be one of the STATUS constants'
187
        );
188
189
        $this->status = $status ?: null;
190
    }
191
192
    /**
193
     * @param string $orderBy

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

@@ 179-187 (lines=9) @@
176
    /**
177
     * @param string $status
178
     */
179
    public function setStatus($status)
180
    {
181
        Assert\that($status)->choice(
182
            [self::STATUS_UNVERIFIED, self::STATUS_VERIFIED, self::STATUS_VETTED, self::STATUS_REVOKED, ''],
183
            'Invalid second factor status, must be one of the STATUS constants'
184
        );
185
186
        $this->status = $status ?: null;
187
    }
188
189
    /**
190
     * @return null|string