EVKit   A
last analyzed

Complexity

Total Complexity 4

Size/Duplication

Total Lines 14
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 1
Metric Value
eloc 3
c 1
b 0
f 1
dl 0
loc 14
rs 10
wmc 4

2 Methods

Rating   Name   Duplication   Size   Complexity  
A loops() 0 3 2
A exits() 0 3 2
1
<?php
2
/**
3
 * Event kit
4
 * User: moyo
5
 * Date: 30/03/2018
6
 * Time: 10:25 AM
7
 */
8
9
namespace Carno\Console\Chips;
10
11
trait EVKit
12
{
13
    /**
14
     */
15
    protected function loops() : void
16
    {
17
        extension_loaded('swoole') && swoole_event_wait();
0 ignored issues
show
Bug introduced by
The function swoole_event_wait was not found. Maybe you did not declare it correctly or list all dependencies? ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-call  annotation

17
        extension_loaded('swoole') && /** @scrutinizer ignore-call */ swoole_event_wait();
Loading history...
18
    }
19
20
    /**
21
     */
22
    protected function exits() : void
23
    {
24
        extension_loaded('swoole') && swoole_event_exit();
0 ignored issues
show
Bug introduced by
The function swoole_event_exit was not found. Maybe you did not declare it correctly or list all dependencies? ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-call  annotation

24
        extension_loaded('swoole') && /** @scrutinizer ignore-call */ swoole_event_exit();
Loading history...
25
    }
26
}
27