Completed
Branch master (162e0f)
by Evan
02:29
created

PostDeleter   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 9
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 2

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A execute() 0 6 2
1
<?php
2
3
namespace Silk\Post\Action;
4
5
use Silk\Database\Action;
6
7
class PostDeleter extends Action
8
{
9
    public function execute()
10
    {
11
        if (wp_delete_post($this->model->id, true)) {
12
            $this->model->refresh();
13
        }
14
    }
15
}
16