Skip to content

Commit e4d1a33

Browse files
committed
Tabs -> Spaces
1 parent f6e892b commit e4d1a33

File tree

9 files changed

+609
-609
lines changed

9 files changed

+609
-609
lines changed

composer.json

+55-55
Original file line numberDiff line numberDiff line change
@@ -1,57 +1,57 @@
11
{
2-
"name": "codeclimate/php-test-reporter",
3-
"description": "PHP client for reporting test coverage to Code Climate",
4-
"keywords": [
5-
"codeclimate",
6-
"coverage"
7-
],
8-
"homepage": "https://github.com/codeclimate/php-test-reporter",
9-
"type": "library",
10-
"license": "MIT",
11-
"authors": [
12-
{
13-
"name": "Code Climate",
14-
"email": "[email protected]",
15-
"homepage": "https://codeclimate.com"
16-
}
17-
],
18-
"require": {
19-
"php": ">=5.3",
20-
"ext-curl": "*",
21-
"satooshi/php-coveralls": "^1.0",
22-
"symfony/console": "^2.0"
23-
},
24-
"require-dev": {
25-
"phpunit/phpunit": "3.7.*@stable",
26-
"ext-xdebug": "*",
27-
"tm/tooly-composer-script": "^1.0"
28-
},
29-
"autoload": {
30-
"psr-4": {
31-
"CodeClimate\\PhpTestReporter\\": "src/"
32-
}
33-
},
34-
"autoload-dev": {
35-
"psr-4": {
36-
"CodeClimate\\PhpTestReporter\\Tests\\": "tests/"
37-
}
38-
},
39-
"bin": [
40-
"composer/bin/test-reporter"
41-
],
42-
"scripts": {
43-
"post-install-cmd": "Tooly\\ScriptHandler::installPharTools",
44-
"post-update-cmd": "Tooly\\ScriptHandler::installPharTools"
45-
},
46-
"extra": {
47-
"branch-alias": {
48-
"dev-master": "0.3.x-dev"
49-
},
50-
"tools": {
51-
"box": {
52-
"url": "https://github.com/box-project/box2/releases/download/2.7.2/box-2.7.2.phar",
53-
"only-dev": true
54-
}
55-
}
56-
}
2+
"name": "codeclimate/php-test-reporter",
3+
"description": "PHP client for reporting test coverage to Code Climate",
4+
"keywords": [
5+
"codeclimate",
6+
"coverage"
7+
],
8+
"homepage": "https://github.com/codeclimate/php-test-reporter",
9+
"type": "library",
10+
"license": "MIT",
11+
"authors": [
12+
{
13+
"name": "Code Climate",
14+
"email": "[email protected]",
15+
"homepage": "https://codeclimate.com"
16+
}
17+
],
18+
"require": {
19+
"php": ">=5.3",
20+
"ext-curl": "*",
21+
"satooshi/php-coveralls": "^1.0",
22+
"symfony/console": "^2.0"
23+
},
24+
"require-dev": {
25+
"phpunit/phpunit": "3.7.*@stable",
26+
"ext-xdebug": "*",
27+
"tm/tooly-composer-script": "^1.0"
28+
},
29+
"autoload": {
30+
"psr-4": {
31+
"CodeClimate\\PhpTestReporter\\": "src/"
32+
}
33+
},
34+
"autoload-dev": {
35+
"psr-4": {
36+
"CodeClimate\\PhpTestReporter\\Tests\\": "tests/"
37+
}
38+
},
39+
"bin": [
40+
"composer/bin/test-reporter"
41+
],
42+
"scripts": {
43+
"post-install-cmd": "Tooly\\ScriptHandler::installPharTools",
44+
"post-update-cmd": "Tooly\\ScriptHandler::installPharTools"
45+
},
46+
"extra": {
47+
"branch-alias": {
48+
"dev-master": "0.3.x-dev"
49+
},
50+
"tools": {
51+
"box": {
52+
"url": "https://github.com/box-project/box2/releases/download/2.7.2/box-2.7.2.phar",
53+
"only-dev": true
54+
}
55+
}
56+
}
5757
}

composer/bin/test-reporter

+13-13
Original file line numberDiff line numberDiff line change
@@ -6,29 +6,29 @@ namespace CodeClimate\PhpTestReporter;
66
use CodeClimate\PhpTestReporter\Constants\Version;
77

88
$files = [
9-
__DIR__ . '/../../vendor/autoload.php',
10-
__DIR__ . '/../../../../autoload.php',
9+
__DIR__ . '/../../vendor/autoload.php',
10+
__DIR__ . '/../../../../autoload.php',
1111
];
1212

1313
foreach ( $files as $file )
1414
{
15-
if ( file_exists( $file ) )
16-
{
17-
include_once $file;
15+
if ( file_exists( $file ) )
16+
{
17+
include_once $file;
1818

19-
define( 'PHP_TEST_REPORTER_COMPOSER_INSTALL', $file );
19+
define( 'PHP_TEST_REPORTER_COMPOSER_INSTALL', $file );
2020

21-
break;
22-
}
21+
break;
22+
}
2323
}
2424

2525
if ( !defined( 'PHP_TEST_REPORTER_COMPOSER_INSTALL' ) )
2626
{
27-
die(
28-
'You need to set up the project dependencies using the following commands:' . PHP_EOL .
29-
'curl -s http://getcomposer.org/installer | php' . PHP_EOL .
30-
'php composer.phar install' . PHP_EOL
31-
);
27+
die(
28+
'You need to set up the project dependencies using the following commands:' . PHP_EOL .
29+
'curl -s http://getcomposer.org/installer | php' . PHP_EOL .
30+
'php composer.phar install' . PHP_EOL
31+
);
3232
}
3333

3434
$rootDir = realpath( dirname( PHP_TEST_REPORTER_COMPOSER_INSTALL ) . '/..' );

src/Application.php

+60-60
Original file line numberDiff line numberDiff line change
@@ -11,75 +11,75 @@
1111
*/
1212
class Application extends BaseApplication
1313
{
14-
/**
15-
* Path to project root directory.
16-
* @var string
17-
*/
18-
private $rootDir;
14+
/**
15+
* Path to project root directory.
16+
* @var string
17+
*/
18+
private $rootDir;
1919

20-
/**
21-
* Constructor.
22-
*
23-
* @param string $rootDir Path to project root directory.
24-
* @param string $name The name of the application
25-
* @param string $version The version of the application
26-
*/
27-
public function __construct( $rootDir, $name = 'UNKNOWN', $version = 'UNKNOWN' )
28-
{
29-
$this->rootDir = $rootDir;
20+
/**
21+
* Constructor.
22+
*
23+
* @param string $rootDir Path to project root directory.
24+
* @param string $name The name of the application
25+
* @param string $version The version of the application
26+
*/
27+
public function __construct( $rootDir, $name = 'UNKNOWN', $version = 'UNKNOWN' )
28+
{
29+
$this->rootDir = $rootDir;
3030

31-
parent::__construct( $name, $version );
32-
}
31+
parent::__construct( $name, $version );
32+
}
3333

34-
// internal method
34+
// internal method
3535

36-
/**
37-
* {@inheritdoc}
38-
* @see \Symfony\Component\Console\Application::getCommandName()
39-
*/
40-
protected function getCommandName( InputInterface $input )
41-
{
42-
return 'test-reporter';
43-
}
36+
/**
37+
* {@inheritdoc}
38+
* @see \Symfony\Component\Console\Application::getCommandName()
39+
*/
40+
protected function getCommandName( InputInterface $input )
41+
{
42+
return 'test-reporter';
43+
}
4444

45-
/**
46-
* {@inheritdoc}
47-
* @see \Symfony\Component\Console\Application::getDefaultCommands()
48-
*/
49-
protected function getDefaultCommands()
50-
{
51-
// Keep the core default commands to have the HelpCommand
52-
// which is used when using the --help option
53-
$defaultCommands = parent::getDefaultCommands();
54-
$defaultCommands[] = $this->createTestReporterCommand();
45+
/**
46+
* {@inheritdoc}
47+
* @see \Symfony\Component\Console\Application::getDefaultCommands()
48+
*/
49+
protected function getDefaultCommands()
50+
{
51+
// Keep the core default commands to have the HelpCommand
52+
// which is used when using the --help option
53+
$defaultCommands = parent::getDefaultCommands();
54+
$defaultCommands[] = $this->createTestReporterCommand();
5555

56-
return $defaultCommands;
57-
}
56+
return $defaultCommands;
57+
}
5858

59-
/**
60-
* Create TestReporterCommand.
61-
* @return TestReporterCommand
62-
*/
63-
protected function createTestReporterCommand()
64-
{
65-
$command = new TestReporterCommand();
66-
$command->setRootDir( $this->rootDir );
59+
/**
60+
* Create TestReporterCommand.
61+
* @return TestReporterCommand
62+
*/
63+
protected function createTestReporterCommand()
64+
{
65+
$command = new TestReporterCommand();
66+
$command->setRootDir( $this->rootDir );
6767

68-
return $command;
69-
}
68+
return $command;
69+
}
7070

71-
// accessor
71+
// accessor
7272

73-
/**
74-
* {@inheritdoc}
75-
* @see \Symfony\Component\Console\Application::getDefinition()
76-
*/
77-
public function getDefinition()
78-
{
79-
$inputDefinition = parent::getDefinition();
80-
// clear out the normal first argument, which is the command name
81-
$inputDefinition->setArguments();
73+
/**
74+
* {@inheritdoc}
75+
* @see \Symfony\Component\Console\Application::getDefinition()
76+
*/
77+
public function getDefinition()
78+
{
79+
$inputDefinition = parent::getDefinition();
80+
// clear out the normal first argument, which is the command name
81+
$inputDefinition->setArguments();
8282

83-
return $inputDefinition;
84-
}
83+
return $inputDefinition;
84+
}
8585
}

0 commit comments

Comments
 (0)