blob: 7d068726383709e53f02e4653ed3c9c488ca8a74 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
|
<?php
namespace
{
function bar()
{
return 1;
}
function foo($x)
{
$sum = 0;
for ($idx = 0; $idx < $x; $idx++) {
$sum += bar();
}
return $sum;
}
function add($a, $b)
{
return $a + $b;
}
class Foo
{
public $val;
public function __construct($val = null)
{
$this->val = $val;
}
public static function asdf()
{
return 'qwer';
}
public static function plus($a, $b)
{
return $a + $b;
}
public function bar()
{
return 1;
}
public function add($a, $b)
{
return $a + $b;
}
public function context()
{
return opencensus_trace_context();
}
}
}
namespace Illuminate\Database\Eloquent
{
// fake class with method we know is traced
class Model
{
public function delete() {
}
}
}
|