1 | <?php |
||
12 | class LaravooleBroadcaster extends Broadcaster |
||
13 | { |
||
14 | /** |
||
15 | * Authenticate the incoming request for a given channel. |
||
16 | * |
||
17 | * @param \Illuminate\Http\Request $request |
||
18 | * @return mixed |
||
19 | */ |
||
20 | public function auth($request) |
||
31 | |||
32 | /** |
||
33 | * Return the valid authentication response. |
||
34 | * |
||
35 | * @param \Illuminate\Http\Request $request |
||
36 | * @param mixed $result |
||
37 | * @return mixed |
||
38 | */ |
||
39 | public function validAuthenticationResponse($request, $result) |
||
50 | |||
51 | /** |
||
52 | * Broadcast the given event. |
||
53 | * |
||
54 | * @param array $channels |
||
55 | * @param string $event |
||
56 | * @param array $payload |
||
57 | * @return void |
||
58 | */ |
||
59 | public function broadcast(array $channels, $event, array $payload = []) |
||
73 | } |
||
74 |
This check looks for a call to a parent method whose name is different than the method from which it is called.
Consider the following code:
The
getFirstName()
method in theSon
calls the wrong method in the parent class.