Passed
Push — master ( 345dac...c57047 )
by Mihail
09:15
created

Content::actionSettings()   A

Complexity

Conditions 3
Paths 3

Size

Total Lines 19
Code Lines 10

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
eloc 10
dl 0
loc 19
rs 9.9332
c 0
b 0
f 0
cc 3
nc 3
nop 0
1
<?php
2
3
namespace Apps\Controller\Admin;
4
5
use Apps\ActiveRecord\ContentCategory;
6
use Apps\Model\Admin\Content\FormSettings;
7
use Extend\Core\Arch\AdminController;
8
use Ffcms\Core\App;
9
use Ffcms\Core\Exception\NotFoundException;
10
use Ffcms\Core\Exception\SyntaxException;
11
12
/**
13
 * Class Content. Admin controller to manage & control contents
14
 * @package Apps\Controller\Admin
15
 */
16
class Content extends AdminController
17
{
18
    const VERSION = '1.0.0';
19
    const ITEM_PER_PAGE = 10;
20
21
    public $type = 'app';
22
23
    // import heavy actions
24
    use Content\ActionIndex {
25
        index as actionIndex;
26
    }
27
28
    use Content\ActionUpdate {
29
        update as actionUpdate;
30
    }
31
32
    use Content\ActionDelete {
33
        delete as actionDelete;
34
    }
35
36
    use Content\ActionRestore {
37
        restore as actionRestore;
38
    }
39
40
    use Content\ActionClear {
41
        clear as actionClear;
42
    }
43
44
    use Content\ActionCategoryList {
45
        contentCategoryList as actionCategories;
46
    }
47
48
    use Content\ActionCategoryDelete {
49
        categoryDelete as actionCategorydelete;
50
    }
51
52
    use Content\ActionCategoryUpdate {
53
        categoryUpdate as actionCategoryupdate;
54
    }
55
56
    use Content\ActionGlobDelete {
57
        globDelete as actionGlobdelete;
58
    }
59
60
    use Content\ActionPublish {
61
        publish as actionPublish;
62
    }
63
64
    use Content\ActionDisplayChange {
0 ignored issues
show
Bug introduced by
The type Apps\Controller\Admin\Content\ActionDisplayChange 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...
65
        display as actionDisplay;
66
    }
67
68
    use Content\ActionImportantChange {
0 ignored issues
show
Bug introduced by
The type Apps\Controller\Admin\Co...t\ActionImportantChange 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...
69
        important as actionImportant;
70
    }
71
72
    use Content\ActionSettings {
0 ignored issues
show
Bug introduced by
The type Apps\Controller\Admin\Content\ActionSettings 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...
73
        settings as actionSettings;
74
    }
75
}
76