Test Setup Failed
Push — master ( 4913ba...eddc54 )
by Php Easy Api
03:29
created

StaticNamespaceRepository::kernel()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 1
nc 1
nop 0
dl 0
loc 3
rs 10
c 0
b 0
f 0
1
<?php
2
3
namespace Resta\Foundation\PathManager;
4
5
use Resta\Support\Utils;
6
7
class StaticNamespaceRepository extends StaticPathRepository
8
{
9
    /**
10
     * @return string
11
     */
12
    public function autoloadNamespace()
13
    {
14
        return StaticPathList::$autoloadNamespace;
15
    }
16
17
    /**
18
     * @return string
19
     */
20
    public function bootDir()
21
    {
22
        return StaticPathList::$boot;
23
    }
24
25
    /**
26
     * @return string
27
     */
28
    public function builder()
29
    {
30
        return Utils::getNamespace(parent::builder());
0 ignored issues
show
introduced by
The method builder() does not exist on Resta\Foundation\PathManager\StaticPathRepository. Maybe you want to declare this class abstract? ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-call  annotation

30
        return Utils::getNamespace(parent::/** @scrutinizer ignore-call */ builder());
Loading history...
31
    }
32
33
    /**
34
     * @param null $endpoint
0 ignored issues
show
Documentation Bug introduced by
Are you sure the doc-type for parameter $endpoint is correct as it would always require null to be passed?
Loading history...
35
     * @param $bind
36
     * @return mixed|string
37
     */
38
    public function controller($endpoint=null,$bind=array())
39
    {
40
        $call=Utils::getNamespace($this->appCall());
41
42
        if($endpoint===null) return $call;
0 ignored issues
show
introduced by
The condition $endpoint === null is always true.
Loading history...
43
44
        $bundleName = $call.'\\'.ucfirst($endpoint).''.StaticPathList::$controllerBundleName.'';
45
46
        $endpointCall=$bundleName.'\\'.ucfirst($endpoint).''.StaticPathModel::$callClassPrefix;
47
48
        if($bind===true) return $endpointCall;
49
50
        if($bind=="bundle") return $bundleName;
51
52
        return app()->resolve($endpointCall,$bind);
53
    }
54
55
    /**
56
     * @return string
57
     */
58
    public function command()
59
    {
60
        return Utils::getNamespace(parent::command());
0 ignored issues
show
introduced by
The method command() does not exist on Resta\Foundation\PathManager\StaticPathRepository. Maybe you want to declare this class abstract? ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-call  annotation

60
        return Utils::getNamespace(parent::/** @scrutinizer ignore-call */ command());
Loading history...
61
    }
62
63
    /**
64
     * @return mixed
65
     */
66
    public function config()
67
    {
68
        return Utils::getNamespace(parent::config());
0 ignored issues
show
introduced by
The method config() does not exist on Resta\Foundation\PathManager\StaticPathRepository. Maybe you want to declare this class abstract? ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-call  annotation

68
        return Utils::getNamespace(parent::/** @scrutinizer ignore-call */ config());
Loading history...
69
    }
70
71
    /**
72
     * @return mixed
73
     */
74
    public function helpers()
75
    {
76
        return Utils::getNamespace(parent::helpers());
0 ignored issues
show
introduced by
The method helpers() does not exist on Resta\Foundation\PathManager\StaticPathRepository. Maybe you want to declare this class abstract? ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-call  annotation

76
        return Utils::getNamespace(parent::/** @scrutinizer ignore-call */ helpers());
Loading history...
77
    }
78
79
    /**
80
     * @return mixed
81
     */
82
    public function tests()
83
    {
84
        return Utils::getNamespace(parent::tests());
0 ignored issues
show
introduced by
The method tests() does not exist on Resta\Foundation\PathManager\StaticPathRepository. Maybe you want to declare this class abstract? ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-call  annotation

84
        return Utils::getNamespace(parent::/** @scrutinizer ignore-call */ tests());
Loading history...
85
    }
86
87
    /**
88
     * @return mixed
89
     */
90
    public function workers()
91
    {
92
        return Utils::getNamespace(parent::workers());
0 ignored issues
show
introduced by
The method workers() does not exist on Resta\Foundation\PathManager\StaticPathRepository. Maybe you want to declare this class abstract? ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-call  annotation

92
        return Utils::getNamespace(parent::/** @scrutinizer ignore-call */ workers());
Loading history...
93
    }
94
95
    /**
96
     * @return mixed
97
     */
98
    public function schedule()
99
    {
100
        return Utils::getNamespace(parent::schedule());
0 ignored issues
show
introduced by
The method schedule() does not exist on Resta\Foundation\PathManager\StaticPathRepository. Maybe you want to declare this class abstract? ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-call  annotation

100
        return Utils::getNamespace(parent::/** @scrutinizer ignore-call */ schedule());
Loading history...
101
    }
102
103
    /**
104
     * @return mixed
105
     */
106
    public function kernel()
107
    {
108
        return Utils::getNamespace(parent::kernel());
0 ignored issues
show
introduced by
The method kernel() does not exist on Resta\Foundation\PathManager\StaticPathRepository. Maybe you want to declare this class abstract? ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-call  annotation

108
        return Utils::getNamespace(parent::/** @scrutinizer ignore-call */ kernel());
Loading history...
109
    }
110
111
    /**
112
     * @return mixed
113
     */
114
    public function provider()
115
    {
116
        return Utils::getNamespace(parent::provider());
0 ignored issues
show
Bug introduced by
The method provider() does not exist on Resta\Foundation\PathManager\StaticPathRepository. Did you maybe mean appProvider()? ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-call  annotation

116
        return Utils::getNamespace(parent::/** @scrutinizer ignore-call */ provider());

This check looks for calls to methods that do not seem to exist on a given type. It looks for the method on the type itself as well as in inherited classes or implemented interfaces.

This is most likely a typographical error or the method has been renamed.

Loading history...
117
    }
118
119
    /**
120
     * @return mixed
121
     */
122
    public function logger()
123
    {
124
        return Utils::getNamespace(parent::logger());
0 ignored issues
show
introduced by
The method logger() does not exist on Resta\Foundation\PathManager\StaticPathRepository. Maybe you want to declare this class abstract? ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-call  annotation

124
        return Utils::getNamespace(parent::/** @scrutinizer ignore-call */ logger());
Loading history...
125
    }
126
127
    /**
128
     * @return mixed
129
     */
130
    public function middleware()
131
    {
132
        return Utils::getNamespace(parent::middleware());
0 ignored issues
show
introduced by
The method middleware() does not exist on Resta\Foundation\PathManager\StaticPathRepository. Maybe you want to declare this class abstract? ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-call  annotation

132
        return Utils::getNamespace(parent::/** @scrutinizer ignore-call */ middleware());
Loading history...
133
    }
134
135
    /**
136
     * @return mixed
137
     */
138
    public function factory()
139
    {
140
        return Utils::getNamespace(parent::factory());
0 ignored issues
show
introduced by
The method factory() does not exist on Resta\Foundation\PathManager\StaticPathRepository. Maybe you want to declare this class abstract? ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-call  annotation

140
        return Utils::getNamespace(parent::/** @scrutinizer ignore-call */ factory());
Loading history...
141
    }
142
143
    /**
144
     * @return mixed
145
     */
146
    public function migration()
147
    {
148
        return Utils::getNamespace(parent::migration());
0 ignored issues
show
introduced by
The method migration() does not exist on Resta\Foundation\PathManager\StaticPathRepository. Maybe you want to declare this class abstract? ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-call  annotation

148
        return Utils::getNamespace(parent::/** @scrutinizer ignore-call */ migration());
Loading history...
149
    }
150
151
    /**
152
     * @return mixed
153
     */
154
    public function model()
155
    {
156
        return Utils::getNamespace(parent::model());
0 ignored issues
show
introduced by
The method model() does not exist on Resta\Foundation\PathManager\StaticPathRepository. Maybe you want to declare this class abstract? ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-call  annotation

156
        return Utils::getNamespace(parent::/** @scrutinizer ignore-call */ model());
Loading history...
157
    }
158
159
    /**
160
     * @return mixed
161
     */
162
    public function exception()
163
    {
164
        return Utils::getNamespace(parent::exception());
0 ignored issues
show
introduced by
The method exception() does not exist on Resta\Foundation\PathManager\StaticPathRepository. Maybe you want to declare this class abstract? ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-call  annotation

164
        return Utils::getNamespace(parent::/** @scrutinizer ignore-call */ exception());
Loading history...
165
    }
166
167
    /**
168
     * @return mixed
169
     */
170
    public function optionalEvents()
171
    {
172
        return Utils::getNamespace(parent::optionalEvents());
0 ignored issues
show
introduced by
The method optionalEvents() does not exist on Resta\Foundation\PathManager\StaticPathRepository. Maybe you want to declare this class abstract? ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-call  annotation

172
        return Utils::getNamespace(parent::/** @scrutinizer ignore-call */ optionalEvents());
Loading history...
173
    }
174
175
    /**
176
     * @return mixed
177
     */
178
    public function optionalJob()
179
    {
180
        return Utils::getNamespace(parent::optionalJob());
0 ignored issues
show
introduced by
The method optionalJob() does not exist on Resta\Foundation\PathManager\StaticPathRepository. Maybe you want to declare this class abstract? ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-call  annotation

180
        return Utils::getNamespace(parent::/** @scrutinizer ignore-call */ optionalJob());
Loading history...
181
    }
182
183
    /**
184
     * @return mixed
185
     */
186
    public function optionalListeners()
187
    {
188
        return Utils::getNamespace(parent::optionalListeners());
0 ignored issues
show
introduced by
The method optionalListeners() does not exist on Resta\Foundation\PathManager\StaticPathRepository. Maybe you want to declare this class abstract? ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-call  annotation

188
        return Utils::getNamespace(parent::/** @scrutinizer ignore-call */ optionalListeners());
Loading history...
189
    }
190
191
    /**
192
     * @return mixed
193
     */
194
    public function optionalSubscribers()
195
    {
196
        return Utils::getNamespace(parent::optionalSubscribers());
0 ignored issues
show
Bug introduced by
The method optionalSubscribers() does not exist on Resta\Foundation\PathManager\StaticPathRepository. Did you maybe mean appOptionalSubscribers()? ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-call  annotation

196
        return Utils::getNamespace(parent::/** @scrutinizer ignore-call */ optionalSubscribers());

This check looks for calls to methods that do not seem to exist on a given type. It looks for the method on the type itself as well as in inherited classes or implemented interfaces.

This is most likely a typographical error or the method has been renamed.

Loading history...
197
    }
198
199
    /**
200
     * @return mixed
201
     */
202
    public function optionalSource()
203
    {
204
        return Utils::getNamespace(parent::optionalSource());
0 ignored issues
show
introduced by
The method optionalSource() does not exist on Resta\Foundation\PathManager\StaticPathRepository. Maybe you want to declare this class abstract? ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-call  annotation

204
        return Utils::getNamespace(parent::/** @scrutinizer ignore-call */ optionalSource());
Loading history...
205
    }
206
207
    /**
208
     * @return mixed
209
     */
210
    public function optionalWebservice()
211
    {
212
        return Utils::getNamespace(parent::optionalWebservice());
0 ignored issues
show
introduced by
The method optionalWebservice() does not exist on Resta\Foundation\PathManager\StaticPathRepository. Maybe you want to declare this class abstract? ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-call  annotation

212
        return Utils::getNamespace(parent::/** @scrutinizer ignore-call */ optionalWebservice());
Loading history...
213
    }
214
215
    /**
216
     * @return mixed
217
     */
218
    public function request()
219
    {
220
        return Utils::getNamespace(parent::request());
0 ignored issues
show
introduced by
The method request() does not exist on Resta\Foundation\PathManager\StaticPathRepository. Maybe you want to declare this class abstract? ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-call  annotation

220
        return Utils::getNamespace(parent::/** @scrutinizer ignore-call */ request());
Loading history...
221
    }
222
223
    /**
224
     * @return mixed
225
     */
226
    public function repository()
227
    {
228
        return Utils::getNamespace(parent::repository());
0 ignored issues
show
introduced by
The method repository() does not exist on Resta\Foundation\PathManager\StaticPathRepository. Maybe you want to declare this class abstract? ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-call  annotation

228
        return Utils::getNamespace(parent::/** @scrutinizer ignore-call */ repository());
Loading history...
229
    }
230
231
    /**
232
     * @return mixed
233
     */
234
    public function route()
235
    {
236
        return Utils::getNamespace(parent::route());
0 ignored issues
show
introduced by
The method route() does not exist on Resta\Foundation\PathManager\StaticPathRepository. Maybe you want to declare this class abstract? ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-call  annotation

236
        return Utils::getNamespace(parent::/** @scrutinizer ignore-call */ route());
Loading history...
237
    }
238
239
    /**
240
     * @return mixed
241
     */
242
    public function serviceAnnotations()
243
    {
244
        return Utils::getNamespace(parent::serviceAnnotations());
0 ignored issues
show
Bug introduced by
The method serviceAnnotations() does not exist on Resta\Foundation\PathManager\StaticPathRepository. Did you maybe mean appServiceAnnotations()? ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-call  annotation

244
        return Utils::getNamespace(parent::/** @scrutinizer ignore-call */ serviceAnnotations());

This check looks for calls to methods that do not seem to exist on a given type. It looks for the method on the type itself as well as in inherited classes or implemented interfaces.

This is most likely a typographical error or the method has been renamed.

Loading history...
245
    }
246
247
248
    /**
249
     * @return mixed
250
     */
251
    public function serviceEventDispatcher()
252
    {
253
        return Utils::getNamespace(parent::ServiceEventDispatcher());
0 ignored issues
show
Bug introduced by
The method ServiceEventDispatcher() does not exist on Resta\Foundation\PathManager\StaticPathRepository. Did you maybe mean appServiceEventDispatcher()? ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-call  annotation

253
        return Utils::getNamespace(parent::/** @scrutinizer ignore-call */ ServiceEventDispatcher());

This check looks for calls to methods that do not seem to exist on a given type. It looks for the method on the type itself as well as in inherited classes or implemented interfaces.

This is most likely a typographical error or the method has been renamed.

Loading history...
254
    }
255
256
    /**
257
     * @return mixed
258
     */
259
    public function serviceMiddleware()
260
    {
261
        return Utils::getNamespace(parent::serviceMiddleware());
0 ignored issues
show
Bug introduced by
The method serviceMiddleware() does not exist on Resta\Foundation\PathManager\StaticPathRepository. Did you maybe mean appServiceMiddleware()? ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-call  annotation

261
        return Utils::getNamespace(parent::/** @scrutinizer ignore-call */ serviceMiddleware());

This check looks for calls to methods that do not seem to exist on a given type. It looks for the method on the type itself as well as in inherited classes or implemented interfaces.

This is most likely a typographical error or the method has been renamed.

Loading history...
262
    }
263
264
    /**
265
     * @return string
266
     */
267
    public function storeConfigDir()
268
    {
269
        return $this->storeDir().'\Config';
270
    }
271
272
    /**
273
     * @return string
274
     */
275
    public function storeDir()
276
    {
277
        return StaticPathList::$store;
278
    }
279
280
    /**
281
     * @return mixed
282
     */
283
    public function stubs()
284
    {
285
        return Utils::getNamespace(parent::stubs());
0 ignored issues
show
introduced by
The method stubs() does not exist on Resta\Foundation\PathManager\StaticPathRepository. Maybe you want to declare this class abstract? ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-call  annotation

285
        return Utils::getNamespace(parent::/** @scrutinizer ignore-call */ stubs());
Loading history...
286
    }
287
288
    /**
289
     * @return mixed
290
     */
291
    public function version()
292
    {
293
        return Utils::getNamespace(parent::version());
0 ignored issues
show
introduced by
The method version() does not exist on Resta\Foundation\PathManager\StaticPathRepository. Maybe you want to declare this class abstract? ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-call  annotation

293
        return Utils::getNamespace(parent::/** @scrutinizer ignore-call */ version());
Loading history...
294
    }
295
}