-
Notifications
You must be signed in to change notification settings - Fork 32
Added vendor/project namespace, restructured folders for PSR-4 #58
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
4071b3b
Use PSR-4-compatible namespaces
hollodotme 0acd45a
Remove secure env var
pbrisbin e3d61a1
Configure CC
pbrisbin f6e892b
Enable phpcodesniffer
pbrisbin e4d1a33
Tabs -> Spaces
pbrisbin 63aadd1
Correct brace and parenthesis style
pbrisbin File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
--- | ||
engines: | ||
duplication: | ||
enabled: true | ||
config: | ||
languages: | ||
- php | ||
phpcodesniffer: | ||
enabled: true | ||
phpmd: | ||
enabled: true | ||
checks: | ||
CleanCode/ElseExpression: | ||
enabled: false | ||
Controversial/Superglobals: | ||
enabled: false | ||
exclude_fingerprints: | ||
# High complexity in CiInfo#toArray() | ||
- 8f1ff5077ea52a5fee818bde73a0dbb7 | ||
- efc665f3aa41cbbd0bbd0ec9c945a453 | ||
ratings: | ||
paths: | ||
- "**.inc" | ||
- "**.module" | ||
- "**.php" | ||
exclude_paths: | ||
- tests/ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,7 @@ | ||
.idea/ | ||
.vagrant/ | ||
Vagrantfile | ||
build/ | ||
vendor/ | ||
box.phar | ||
codeclimate-test-reporter.phar | ||
composer.lock | ||
composer.phar |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,18 @@ | ||
<?php | ||
namespace CodeClimate\Bundle\TestReporterBundle\Console; | ||
namespace CodeClimate\PhpTestReporter; | ||
|
||
use CodeClimate\Bundle\TestReporterBundle\Command\TestReporterCommand; | ||
use CodeClimate\PhpTestReporter\ConsoleCommands\TestReporterCommand; | ||
use Symfony\Component\Console\Application as BaseApplication; | ||
use Symfony\Component\Console\Input\InputInterface; | ||
|
||
/** | ||
* Coveralls API application. | ||
* | ||
* @author Kitamura Satoshi <[email protected]> | ||
*/ | ||
class Application extends BaseApplication | ||
{ | ||
/** | ||
* Path to project root directory. | ||
* | ||
* @var string | ||
*/ | ||
private $rootDir; | ||
|
@@ -37,7 +35,6 @@ public function __construct($rootDir, $name = 'UNKNOWN', $version = 'UNKNOWN') | |
|
||
/** | ||
* {@inheritdoc} | ||
* | ||
* @see \Symfony\Component\Console\Application::getCommandName() | ||
*/ | ||
protected function getCommandName(InputInterface $input) | ||
|
@@ -47,23 +44,21 @@ protected function getCommandName(InputInterface $input) | |
|
||
/** | ||
* {@inheritdoc} | ||
* | ||
* @see \Symfony\Component\Console\Application::getDefaultCommands() | ||
*/ | ||
protected function getDefaultCommands() | ||
{ | ||
// Keep the core default commands to have the HelpCommand | ||
// which is used when using the --help option | ||
$defaultCommands = parent::getDefaultCommands(); | ||
$defaultCommands = parent::getDefaultCommands(); | ||
$defaultCommands[] = $this->createTestReporterCommand(); | ||
|
||
return $defaultCommands; | ||
} | ||
|
||
/** | ||
* Create TestReporterCommand. | ||
* | ||
* @return \CodeClimate\Bundle\TestReporterBundle\Command\TestReporterCommand | ||
* @return TestReporterCommand | ||
*/ | ||
protected function createTestReporterCommand() | ||
{ | ||
|
@@ -77,7 +72,6 @@ protected function createTestReporterCommand() | |
|
||
/** | ||
* {@inheritdoc} | ||
* | ||
* @see \Symfony\Component\Console\Application::getDefinition() | ||
*/ | ||
public function getDefinition() | ||
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3 changes: 2 additions & 1 deletion
3
...ate/Bundle/TestReporterBundle/Version.php → src/Constants/Version.php
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...imate/Component/System/Git/GitCommand.php → src/System/Git/GitCommand.php
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
extra space here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It looks like aligned tokens are actually the expected style here.