Browse files

fixed CS

  • Loading branch information...
1 parent 4d6a965 commit fccf904140dd00656a7cea17ff6f54d78b095649 @fabpot fabpot committed Jul 9, 2012
Showing with 9 additions and 11 deletions.
  1. +3 −3 Finder.php
  2. +1 −1 Glob.php
  3. +0 −1 Iterator/MultiplePcreFilterIterator.php
  4. +2 −3 Tests/FinderTest.php
  5. +3 −3 Tests/Iterator/RealIteratorTestCase.php
View
6 Finder.php
@@ -47,7 +47,7 @@ class Finder implements \IteratorAggregate, \Countable
private $contains = array();
private $notContains = array();
- static private $vcsPatterns = array('.svn', '_svn', 'CVS', '_darcs', '.arch-params', '.monotone', '.bzr', '.git', '.hg');
+ private static $vcsPatterns = array('.svn', '_svn', 'CVS', '_darcs', '.arch-params', '.monotone', '.bzr', '.git', '.hg');
/**
* Constructor.
@@ -64,7 +64,7 @@ public function __construct()
*
* @api
*/
- static public function create()
+ public static function create()
{
return new self();
}
@@ -318,7 +318,7 @@ public function ignoreVCS($ignoreVCS)
return $this;
}
- static public function addVCSPattern($pattern)
+ public static function addVCSPattern($pattern)
{
self::$vcsPatterns[] = $pattern;
}
View
2 Glob.php
@@ -44,7 +44,7 @@ class Glob
*
* @return string regex The regexp
*/
- static public function toRegex($glob, $strictLeadingDot = true, $strictWildcardSlash = true)
+ public static function toRegex($glob, $strictLeadingDot = true, $strictWildcardSlash = true)
{
$firstByte = true;
$escaping = false;
View
1 Iterator/MultiplePcreFilterIterator.php
@@ -11,7 +11,6 @@
namespace Symfony\Component\Finder\Iterator;
-
/**
* MultiplePcreFilterIterator filters files using patterns (regexps, globs or strings).
*
View
5 Tests/FinderTest.php
@@ -15,9 +15,9 @@
class FinderTest extends Iterator\RealIteratorTestCase
{
- static protected $tmpDir;
+ protected static $tmpDir;
- static public function setUpBeforeClass()
+ public static function setUpBeforeClass()
{
parent::setUpBeforeClass();
@@ -172,7 +172,6 @@ public function testSortByType()
$this->assertIterator($this->toAbsolute(array('foo', 'toto', 'foo/bar.tmp', 'test.php', 'test.py')), $finder->in(self::$tmpDir)->getIterator());
}
-
public function testSortByAccessedTime()
{
$finder = new Finder();
View
6 Tests/Iterator/RealIteratorTestCase.php
@@ -13,9 +13,9 @@
abstract class RealIteratorTestCase extends IteratorTestCase
{
- static protected $files;
+ protected static $files;
- static public function setUpBeforeClass()
+ public static function setUpBeforeClass()
{
$tmpDir = sys_get_temp_dir().'/symfony2_finder';
self::$files = array(
@@ -51,7 +51,7 @@ static public function setUpBeforeClass()
touch($tmpDir.'/test.php', strtotime('2005-10-15'));
}
- static public function tearDownAfterClass()
+ public static function tearDownAfterClass()
{
foreach (array_reverse(self::$files) as $file) {
if ('/' === $file[strlen($file) - 1]) {

0 comments on commit fccf904

Please sign in to comment.