| Conditions | 3 |
| Paths | 3 |
| Total Lines | 13 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 7 |
| CRAP Score | 3 |
| Changes | 0 | ||
| 1 | <?php |
||
| 31 | 6 | public function __construct(array $server, $project) |
|
| 32 | { |
||
| 33 | 6 | if (!basename($project)) { |
|
| 34 | 1 | throw new InvalidArgumentException(sprintf('Invalid project directory "%s"', $project)); |
|
| 35 | } |
||
| 36 | |||
| 37 | 5 | $this->project = $project; |
|
| 38 | |||
| 39 | 5 | if (!isset($server['HOME'])) { |
|
| 40 | 1 | throw new InvalidArgumentException('Server must contain a "HOME" entry'); |
|
| 41 | } |
||
| 42 | |||
| 43 | 4 | $this->server = $server; |
|
| 44 | 4 | } |
|
| 72 |