Passed
Branch master (718b20)
by y
07:49
created

AsanaGet   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 8
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 4
c 1
b 0
f 0
dl 0
loc 8
rs 10
wmc 1
1
<?php
2
3
namespace Helix\Asana\Api\Laravel\Command;
4
5
use Helix\Asana\Api\Laravel\Facade\Asana;
6
use Illuminate\Console\Command;
7
8
final class AsanaGet extends Command {
9
10
    protected $description = 'Calls HTTP GET on an Asana endpoint.';
11
12
    protected $signature = 'asana:get {path=users/me}';
13
14
    public function handle () {
15
        Asana::getApi()->get(ltrim($this->argument('path'), '/'));
16
    }
17
18
}