Completed
Push — master ( 72ec54...05d808 )
by Nate
06:35 queued 04:36
created

Delete::statusCodeSuccess()   A

Complexity

Conditions 2
Paths 2

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 6

Importance

Changes 0
Metric Value
dl 0
loc 4
ccs 0
cts 4
cp 0
rs 10
c 0
b 0
f 0
nc 2
cc 2
eloc 2
nop 0
crap 6
1
<?php
2
3
/**
4
 * @copyright  Copyright (c) Flipbox Digital Limited
5
 * @license    https://github.com/flipboxfactory/craft-ember/blob/master/LICENSE
6
 * @link       https://github.com/flipboxfactory/craft-ember
7
 */
8
9
namespace flipbox\ember\actions\record\traits;
10
11
/**
12
 * @author Flipbox Factory <[email protected]>
13
 * @since 1.0.0
14
 */
15
trait Delete
16
{
17
    use Manage;
18
19
    /**
20
     * HTTP success response code
21
     *
22
     * @return int
23
     */
24
    protected function statusCodeSuccess(): int
25
    {
26
        return $this->statusCodeSuccess ?: 204;
27
    }
28
}
29