Completed
Pull Request — master (#36)
by Daniel
03:44 queued 01:27
created

NullView   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 11
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 0
Metric Value
wmc 2
lcom 0
cbo 1
dl 0
loc 11
rs 10
c 0
b 0
f 0

2 Methods

Rating   Name   Duplication   Size   Complexity  
A buildView() 0 3 1
A configureOptions() 0 4 1
1
<?php
2
3
declare(strict_types=1);
4
5
namespace Psi\Component\ContentType\Standard\View;
6
7
use Psi\Component\ContentType\View\View;
8
use Psi\Component\ContentType\View\ViewInterface;
9
use Symfony\Component\OptionsResolver\OptionsResolver;
10
11
class NullView implements ViewInterface
12
{
13
    public function buildView(View $view, $data, array $options)
14
    {
15
    }
16
17
    public function configureOptions(OptionsResolver $options)
18
    {
19
        $options->setDefault('template');
0 ignored issues
show
Bug introduced by
The call to setDefault() misses a required argument $value.

This check looks for function calls that miss required arguments.

Loading history...
20
    }
21
}
22