DefaultJobFormatter::canFormat()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 5
rs 9.4285
c 0
b 0
f 0
cc 1
eloc 2
nc 1
nop 1
1
<?php
2
namespace Workana\AsyncJobs\Formatter;
3
4
use Workana\AsyncJobs\Job;
5
6
class DefaultJobFormatter implements JobFormatterInterface
7
{
8
    /**
9
     * {@inheritdoc}
10
     */
11
    public function format(Job $job)
12
    {
13
14
    }
15
16
    /**
17
     * {@inheritdoc}
18
     */
19
    public function canFormat(Job $job)
20
    {
21
        //It allways can format a job
22
        return true;
23
    }
24
}