Skip to content

Commit bb9d926

Browse files
Reworked: Make compiler extendable
1 parent b1edd01 commit bb9d926

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

lib/Compiler.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -35,17 +35,17 @@ class Compiler
3535
/**
3636
* @var string
3737
*/
38-
private $path;
38+
protected $path;
3939

4040
/**
4141
* @var array
4242
*/
43-
private $files = array();
43+
protected $files = array();
4444

4545
/**
4646
* @var array
4747
*/
48-
private $index = array();
48+
protected $index = array();
4949

5050
/**
5151
* Creates a Compiler instance.
@@ -263,7 +263,7 @@ protected function generateStub($name)
263263
* @param array $patterns
264264
* @return bool
265265
*/
266-
private function filter($path, array $patterns)
266+
protected function filter($path, array $patterns)
267267
{
268268
foreach ($patterns as $pattern) {
269269
if ($pattern[0] == '!' ? !fnmatch(substr($pattern, 1), $path) : fnmatch($pattern, $path)) {
@@ -280,7 +280,7 @@ private function filter($path, array $patterns)
280280
* @param string $source A PHP string
281281
* @return string The PHP string with the whitespace removed
282282
*/
283-
private function stripWhitespace($source)
283+
protected function stripWhitespace($source)
284284
{
285285
if (!function_exists('token_get_all')) {
286286
return $source;

0 commit comments

Comments
 (0)