ILIAS
release_7 Revision v7.30-3-g800a261c036
◀ ilDoc Overview
Main Page
Related Pages
Modules
+
Namespaces
Namespace List
+
Namespace Members
+
All
$
_
a
b
c
d
e
f
g
h
i
j
l
m
p
r
s
t
w
+
Functions
_
a
b
c
f
g
h
i
r
s
t
w
+
Variables
$
c
d
e
f
g
h
j
l
m
p
s
t
+
Data Structures
Data Structures
Data Structure Index
Class Hierarchy
+
Data Fields
+
All
$
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
+
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
+
Variables
$
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
+
Files
File List
+
Globals
+
All
$
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
+
Functions
_
a
b
c
d
e
f
g
h
i
l
m
n
o
p
r
s
t
u
v
w
x
+
Variables
$
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
Examples
•
All
Data Structures
Namespaces
Files
Functions
Variables
Modules
Pages
example_raw.php
Go to the documentation of this file.
1
<?php
2
// PSR-2
3
namespace
Vendor\Package
;
4
5
use
ZPackage
;
6
use
FooInterface
;
7
use BarClass as
Bar
;
8
use
OtherVendor\OtherPackage\BazClass
;
9
10
class
Foo
extends
Bar
implements
FooInterface
11
{
12
public
function
sampleMethod
(
$a
,
$b
= null)
13
{
14
if
(
$a
===
$b
)
15
{
16
bar
();
17
}
18
elseif (
$a
>
$b
)
19
{
20
$foo
->bar($arg1);
21
}
22
else
23
{
24
BazClass::bar
($arg2, $arg3);
25
}
26
}
27
28
final
public
static
function
bar
()
29
{
30
// method body
31
}
32
}
33
35
// cast_spaces
36
$a
= 0;
$b
= 0;
$c
= 0;
$d
=0;
$e
= 0 ;
$f
=0;
37
$bar
= ( string )
$a
;
38
$foo
= (int)
$b
;
39
// concat_space
40
$foo
=
'bar'
. 3 .
'baz'
.
'qux'
;
41
// binary_operator_spaces
42
$a
= 1 +
$b
^
$d
!==
$e
or
$f
;
43
// unary_operator_spaces
44
$sample
= 0;
45
$sample
++;
46
//Unused blank lines: begin
47
48
49
50
//Unused blank lines: end
51
--
$sample
;
52
$sample
= ! !
$a
;
53
$sample
= ~ $c;
54
function
&
foo
(){}
55
// function_typehint_space
56
function
sample
(array
$a
)
57
{}
58
// return_type_declaration
59
function
bar
(
int
$a
):
string
{};
60
// whitespace_after_comma_in_array
61
$sample
= array(1,
'a'
,
$b
,);
Vendor\Package\foo
& foo()
Definition:
example_cleaned.php:47
Vendor\Package\$e
$e
Definition:
example_cleaned.php:31
Bar
Vendor\Package\sample
sample(array $a)
Definition:
example_cleaned.php:51
Vendor\Package\$bar
$bar
Definition:
example_cleaned.php:32
Vendor\Package\$d
$d
Definition:
example_cleaned.php:31
Vendor\Package\Foo\bar
static bar()
Definition:
example_cleaned.php:23
Vendor\Package\$f
$f
Definition:
example_cleaned.php:31
Vendor\Package\$foo
$foo
Definition:
example_cleaned.php:33
Vendor\Package\$sample
$sample
Definition:
example_cleaned.php:39
Vendor\Package
Definition:
example_cleaned.php:3
Vendor\Package\$b
$b
Definition:
example_cleaned.php:31
ZPackage
FooInterface
Vendor\Package\Foo\sampleMethod
sampleMethod($a, $b=null)
Definition:
example_raw.php:12
Vendor\Package\$a
$a
thx to https://mlocati.github.io/php-cs-fixer-configurator for the examples
Definition:
example_cleaned.php:31
Vendor\Package\$c
$c
Definition:
example_cleaned.php:31
BazClass
Vendor\Package\bar
bar(int $a)
Definition:
example_cleaned.php:55
CI
PHP-CS-Fixer
example
example_raw.php
Generated on Sat Apr 5 2025 21:00:54 for ILIAS by
1.8.13 (using
Doxyfile
)