forked from sbarex/SourceCodeSyntaxHighlight
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathexample.php
More file actions
53 lines (45 loc) · 1.25 KB
/
Copy pathexample.php
File metadata and controls
53 lines (45 loc) · 1.25 KB
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
<?php
$heredoc = <<< HEREDOC_ID
some $contents
HEREDOC_ID;
function foo() {
$a = [0, 1, 2];
return SomeClass::$shared;
}
// Sample comment
use AnotherClass as SomeAlias;
class SomeClass extends One implements Another {
public $my;
protected $myProtected;
private $myPrivate;
public static $shared;
const CONSTANT = 0987654321;
/**
* Description by <a href="mailto:">user@host.dom</a>
* Semantic highlighting:
* Generated spectrum to pick colors for local variables and parameters:
* Color#1 SC1.1 SC1.2 SC1.3 SC1.4 Color#2 SC2.1 SC2.2 SC2.3 SC2.4 Color#3
* Color#3 SC3.1 SC3.2 SC3.3 SC3.4 Color#4 SC4.1 SC4.2 SC4.3 SC4.4 Color#5
* @param $abc
* @param $def
* @property $magic
* @return SomeType
*/
function doSmth($abc, $def, int $foo, SomeClass $bar) {
$b = new SomeAlias();
foo();
$def .= self::magic;
$def .= self::CONSTANT;
$v = Helper::convert($abc . "\n {$def}" . $$def);
$q = new Query( $this->invent(abs(0x80)) );
$q = new Query( $this->protectedInvent(abs(0x80)) );
$q = new Query( $this->privateInvent(abs(0x80)) );
return array($v => $q->result);
}
}
interface Another {
}
include (dirname(__FILE__) . "inc.php");
`rm -r`;
goto Label;
Label: