ExtendedLumener::permanentLogin()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
eloc 1
dl 0
loc 4
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 0
1
<?php
2
// Lumener and $plugins are already defined before this file is included
3
class ExtendedLumener extends Lumener
4
{
5
    public function permanentLogin()
6
    {
7
        // key used for permanent login
8
        return 'ca41d8e9879df648e9a43cefa97bc12d';
9
    }
10
}
11
12
if (empty($plugins)) {
13
    return new ExtendedLumener();
14
}
15
return new ExtendedLumener($plugins);
16