Total Complexity | 5 |
Total Lines | 47 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
10 | class PostVerification extends AjaxController |
||
11 | { |
||
12 | use StringFunctions; |
||
13 | |||
14 | |||
15 | protected $slug; |
||
16 | |||
17 | private $postModel; |
||
18 | |||
19 | public function __construct(Container $container) |
||
20 | { |
||
21 | $this->loadModules[] = 'Slug'; |
||
22 | parent::__construct($container); |
||
23 | $this->postModel = new PostModel($container); |
||
24 | } |
||
25 | |||
26 | /** |
||
27 | * checks if the slug is unique |
||
28 | * @return bool is unique |
||
29 | * @throws \Core\JsonException |
||
30 | * @throws \Exception |
||
31 | */ |
||
32 | public function isSlugUnique() |
||
57 | } |
||
58 | |||
59 | } |