Skip to content

Commit

Permalink
[Finder] moved most protected methods and properties to private
Browse files Browse the repository at this point in the history
  • Loading branch information
fabpot committed Mar 8, 2011
1 parent 75b29ff commit c9b965d
Show file tree
Hide file tree
Showing 11 changed files with 29 additions and 29 deletions.
4 changes: 2 additions & 2 deletions src/Symfony/Component/Finder/Comparator/Comparator.php
Expand Up @@ -18,8 +18,8 @@
*/
class Comparator
{
protected $target;
protected $operator = '==';
private $target;
private $operator = '==';

/**
* Gets the target value.
Expand Down
4 changes: 2 additions & 2 deletions src/Symfony/Component/Finder/Comparator/DateComparator.php
Expand Up @@ -18,8 +18,8 @@
*/
class DateComparator extends Comparator
{
protected $target;
protected $comparison;
private $target;
private $comparison;

/**
* Constructor.
Expand Down
26 changes: 13 additions & 13 deletions src/Symfony/Component/Finder/Finder.php
Expand Up @@ -27,18 +27,18 @@
*/
class Finder implements \IteratorAggregate
{
protected $mode = 0;
protected $names = array();
protected $notNames = array();
protected $exclude = array();
protected $filters = array();
protected $depths = array();
protected $sizes = array();
protected $followLinks = false;
protected $sort = false;
protected $ignoreVCS = true;
protected $dirs = array();
protected $dates = array();
private $mode = 0;
private $names = array();
private $notNames = array();
private $exclude = array();
private $filters = array();
private $depths = array();
private $sizes = array();
private $followLinks = false;
private $sort = false;
private $ignoreVCS = true;
private $dirs = array();
private $dates = array();

/**
* Restricts the matching to directories only.
Expand Down Expand Up @@ -336,7 +336,7 @@ public function getIterator()
return $iterator;
}

protected function searchInDirectory($dir)
private function searchInDirectory($dir)
{
$flags = \RecursiveDirectoryIterator::SKIP_DOTS;

Expand Down
Expand Up @@ -21,7 +21,7 @@
*/
class CustomFilterIterator extends \FilterIterator
{
protected $filters = array();
private $filters = array();

/**
* Constructor.
Expand Down
Expand Up @@ -18,7 +18,7 @@
*/
class DateRangeFilterIterator extends \FilterIterator
{
protected $comparators = array();
private $comparators = array();

/**
* Constructor.
Expand Down
Expand Up @@ -18,7 +18,7 @@
*/
class DepthRangeFilterIterator extends \FilterIterator
{
protected $minDepth = 0;
private $minDepth = 0;

/**
* Constructor.
Expand Down
Expand Up @@ -18,7 +18,7 @@
*/
class ExcludeDirectoryFilterIterator extends \FilterIterator
{
protected $patterns;
private $patterns;

/**
* Constructor.
Expand Down
Expand Up @@ -21,7 +21,7 @@ class FileTypeFilterIterator extends \FilterIterator
const ONLY_FILES = 1;
const ONLY_DIRECTORIES = 2;

protected $mode;
private $mode;

/**
* Constructor.
Expand Down
Expand Up @@ -20,8 +20,8 @@
*/
class FilenameFilterIterator extends \FilterIterator
{
protected $matchRegexps;
protected $noMatchRegexps;
private $matchRegexps;
private $noMatchRegexps;

/**
* Constructor.
Expand Down Expand Up @@ -81,7 +81,7 @@ public function accept()
return $match && !$exclude;
}

protected function toRegex($str)
private function toRegex($str)
{
if (preg_match('/^([^a-zA-Z0-9\\\\]).+?\\1[ims]?$/', $str)) {
return $str;
Expand Down
Expand Up @@ -18,7 +18,7 @@
*/
class SizeRangeFilterIterator extends \FilterIterator
{
protected $comparators = array();
private $comparators = array();

/**
* Constructor.
Expand Down
6 changes: 3 additions & 3 deletions src/Symfony/Component/Finder/SplFileInfo.php
Expand Up @@ -18,8 +18,8 @@
*/
class SplFileInfo extends \SplFileInfo
{
protected $relativePath;
protected $relativePathname;
private $relativePath;
private $relativePathname;

/**
* Constructor
Expand Down Expand Up @@ -54,4 +54,4 @@ public function getRelativePathname()
{
return $this->relativePathname;
}
}
}

0 comments on commit c9b965d

Please sign in to comment.