Test Failed
Push — develop ( 653632...c83d6c )
by Michiel
04:32 queued 01:07
created

Tiqr_UserStorage_File::_deleteUser()   A

Complexity

Conditions 2
Paths 2

Size

Total Lines 7
Code Lines 5

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 6

Importance

Changes 0
Metric Value
eloc 5
c 0
b 0
f 0
dl 0
loc 7
ccs 0
cts 5
cp 0
rs 10
cc 2
nc 2
nop 1
crap 6
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 Ivo Jansch <[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
use Psr\Log\LoggerInterface;
21
22 1
require_once 'Tiqr/UserStorage/FileTrait.php';
23 1
require_once 'Tiqr/UserStorage/GenericStore.php';
24
25
/**
26
 * This user storage implementation implements a simple user storage using json files.
27
 * This is mostly for demonstration and development purposes. In a production environment
28
 * please supply your own implementation that hosts the data in your user database OR
29
 * in a secure (e.g. hardware encrypted) storage.
30
 * @author ivo
31
 */
32
class Tiqr_UserStorage_File extends Tiqr_UserStorage_GenericStore
33
{
34
    use FileTrait;
35
36
    protected $path;
37
38
    /**
39
     * Create an instance
40
     * @param array $config
41
     * @param LoggerInterface $logger
42
     */
43 4
    public function __construct($config, LoggerInterface $logger)
44
    {
45 4
        parent::__construct($config, $logger);
46 4
        $this->path = $config["path"];
47 4
    }
48
}
49