LocalTransport   A
last analyzed

Complexity

Total Complexity 3

Size/Duplication

Total Lines 26
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 0
Metric Value
wmc 3
lcom 0
cbo 1
dl 0
loc 26
rs 10
c 0
b 0
f 0

3 Methods

Rating   Name   Duplication   Size   Complexity  
A configure() 0 4 1
A wrap() 0 4 1
A addChdir() 0 4 1
1
<?php
2
3
namespace Consolidation\SiteProcess\Transport;
4
5
use Consolidation\SiteProcess\SiteProcess;
6
7
/**
8
 * LocalTransport just runs the command on the local system.
9
 */
10
class LocalTransport implements TransportInterface
11
{
12
    /**
13
     * @inheritdoc
14
     */
15
    public function configure(SiteProcess $process)
16
    {
17
        $process->setWorkingDirectoryLocal($process->getWorkingDirectory());
18
    }
19
20
    /**
21
     * @inheritdoc
22
     */
23
    public function wrap($args)
24
    {
25
        return $args;
26
    }
27
28
    /**
29
     * @inheritdoc
30
     */
31
    public function addChdir($cd, $args)
32
    {
33
        return $args;
34
    }
35
}
36