InitializeController::index()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 5

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 5
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 0
1
<?php
2
/**
3
 * Created by PhpStorm.
4
 * User: shanmaseen
5
 * Date: 24/03/19
6
 * Time: 04:21 م
7
 */
8
9
namespace Shamaseen\Laravel\Ratchet\Controllers;
10
11
/**
12
 * Class InitializeController
13
 * @package App\WebSockets\Controllers
14
 */
15
class InitializeController extends WebSocketController
16
{
17
18
    function index()
0 ignored issues
show
Best Practice introduced by
It is generally recommended to explicitly declare the visibility for methods.

Adding explicit visibility (private, protected, or public) is generally recommend to communicate to other developers how, and from where this method is intended to be used.

Loading history...
19
    {
20
        echo 'Initializing ..';
21
        $this->sendBack(['message'=>'WebSocket Initialized','event'=>'initialize']);
22
    }
23
}