LocalTransport::addChdir()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 4
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 2
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