Completed
Push — master ( 3f135d...7bfd57 )
by Alex
07:35
created

ActionBuilder   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 27
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 1
Metric Value
eloc 4
dl 0
loc 27
rs 10
c 1
b 0
f 1
wmc 2

2 Methods

Rating   Name   Duplication   Size   Complexity  
A resetLayout() 0 4 1
A ignoreKey() 0 3 1
1
<?php
2
namespace Mezon\Application;
3
4
use Mezon\HtmlTemplate\HtmlTemplate;
5
6
class ActionBuilder
7
{
8
9
    /**
10
     * Ignore config keyu
11
     *
12
     * @return callable factory method
13
     */
14
    public static function ignoreKey(): callable
15
    {
16
        return function (): void {
17
            // do nothind
18
        };
19
    }
20
21
    /**
22
     * Method resets layout
23
     *
24
     *  @param $template template 
0 ignored issues
show
Bug introduced by
The type Mezon\Application\template was not found. Maybe you did not declare it correctly or list all dependencies?

The issue could also be caused by a filter entry in the build configuration. If the path has been excluded in your configuration, e.g. excluded_paths: ["lib/*"], you can move it to the dependency path list as follows:

filter:
    dependency_paths: ["lib/*"]

For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths

Loading history...
25
     * @param string $value
26
     *            new layout
27
     * @return callable factory method
28
     */
29
    public static function resetLayout(HtmlTemplate $template, string $value): callable
30
    {
31
        return function () use ($template, $value) {
32
            $template->resetLayout($value);
33
        };
34
    }
35
}
36