Completed
Push — master ( c49cbc...039121 )
by Timur
02:32
created

UpdateDeploymentScriptCommand   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 24
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 3

Importance

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

2 Methods

Rating   Name   Duplication   Size   Complexity  
A resourcePath() 0 4 1
A requestMethod() 0 4 1
1
<?php
2
3
namespace Laravel\Forge\Deployment\Commands;
4
5
use Laravel\Forge\Resource;
6
use Laravel\Forge\Commands\ResourceCommand;
7
use Laravel\Forge\Commands\RawBodyResponseTrait;
8
use Laravel\Forge\Commands\NotSupportingResourceClassTrait;
9
10
class UpdateDeploymentScriptCommand extends ResourceCommand
11
{
12
    use NotSupportingResourceClassTrait, RawBodyResponseTrait;
13
14
    /**
15
     * Site resource path.
16
     *
17
     * @return string
18
     */
19
    public function resourcePath()
20
    {
21
        return 'deployment/script';
22
    }
23
24
    /**
25
     * HTTP request method.
26
     *
27
     * @return string
28
     */
29
    public function requestMethod()
30
    {
31
        return 'PUT';
32
    }
33
}
34