Passed
Push — master ( be0263...ea91dc )
by Evgenii
12:20
created

Block::render()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 8
Code Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 4
nc 1
nop 3
dl 0
loc 8
rs 10
c 0
b 0
f 0
1
<?php
2
3
namespace Helick\Blocks;
4
5
abstract class Block implements Contracts\Bootable, Contracts\Composable
6
{
7
    use Traits\CommonDeclaration,
8
        Traits\NestedDeclaration,
9
        Traits\Bootable,
10
        Traits\Composable,
11
        Traits\Renderable;
12
13
    /**
14
     * Fields to be attached to the block.
15
     *
16
     * @return array
17
     */
18
    public function fields(): array
19
    {
20
        return [];
21
    }
22
23
    /**
24
     * Data to be passed to the rendered block.
25
     *
26
     * @param array $fields
27
     *
28
     * @return array
29
     */
30
    public function with(array $fields): array
0 ignored issues
show
Unused Code introduced by
The parameter $fields is not used and could be removed. ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-unused  annotation

30
    public function with(/** @scrutinizer ignore-unused */ array $fields): array

This check looks for parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
31
    {
32
        return [];
33
    }
34
}
35