Passed
Push — main ( 7f530d...7aae9b )
by Thierry
05:54
created

ExtendAnnotated::cbAfterWrongAttrType()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 2
Code Lines 0

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 0
c 0
b 0
f 0
nc 1
nop 0
dl 0
loc 2
rs 10
1
<?php
2
3
namespace Jaxon\Annotations\Tests\Attr\Ajax;
4
5
use Jaxon\Annotations\Tests\Attr\FuncComponent;
6
use Jaxon\Annotations\Tests\Service\ColorService;
0 ignored issues
show
Bug introduced by
The type Jaxon\Annotations\Tests\Service\ColorService 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...
7
8
class ExtendAnnotated extends FuncComponent
9
{
10
    /**
11
     * @exclude
12
     */
13
    public function doNot()
14
    {
15
    }
16
17
    /**
18
     * @exclude(true)
19
     */
20
    public function doNotBool()
21
    {
22
    }
23
24
    /**
25
     * @exclude('Me')
26
     */
27
    public function doNotError()
28
    {
29
    }
30
31
    /**
32
     * @databag('name' => 'user.name')
33
     * @databag('name' => 'page.number')
34
     */
35
    public function withBags()
36
    {
37
    }
38
39
    /**
40
     * @databag('mane' => 'user.name')
41
     * @databag('mane' => 'page.number')
42
     */
43
    public function withBagsError()
44
    {
45
    }
46
47
    /**
48
     * @upload('field' => 'user-files')
49
     */
50
    public function saveFiles()
51
    {
52
    }
53
54
    /**
55
     * @upload('name' => 'user-files')
56
     */
57
    public function saveFilesWrongName()
58
    {
59
    }
60
61
    /**
62
     * @upload('field' => 'user-file1')
63
     * @upload('field' => 'user-file2')
64
     */
65
    public function saveFilesMultiple()
66
    {
67
    }
68
69
    /**
70
     * @before('call' => 'funcBefore')
71
     * @after('call' => 'funcAfter')
72
     */
73
    public function cbSingle()
74
    {
75
    }
76
77
    /**
78
     * @before('call' => 'funcBefore1')
79
     * @before('call' => 'funcBefore2')
80
     * @after('call' => 'funcAfter1')
81
     * @after('call' => 'funcAfter2')
82
     * @after('call' => 'funcAfter3')
83
     */
84
    public function cbMultiple()
85
    {
86
    }
87
88
    /**
89
     * @before('call' => 'funcBefore1', 'with' => ['param1'])
90
     * @before('call' => 'funcBefore2', 'with' => ['param1', 'param2'])
91
     * @after('call' => 'funcAfter1', 'with' => ['param1', 'param2'])
92
     */
93
    public function cbParams()
94
    {
95
    }
96
97
    /**
98
     * @di('attr' => 'colorService', 'class' => 'ColorService')
99
     * @di('attr' => 'fontService', 'class' => 'FontService')
100
     */
101
    public function di1()
102
    {
103
    }
104
105
    /**
106
     * @di('attr' => 'colorService', 'class' => 'ColorService')
107
     * @di('attr' => 'textService', 'class' => '\Jaxon\Annotations\Tests\Service\TextService')
108
     */
109
    public function di2()
110
    {
111
    }
112
113
    /**
114
     * @before('name' => 'funcBefore', 'with' => ['param1'])
115
     */
116
    public function cbBeforeNoCall()
117
    {
118
    }
119
120
    /**
121
     * @before('call' => 'funcBefore', 'params' => ['param1'])
122
     */
123
    public function cbBeforeUnknownAttr()
124
    {
125
    }
126
127
    /**
128
     * @before('call' => 'funcBefore', 'with' => 'param1')
129
     */
130
    public function cbBeforeWrongAttrType()
131
    {
132
    }
133
134
    /**
135
     * @after('name' => 'funcAfter', 'with' => ['param1'])
136
     */
137
    public function cbAfterNoCall()
138
    {
139
    }
140
141
    /**
142
     * @after('call' => 'funcAfter', 'params' => ['param1'])
143
     */
144
    public function cbAfterUnknownAttr()
145
    {
146
    }
147
148
    /**
149
     * @after('call' => 'funcAfter', 'with' => true)
150
     */
151
    public function cbAfterWrongAttrType()
152
    {
153
    }
154
155
    /**
156
     * @di('attr' => 'attr', 'params' => '')
157
     */
158
    public function diUnknownAttr()
159
    {
160
    }
161
162
    /**
163
     * @di('attr' => [], 'class' => 'ClassName')
164
     */
165
    public function diWrongAttrType()
166
    {
167
    }
168
169
    /**
170
     * @di('attr' => 'attr', 'class' => true)
171
     */
172
    public function diWrongClassType()
173
    {
174
    }
175
176
    /**
177
     * @di('attr' => 'attr', 'class' => 'ClassName', 'name' => 'di')
178
     */
179
    public function diWrongVarCount()
180
    {
181
    }
182
}
183