Completed
Push — develop ( c52d7e...4c8faa )
by Evan
04:55
created

Action::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 2
c 1
b 0
f 0
nc 1
nop 1
dl 0
loc 4
rs 10
1
<?php
2
3
namespace Silk\User\Action;
4
5
use Silk\User\Model;
0 ignored issues
show
introduced by
Use classes must be in alphabetical order.
Loading history...
6
use Silk\Contracts\Executable;
7
8
abstract class Action implements Executable
9
{
0 ignored issues
show
introduced by
Opening brace of a class must be on the same line as the definition
Loading history...
10
    /**
0 ignored issues
show
introduced by
4 spaces found, expected 1 tabs
Loading history...
11
     * The model instance
0 ignored issues
show
introduced by
4 spaces found, expected 1 tabs
Loading history...
12
     * @var \Silk\User\Model
0 ignored issues
show
introduced by
4 spaces found, expected 1 tabs
Loading history...
13
     */
0 ignored issues
show
introduced by
4 spaces found, expected 1 tabs
Loading history...
14
    protected $model;
0 ignored issues
show
introduced by
4 spaces found, expected 1 tabs
Loading history...
Coding Style introduced by
Expected 1 blank line before member var; 0 found
Loading history...
15
16
    /**
0 ignored issues
show
introduced by
4 spaces found, expected 1 tabs
Loading history...
17
     * Action Constructor.
0 ignored issues
show
introduced by
4 spaces found, expected 1 tabs
Loading history...
18
     *
0 ignored issues
show
introduced by
4 spaces found, expected 1 tabs
Loading history...
19
     * @param Model $model The model performing the action
0 ignored issues
show
introduced by
4 spaces found, expected 1 tabs
Loading history...
introduced by
Model => \Silk\User\Model
Loading history...
20
     */
0 ignored issues
show
introduced by
4 spaces found, expected 1 tabs
Loading history...
21
    public function __construct(Model $model)
0 ignored issues
show
introduced by
4 spaces found, expected 1 tabs
Loading history...
22
    {
0 ignored issues
show
introduced by
4 spaces found, expected 1 tabs
Loading history...
introduced by
Opening brace of a function must be on the same line as the definition
Loading history...
23
        $this->model = $model;
0 ignored issues
show
introduced by
8 spaces found, expected 2 tabs
Loading history...
24
    }
0 ignored issues
show
introduced by
4 spaces found, expected 1 tabs
Loading history...
25
26
    /**
0 ignored issues
show
introduced by
4 spaces found, expected 1 tabs
Loading history...
27
     * Execute the action.
0 ignored issues
show
introduced by
4 spaces found, expected 1 tabs
Loading history...
28
     *
0 ignored issues
show
introduced by
4 spaces found, expected 1 tabs
Loading history...
29
     * @return void
0 ignored issues
show
introduced by
4 spaces found, expected 1 tabs
Loading history...
30
     */
0 ignored issues
show
introduced by
4 spaces found, expected 1 tabs
Loading history...
31
    abstract public function execute();
0 ignored issues
show
introduced by
4 spaces found, expected 1 tabs
Loading history...
32
}
0 ignored issues
show
introduced by
Closing brace of a class must have a new line between itself and the last content.
Loading history...
33