Completed
Push — master ( 088bf6...a47832 )
by Martijn
02:41
created

testParse_CurlyBraces   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 20
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 0
Metric Value
dl 0
loc 20
rs 10
c 0
b 0
f 0
wmc 2
lcom 0
cbo 0

2 Methods

Rating   Name   Duplication   Size   Complexity  
A Dummy() 0 4 1
A Dummy2() 0 3 1
1
<?php
2
3
namespace Test\Parser\Php\ParserTest;
4
5
/**
6
 * Demonstrates a very simple but complete API
7
 * @rest\title CurlyBraceFunction
8
 * @rest\api MyApi Example
9
 */
10
class testParse_CurlyBraces {
11
12
	/**
13
	 * @rest\endpoint /endpoint
14
	 * @rest\method GET Something
15
	 */
16
	public function Dummy()
17
	{
18
		echo "{$foo}";
0 ignored issues
show
Bug introduced by
The variable $foo does not exist. Did you forget to declare it?

This check marks access to variables or properties that have not been declared yet. While PHP has no explicit notion of declaring a variable, accessing it before a value is assigned to it is most likely a bug.

Loading history...
19
	}
20
	
21
	/**
22
	 * @rest\endpoint /endpoint2
23
	 * @rest\method GET Something2
24
	 */
25
	public function Dummy2()
26
	{
27
	}
28
29
}
30