Completed
Pull Request — master (#33)
by Pavel
03:21
created

GenerateOutput   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 12
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 1
c 1
b 0
f 0
lcom 0
cbo 0
dl 0
loc 12
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A generateOutput() 0 8 1
1
<?php
2
namespace AppBundle\Traits;
3
4
trait GenerateOutput{
5
6
    private function generateOutput($status, $code, $message)
7
    {
8
        return [
9
            'status' => $status,
10
            'code' => $code,
11
            'content' => $message
12
        ];
13
    }
14
15
}