Permalink
Browse files

fixed CS

  • Loading branch information...
fabpot committed Dec 11, 2012
1 parent dd76c35 commit 2cb19ac6b571c36d96fcc8268ba34caf119f5712
@@ -316,6 +316,7 @@ private function buildSorting(Command $command, $sort)
switch ($sort) {
case SortableIterator::SORT_BY_NAME:
$command->ins('sort')->add('| sort');
+
return;
case SortableIterator::SORT_BY_TYPE:
$format = '%y';
@@ -11,7 +11,6 @@
namespace Symfony\Component\Finder\Adapter;
-use Symfony\Component\Finder\Iterator;
use Symfony\Component\Finder\Shell\Shell;
use Symfony\Component\Finder\Shell\Command;
@@ -11,7 +11,6 @@
namespace Symfony\Component\Finder\Adapter;
-use Symfony\Component\Finder\Iterator;
use Symfony\Component\Finder\Shell\Shell;
use Symfony\Component\Finder\Shell\Command;
@@ -10,5 +10,5 @@
/**
* @return \Symfony\Component\Finder\Adapter\AdapterInterface
*/
- function getAdapter();
+ public function getAdapter();
}
@@ -41,7 +41,7 @@ public function __construct($expr)
{
try {
$this->value = Regex::create($expr);
- } catch(\InvalidArgumentException $e) {
+ } catch (\InvalidArgumentException $e) {
$this->value = new Glob($expr);
}
}
@@ -21,28 +21,28 @@
*
* @return string
*/
- function render();
+ public function render();
/**
* Renders string representation of pattern.
*
* @return string
*/
- function renderPattern();
+ public function renderPattern();
/**
* Returns value case sensitivity.
*
* @return bool
*/
- function isCaseSensitive();
+ public function isCaseSensitive();
/**
* Returns expression type.
*
* @return int
*/
- function getType();
+ public function getType();
/**
* @param string $expr
View
@@ -723,7 +723,7 @@ private function searchInDirectory($dir)
return $this
->buildAdapter($adapter['adapter'])
->searchInDirectory($dir);
- } catch(ExceptionInterface $e) {}
+ } catch (ExceptionInterface $e) {}
}
}
View
@@ -406,7 +406,6 @@ public function testAppendWithAFinder($adapter)
$finder = $finder->append($finder1);
-
$this->assertIterator($this->toAbsolute(array('foo', 'foo/bar.tmp', 'toto')), $finder->getIterator());
}
@@ -83,4 +83,3 @@ public function getTestFilterData()
}
}
-

0 comments on commit 2cb19ac

Please sign in to comment.