Total Complexity | 5 |
Total Lines | 59 |
Duplicated Lines | 0 % |
Changes | 4 | ||
Bugs | 0 | Features | 0 |
1 | <?php # -*- coding: utf-8 -*- |
||
9 | class Assets |
||
10 | { |
||
11 | |||
12 | /** |
||
13 | * @var PluginProperties |
||
14 | */ |
||
15 | private $pluginProperties; |
||
16 | |||
17 | /** |
||
18 | * Assets constructor |
||
19 | * |
||
20 | * @param PluginProperties $pluginProperties |
||
21 | */ |
||
22 | public function __construct(PluginProperties $pluginProperties) |
||
23 | { |
||
24 | $this->pluginProperties = $pluginProperties; |
||
25 | } |
||
26 | |||
27 | /** |
||
28 | * Enqueue script for media modal |
||
29 | * |
||
30 | * @since 2015-01-26 |
||
31 | */ |
||
32 | public function enqueueScripts() |
||
47 | } |
||
48 | |||
49 | /** |
||
50 | * Enqueue script for media modal |
||
51 | * |
||
52 | * @since 2015-02-27 |
||
53 | */ |
||
54 | public function enqueueStyles() |
||
68 | } |
||
69 | } |
||
70 |
This check looks for function or method calls that always return null and whose return value is used.
The method
getObject()
can return nothing but null, so it makes no sense to use the return value.The reason is most likely that a function or method is imcomplete or has been reduced for debug purposes.