Skip to content

Commit

Permalink
fixed CS
Browse files Browse the repository at this point in the history
  • Loading branch information
fabpot committed May 21, 2012
1 parent aa3e1a3 commit ea33d4d
Show file tree
Hide file tree
Showing 16 changed files with 34 additions and 17 deletions.
Expand Up @@ -24,7 +24,8 @@ class SingleIdentEntity
/** @Column(type="string", nullable=true) */
public $name;

public function __construct($id, $name) {
public function __construct($id, $name)
{
$this->id = $id;
$this->name = $name;
}
Expand Down
Expand Up @@ -4,7 +4,8 @@ trait TFoo {

}

class CFoo {
class CFoo
{
use TFoo;
}
}
Expand All @@ -22,7 +23,8 @@ trait TFooBar {

}

class CBar implements IBar {
class CBar implements IBar
{
use TBar, TFooBar;
}
}
3 changes: 2 additions & 1 deletion src/Symfony/Component/Console/Application.php
Expand Up @@ -1033,7 +1033,8 @@ private function findAlternativeNamespace($name, $abbrevs)
*
* @return array A sorted array of similar string
*/
private function findAlternatives($name, $collection, $abbrevs, $callback = null) {
private function findAlternatives($name, $collection, $abbrevs, $callback = null)
{
$alternatives = array();

foreach ($collection as $item) {
Expand Down
Expand Up @@ -242,7 +242,8 @@ function onEvent(Event $e)

class SubscriberService implements EventSubscriberInterface
{
static function getSubscribedEvents() {
static function getSubscribedEvents()
{
return array(
'onEvent' => 'onEvent',
'onEvent' => array('onEvent', 10),
Expand Down
3 changes: 2 additions & 1 deletion src/Symfony/Component/Locale/Tests/TestCase.php
Expand Up @@ -71,7 +71,8 @@ protected function isGreaterOrEqualThanIcuVersion($version)
return $icuVersion >= $version;
}

protected function isSameAsIcuVersion($version) {
protected function isSameAsIcuVersion($version)
{
$version = $this->normalizeIcuVersion($version);
$icuVersion = $this->normalizeIcuVersion($this->getIntlExtensionIcuVersion());

Expand Down
Expand Up @@ -16,7 +16,8 @@

class YamlFileDumperTest extends \PHPUnit_Framework_TestCase
{
protected function setUp() {
protected function setUp()
{
if (!class_exists('Symfony\Component\Yaml\Yaml')) {
$this->markTestSkipped('The "Yaml" component is not available');
}
Expand Down
Expand Up @@ -16,7 +16,8 @@

class CsvFileLoaderTest extends \PHPUnit_Framework_TestCase
{
protected function setUp() {
protected function setUp()
{
if (!class_exists('Symfony\Component\Config\Loader\Loader')) {
$this->markTestSkipped('The "Config" component is not available');
}
Expand Down
Expand Up @@ -16,7 +16,8 @@

class IcuDatFileLoaderTest extends LocalizedTestCase
{
protected function setUp() {
protected function setUp()
{
if (!class_exists('Symfony\Component\Config\Loader\Loader')) {
$this->markTestSkipped('The "Config" component is not available');
}
Expand Down
Expand Up @@ -16,7 +16,8 @@

class IcuResFileLoaderTest extends LocalizedTestCase
{
protected function setUp() {
protected function setUp()
{
if (!class_exists('Symfony\Component\Config\Loader\Loader')) {
$this->markTestSkipped('The "Config" component is not available');
}
Expand Down
Expand Up @@ -16,7 +16,8 @@

class IniFileLoaderTest extends \PHPUnit_Framework_TestCase
{
protected function setUp() {
protected function setUp()
{
if (!class_exists('Symfony\Component\Config\Loader\Loader')) {
$this->markTestSkipped('The "Config" component is not available');
}
Expand Down
Expand Up @@ -16,7 +16,8 @@

class MoFileLoaderTest extends \PHPUnit_Framework_TestCase
{
protected function setUp() {
protected function setUp()
{
if (!class_exists('Symfony\Component\Config\Loader\Loader')) {
$this->markTestSkipped('The "Config" component is not available');
}
Expand Down
Expand Up @@ -16,7 +16,8 @@

class PhpFileLoaderTest extends \PHPUnit_Framework_TestCase
{
protected function setUp() {
protected function setUp()
{
if (!class_exists('Symfony\Component\Config\Loader\Loader')) {
$this->markTestSkipped('The "Config" component is not available');
}
Expand Down
Expand Up @@ -16,7 +16,8 @@

class PoFileLoaderTest extends \PHPUnit_Framework_TestCase
{
protected function setUp() {
protected function setUp()
{
if (!class_exists('Symfony\Component\Config\Loader\Loader')) {
$this->markTestSkipped('The "Config" component is not available');
}
Expand Down
Expand Up @@ -16,7 +16,8 @@

class QtTranslationsLoaderTest extends \PHPUnit_Framework_TestCase
{
protected function setUp() {
protected function setUp()
{
if (!class_exists('Symfony\Component\Config\Loader\Loader')) {
$this->markTestSkipped('The "Config" component is not available');
}
Expand Down
Expand Up @@ -16,7 +16,8 @@

class XliffFileLoaderTest extends \PHPUnit_Framework_TestCase
{
protected function setUp() {
protected function setUp()
{
if (!class_exists('Symfony\Component\Config\Loader\Loader')) {
$this->markTestSkipped('The "Config" component is not available');
}
Expand Down
Expand Up @@ -16,7 +16,8 @@

class YamlFileLoaderTest extends \PHPUnit_Framework_TestCase
{
protected function setUp() {
protected function setUp()
{
if (!class_exists('Symfony\Component\Config\Loader\Loader')) {
$this->markTestSkipped('The "Config" component is not available');
}
Expand Down

0 comments on commit ea33d4d

Please sign in to comment.