Total Complexity | 2 |
Total Lines | 32 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
19 | class JObserverWrapperMapper |
||
20 | { |
||
21 | /** |
||
22 | * Helper wrapper method for addObserverClassToClass |
||
23 | * |
||
24 | * @param string $observerClass The name of the observer class (implementing JObserverInterface). |
||
25 | * @param string $observableClass The name of the observable class (implementing JObservableInterface). |
||
26 | * @param array|boolean $params The params to give to the JObserverInterface::createObserver() function, or false to remove mapping. |
||
27 | * |
||
28 | * @return void |
||
29 | * |
||
30 | * @see JObserverMapper::addObserverClassToClass |
||
31 | * @since 3.4 |
||
32 | */ |
||
33 | public function addObserverClassToClass($observerClass, $observableClass, $params = array()) |
||
34 | { |
||
35 | return JObserverMapper::addObserverClassToClass($observerClass, $observableClass, $params); |
||
|
|||
36 | } |
||
37 | |||
38 | /** |
||
39 | * Helper wrapper method for attachAllObservers |
||
40 | * |
||
41 | * @param JObservableInterface $observableObject The observable subject object. |
||
42 | * |
||
43 | * @return void |
||
44 | * |
||
45 | * @see JObserverMapper::attachAllObservers |
||
46 | * @since 3.4 |
||
47 | */ |
||
48 | public function attachAllObservers(JObservableInterface $observableObject) |
||
51 | } |
||
52 | } |
||
53 |
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.