Failed Conditions
Push — master ( c7ef78...c451af )
by Alexander
02:24
created

TSomeEventHandlerFeature::OnSomethingOther()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 3
Bugs 1 Features 0
Metric Value
cc 1
eloc 1
c 3
b 1
f 0
nc 1
nop 0
dl 0
loc 4
rs 10
1
<?php
2
3
trait TSomeEventHandlerFeature
4
{
5
6
	/**
7
	 * [HOOK] Not the event.
8
	 *
9
	 * @return void
10
	 */
11
	protected function someMethod()
12
	{
13
14
	}
15
16
	/**
17
	 * [HOOK] Not the event.
18
	 *
19
	 * @return void
20
	 */
21
	protected function OnSomething()
22
	{
23
24
	}
25
26
	/**
27
	 * hOOK] Not the event.
28
	 *
29
	 * @return void
30
	 */
31
	protected function OnSomethingOther()
32
	{
33
34
	}
35
}
36
37
?>
0 ignored issues
show
Best Practice introduced by
It is not recommended to use PHP's closing tag ?> in files other than templates.

Using a closing tag in PHP files that only contain PHP code is not recommended as you might accidentally add whitespace after the closing tag which would then be output by PHP. This can cause severe problems, for example headers cannot be sent anymore.

A simple precaution is to leave off the closing tag as it is not required, and it also has no negative effects whatsoever.

Loading history...
38