Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

fixed CS

  • Loading branch information...
commit fccf904140dd00656a7cea17ff6f54d78b095649 1 parent 4d6a965
@fabpot fabpot authored
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]) {
Please sign in to comment.
Something went wrong with that request. Please try again.