Test Failed
Push — master ( b5ef5e...9e488e )
by Michiel
17:47 queued 02:26
created

Tiqr_UserSecretStorage_Encryption_Dummy::decrypt()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
eloc 1
c 0
b 0
f 0
dl 0
loc 3
rs 10
cc 1
nc 1
nop 1
1
<?php 
2
/**
3
 * This file is part of the tiqr project.
4
 * 
5
 * The tiqr project aims to provide an open implementation for 
6
 * authentication using mobile devices. It was initiated by 
7
 * SURFnet and developed by Egeniq.
8
 *
9
 * More information: http://www.tiqr.org
10
 *
11
 * @author Peter Verhage <[email protected]>
12
 * 
13
 * @package tiqr
14
 *
15
 * @license New BSD License - See LICENSE file for details.
16
 *
17
 * @copyright (C) 2010-2012 SURFnet BV
18
 */
19
 
20
require_once 'Tiqr/UserSecretStorage/Encryption/Interface.php';
21
22
/**
23
 * Dummy encryption class, returns the data as is.
24
 * 
25
 * @author peter
26
 */
27
class Tiqr_UserSecretStorage_Encryption_Dummy implements Tiqr_UserSecretStorage_Encryption_Interface
28
{
29
    /**
30
     * Construct an encryption instance.
31
     *
32
     * @param $config The configuration that a specific configuration class may use.
33
     */
34
    public function __construct($config)
35
    {
36
    }
37
    
38
    /**
39
     * Encrypts the given data. 
40
     *
41
     * @param String $data Data to encrypt.
42
     *
43
     * @return encrypted data
0 ignored issues
show
Bug introduced by
The type encrypted was not found. Maybe you did not declare it correctly or list all dependencies?

The issue could also be caused by a filter entry in the build configuration. If the path has been excluded in your configuration, e.g. excluded_paths: ["lib/*"], you can move it to the dependency path list as follows:

filter:
    dependency_paths: ["lib/*"]

For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths

Loading history...
44
     */
45
    public function encrypt($data)
46
    {
47
        return $data;
0 ignored issues
show
Bug Best Practice introduced by
The expression return $data returns the type string which is incompatible with the documented return type encrypted.
Loading history...
48
    }
49
    
50
    /**
51
      * Decrypts the given data.
52
     *
53
     * @param String $data Data to decrypt.
54
     *
55
     * @return decrypted data
0 ignored issues
show
Bug introduced by
The type decrypted was not found. Maybe you did not declare it correctly or list all dependencies?

The issue could also be caused by a filter entry in the build configuration. If the path has been excluded in your configuration, e.g. excluded_paths: ["lib/*"], you can move it to the dependency path list as follows:

filter:
    dependency_paths: ["lib/*"]

For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths

Loading history...
56
     */
57
    public function decrypt($data)
58
    {
59
        return $data;
0 ignored issues
show
Bug Best Practice introduced by
The expression return $data returns the type string which is incompatible with the documented return type decrypted.
Loading history...
60
    }
61
}
62