Completed
Push — master ( 924f7d...1d4235 )
by Greg
99:30
created

LocalTransport   A

Complexity

Total Complexity 3

Size/Duplication

Total Lines 25
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

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

3 Methods

Rating   Name   Duplication   Size   Complexity  
A configure() 0 3 1
A wrap() 0 4 1
A addChdir() 0 4 1
1
<?php
2
3
namespace Consolidation\SiteProcess\Transport;
4
5
use Symfony\Component\Process\Process;
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(Process $process)
16
    {
17
    }
18
19
    /**
20
     * @inheritdoc
21
     */
22
    public function wrap($args)
23
    {
24
        return $args;
25
    }
26
27
    /**
28
     * @inheritdoc
29
     */
30
    public function addChdir($cd, $args)
31
    {
32
        return $args;
33
    }
34
}
35