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 — 2.9 ( af2f79...cb2263 )
by Thorsten
10:00
created

PMF_Enc_Sha1::encrypt()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 2
nc 1
nop 1
dl 0
loc 4
rs 10
c 0
b 0
f 0
1
<?php
2
3
/**
4
 * Provides methods for password encryption using sha1().
5
 *
6
 * PHP Version 5.5
7
 *
8
 * This Source Code Form is subject to the terms of the Mozilla Public License,
9
 * v. 2.0. If a copy of the MPL was not distributed with this file, You can
10
 * obtain one at http://mozilla.org/MPL/2.0/.
11
 *
12
 * @category  phpMyFAQ
13
 * @author    Lars Tiedemann <[email protected]>
14
 * @copyright 2005-2017 phpMyFAQ Team
15
 * @license   http://www.mozilla.org/MPL/2.0/ Mozilla Public License Version 2.0
16
 * @link      http://www.phpmyfaq.de
17
 * @since     2005-09-18
18
 */
19
if (!defined('IS_VALID_PHPMYFAQ')) {
20
    exit();
21
}
22
23
/**
24
 * PMF_Enc_Sha1.
25
 *
26
 * @category  phpMyFAQ
27
 * @author    Lars Tiedemann <[email protected]>
28
 * @copyright 2005-2017 phpMyFAQ Team
29
 * @license   http://www.mozilla.org/MPL/2.0/ Mozilla Public License Version 2.0
30
 * @link      http://www.phpmyfaq.de
31
 * @since     2005-09-18
32
 */
33
class PMF_Enc_Sha1 extends PMF_Enc
34
{
35
    /**
36
     * encrypts the string str and returns the result.
37
     *
38
     * @param string $str String
39
     *
40
     * @return string
41
     */
42
    public function encrypt($str)
43
    {
44
        return sha1($str);
45
    }
46
}
47