InitializeController   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 9
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 0
Metric Value
wmc 1
lcom 0
cbo 1
dl 0
loc 9
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A index() 0 5 1
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
}