RawDrushContext   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 16
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Test Coverage

Coverage 0%

Importance

Changes 0
Metric Value
wmc 1
c 0
b 0
f 0
lcom 0
cbo 1
dl 0
loc 16
ccs 0
cts 6
cp 0
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A getOneTimeLoginLink() 0 8 1
1
<?php
2
/**
3
 * @author Sergii Bondarenko, <[email protected]>
4
 */
5
namespace Drupal\TqExtension\Context\Drush;
6
7
// Contexts.
8
use Drupal\TqExtension\Context\RawTqContext;
9
10
class RawDrushContext extends RawTqContext
11
{
12
    /**
13
     * @param string $username
14
     *
15
     * @return string
16
     */
17
    public function getOneTimeLoginLink($username)
18
    {
19
        return trim($this->getDrushDriver()->drush('uli', [
20
            $username,
21
            '--browser=0',
22
            '--uri=' . $this->locatePath(),
23
        ]));
24
    }
25
}
26