Code Coverage
 
Lines
Functions and Methods
Classes and Traits
Total
100.00% covered (success)
100.00%
3 / 3
100.00% covered (success)
100.00%
3 / 3
CRAP
100.00% covered (success)
100.00%
1 / 1
convert_password
100.00% covered (success)
100.00%
3 / 3
100.00% covered (success)
100.00%
3 / 3
3
100.00% covered (success)
100.00%
1 / 1
 get_prefix
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
1 / 1
1
 hash
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
1 / 1
1
 check
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
1 / 1
1
1<?php
2/**
3*
4* This file is part of the phpBB Forum Software package.
5*
6* @copyright (c) phpBB Limited <https://www.phpbb.com>
7* @license GNU General Public License, version 2 (GPL-2.0)
8*
9* For full copyright and license information, please see
10* the docs/CREDITS.txt file.
11*
12*/
13
14namespace phpbb\passwords\driver;
15
16class convert_password extends base
17{
18    const PREFIX = '$CP$';
19
20    /**
21    * {@inheritdoc}
22    */
23    public function get_prefix()
24    {
25        return self::PREFIX;
26    }
27
28    /**
29    * {@inheritdoc}
30    */
31    public function hash($password, $user_row = '')
32    {
33        return false;
34    }
35
36    /**
37    * {@inheritdoc}
38    */
39    public function check($password, $hash, $user_row = array())
40    {
41        return false;
42    }
43}