Skip to content
This repository was archived by the owner on Feb 21, 2022. It is now read-only.

Commit 6e30bf4

Browse files
author
mmoreram
committed
Some minor style fixes
1 parent 35ed080 commit 6e30bf4

22 files changed

+36
-36
lines changed

.formatter.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ use-sort:
77
sort-direction: asc
88

99
header: |
10-
/**
10+
/*
1111
* This file is part of the php-formatter package
1212
*
1313
* Copyright (c) 2014 Marc Morera

src/PHPFormatter/Command/HeaderCommand.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?php
22

3-
/**
3+
/*
44
* This file is part of the php-formatter package
55
*
66
* Copyright (c) 2014 Marc Morera
@@ -83,9 +83,9 @@ protected function execute(InputInterface $input, OutputInterface $output)
8383
$verbose = $output->getVerbosity();
8484
$path = $input->getArgument('path');
8585
$dryRun = $input->getOption('dry-run');
86-
$fileFinder = new FileFinder;
87-
$configLoader = new ConfigLoader;
88-
$configFinder = new ConfigFinder;
86+
$fileFinder = new FileFinder();
87+
$configLoader = new ConfigLoader();
88+
$configFinder = new ConfigFinder();
8989

9090
/**
9191
* This section is just for finding the right values to work with in

src/PHPFormatter/Command/UseSortCommand.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?php
22

3-
/**
3+
/*
44
* This file is part of the php-formatter package
55
*
66
* Copyright (c) 2014 Marc Morera
@@ -142,7 +142,7 @@ protected function execute(InputInterface $input, OutputInterface $output)
142142
$options
143143
);
144144

145-
$fileFinder = new FileFinder;
145+
$fileFinder = new FileFinder();
146146
$files = $fileFinder->findPHPFilesByPath($path);
147147

148148
/**
@@ -165,8 +165,8 @@ protected function execute(InputInterface $input, OutputInterface $output)
165165
*/
166166
private function getUsableConfig(InputInterface $input)
167167
{
168-
$configLoader = new ConfigLoader;
169-
$configFinder = new ConfigFinder;
168+
$configLoader = new ConfigLoader();
169+
$configFinder = new ConfigFinder();
170170

171171
/**
172172
* This section is just for finding the right values to work with in

src/PHPFormatter/Compiler/Compiler.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?php
22

3-
/**
3+
/*
44
* This file is part of the php-formatter package
55
*
66
* Copyright (c) 2014 Marc Morera
@@ -167,7 +167,7 @@ protected function addStub(Phar $phar)
167167
#!/usr/bin/env php
168168
<?php
169169
170-
/**
170+
/*
171171
* This file is part of the php-formatter package
172172
*
173173
* Copyright (c) 2014 Marc Morera

src/PHPFormatter/Console/Application.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?php
22

3-
/**
3+
/*
44
* This file is part of the php-formatter package
55
*
66
* Copyright (c) 2014 Marc Morera

src/PHPFormatter/Finder/ConfigFinder.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?php
22

3-
/**
3+
/*
44
* This file is part of the php-formatter package
55
*
66
* Copyright (c) 2014 Marc Morera
@@ -37,7 +37,7 @@ public function findConfigFile($path)
3737
$config = array();
3838
if (is_file($configFilePath)) {
3939

40-
$yamlParser = new YamlParser;
40+
$yamlParser = new YamlParser();
4141
$config = $yamlParser->parse(file_get_contents($configFilePath));
4242
}
4343

src/PHPFormatter/Finder/FileFinder.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?php
22

3-
/**
3+
/*
44
* This file is part of the php-formatter package
55
*
66
* Copyright (c) 2014 Marc Morera

src/PHPFormatter/Fixer/HeaderFixer.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?php
22

3-
/**
3+
/*
44
* This file is part of the php-formatter package
55
*
66
* Copyright (c) 2014 Marc Morera

src/PHPFormatter/Fixer/Interfaces/FixerInterface.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?php
22

3-
/**
3+
/*
44
* This file is part of the php-formatter package
55
*
66
* Copyright (c) 2014 Marc Morera

src/PHPFormatter/Loader/ConfigLoader.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?php
22

3-
/**
3+
/*
44
* This file is part of the php-formatter package
55
*
66
* Copyright (c) 2014 Marc Morera
@@ -80,6 +80,6 @@ public function loadConfigValue(
8080
return isset($configValues[$commandName])
8181
? $configValues[$commandName]
8282
: $commandValue
83-
? : $defaultValue;
83+
?: $defaultValue;
8484
}
8585
}

src/PHPFormatter/PHPFormatter.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?php
22

3-
/**
3+
/*
44
* This file is part of the php-formatter package
55
*
66
* Copyright (c) 2014 Marc Morera

src/PHPFormatter/Sorter/Interfaces/SorterInterface.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?php
22

3-
/**
3+
/*
44
* This file is part of the php-formatter package
55
*
66
* Copyright (c) 2014 Marc Morera

src/PHPFormatter/Sorter/UseSorter.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?php
22

3-
/**
3+
/*
44
* This file is part of the php-formatter package
55
*
66
* Copyright (c) 2014 Marc Morera

src/bootstrap.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?php
22

3-
/**
3+
/*
44
* This file is part of the php-formatter package
55
*
66
* Copyright (c) 2014 Marc Morera

tests/PHPFormatter/Finder/ConfigFinderTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?php
22

3-
/**
3+
/*
44
* This file is part of the php-formatter package
55
*
66
* Copyright (c) 2014 Marc Morera

tests/PHPFormatter/Finder/FileFinderTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?php
22

3-
/**
3+
/*
44
* This file is part of the php-formatter package
55
*
66
* Copyright (c) 2014 Marc Morera

tests/PHPFormatter/Fixer/HeaderFixerTest.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,24 @@
11
<?php
22

3-
/**
4-
* This file is part of the Elcodi package.
3+
/*
4+
* This file is part of the php-formatter package
55
*
6-
* Copyright (c) 2014 Elcodi.com
6+
* Copyright (c) 2014 Marc Morera
77
*
88
* For the full copyright and license information, please view the LICENSE
99
* file that was distributed with this source code.
1010
*
1111
* Feel free to edit as you please, and have fun.
1212
*
1313
* @author Marc Morera <[email protected]>
14-
* @author Aldo Chiecchia <[email protected]>
1514
*/
1615

1716
namespace Mmoreram\PHPFormatter\Tests\Fixer;
1817

19-
use Mmoreram\PHPFormatter\Fixer\HeaderFixer;
2018
use PHPUnit_Framework_TestCase;
2119

20+
use Mmoreram\PHPFormatter\Fixer\HeaderFixer;
21+
2222
/**
2323
* Class HeaderFixerTest
2424
*/

tests/PHPFormatter/Loader/ConfigLoaderTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?php
22

3-
/**
3+
/*
44
* This file is part of the php-formatter package
55
*
66
* Copyright (c) 2014 Marc Morera
@@ -17,8 +17,8 @@
1717

1818
use PHPUnit_Framework_TestCase;
1919

20-
use Mmoreram\PHPFormatter\Loader\ConfigLoader;
2120
use Mmoreram\PHPFormatter\Command\UseSortCommand;
21+
use Mmoreram\PHPFormatter\Loader\ConfigLoader;
2222

2323
/**
2424
* Class ConfigLoaderTest

tests/PHPFormatter/Mocks/MyClass.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?php
22

3-
/**
3+
/*
44
* This file is part of the php-formatter package
55
*
66
* Copyright (c) 2014 Marc Morera

tests/PHPFormatter/Mocks/MyOtherClass.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?php
22

3-
/**
3+
/*
44
* This file is part of the php-formatter package
55
*
66
* Copyright (c) 2014 Marc Morera

tests/PHPFormatter/Mocks/directory/MyThirdClass.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?php
22

3-
/**
3+
/*
44
* This file is part of the php-formatter package
55
*
66
* Copyright (c) 2014 Marc Morera

tests/PHPFormatter/Sorter/UseSorterTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?php
22

3-
/**
3+
/*
44
* This file is part of the php-formatter package
55
*
66
* Copyright (c) 2014 Marc Morera

0 commit comments

Comments
 (0)