Skip to content

Commit 7eb1e38

Browse files
committed
Fix style of ScopeInfo, VariableInfo
1 parent 1c4bf26 commit 7eb1e38

File tree

2 files changed

+29
-29
lines changed

2 files changed

+29
-29
lines changed

VariableAnalysis/ScopeInfo.php

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,13 @@
66
* Holds details of a scope.
77
*/
88
class ScopeInfo {
9-
public $owner;
10-
public $opener;
11-
public $closer;
12-
public $variables = array();
9+
public $owner;
10+
public $opener;
11+
public $closer;
12+
public $variables = array();
1313

14-
function __construct($currScope) {
15-
$this->owner = $currScope;
16-
// TODO: extract opener/closer
17-
}
14+
public function __construct($currScope) {
15+
$this->owner = $currScope;
16+
// TODO: extract opener/closer
17+
}
1818
}

VariableAnalysis/VariableInfo.php

Lines changed: 21 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -6,27 +6,27 @@
66
* Holds details of a variable within a scope.
77
*/
88
class VariableInfo {
9-
public $name;
10-
/**
11-
* What scope the variable has: local, param, static, global, bound
12-
*/
13-
public $scopeType;
14-
public $typeHint;
15-
public $passByReference = false;
16-
public $firstDeclared;
17-
public $firstInitialized;
18-
public $firstRead;
19-
public $ignoreUnused = false;
9+
public $name;
10+
/**
11+
* What scope the variable has: local, param, static, global, bound
12+
*/
13+
public $scopeType;
14+
public $typeHint;
15+
public $passByReference = false;
16+
public $firstDeclared;
17+
public $firstInitialized;
18+
public $firstRead;
19+
public $ignoreUnused = false;
2020

21-
static $scopeTypeDescriptions = array(
22-
'local' => 'variable',
23-
'param' => 'function parameter',
24-
'static' => 'static variable',
25-
'global' => 'global variable',
26-
'bound' => 'bound variable',
27-
);
21+
public static $scopeTypeDescriptions = array(
22+
'local' => 'variable',
23+
'param' => 'function parameter',
24+
'static' => 'static variable',
25+
'global' => 'global variable',
26+
'bound' => 'bound variable',
27+
);
2828

29-
function __construct($varName) {
30-
$this->name = $varName;
31-
}
29+
public function __construct($varName) {
30+
$this->name = $varName;
31+
}
3232
}

0 commit comments

Comments
 (0)