Skip to content
This repository was archived by the owner on Oct 19, 2020. It is now read-only.

Commit 6c507df

Browse files
committed
Apply cs fixer and ignore paratest and qa:all
1 parent 40ea822 commit 6c507df

File tree

26 files changed

+161
-215
lines changed

26 files changed

+161
-215
lines changed

src/Command/All.php

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

33
/**
4-
* Composer Plugin QA
4+
* Composer Plugin QA.
55
*
66
* @author Webysther Nunes <webysther@gmail.com>
77
*/
8-
98
namespace Webs\QA\Command;
109

1110
use Composer\Command\BaseCommand;
@@ -17,21 +16,19 @@
1716
use Symfony\Component\Console\Style\SymfonyStyle;
1817

1918
/**
20-
* Run all tests, ignore short version
19+
* Run all tests, ignore short version.
2120
*/
2221
class All extends BaseCommand
2322
{
2423
/**
25-
* Console description
24+
* Console description.
2625
*
2726
* @var string
2827
*/
2928
protected $description = 'Run all tools';
3029

3130
/**
32-
* Console params configuration
33-
*
34-
* @return void
31+
* Console params configuration.
3532
*/
3633
protected function configure()
3734
{
@@ -46,11 +43,12 @@ protected function configure()
4643
}
4744

4845
/**
49-
* Execution
46+
* Execution.
47+
*
48+
* @param InputInterface $input Input console
49+
* @param OutputInterface $output Output console
5050
*
51-
* @param InputInterface $input Input console
52-
* @param OutputInterface $output Output console
53-
* @return integer Exit code
51+
* @return int Exit code
5452
*/
5553
protected function execute(InputInterface $input, OutputInterface $output)
5654
{
@@ -60,7 +58,7 @@ protected function execute(InputInterface $input, OutputInterface $output)
6058
$style = new SymfonyStyle($input, $output);
6159
$output->write(sprintf("\033\143"));
6260
$style->title('Running all');
63-
$ignore = array('qa:all', 'qa:fixer');
61+
$ignore = array('qa:all', 'qa:fixer', 'qa:paratest');
6462

6563
foreach ($commands as $command) {
6664
$name = $command->getName();

src/Command/CodeBeautifierFixer/CBF.php

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

33
/**
4-
* Composer Plugin QA
4+
* Composer Plugin QA.
55
*
66
* @author Webysther Nunes <webysther@gmail.com>
77
*/
8-
98
namespace Webs\QA\Command\CodeBeautifierFixer;
109

1110
/**
12-
* Alias for qa:code-beautifier-fixer
11+
* Alias for qa:code-beautifier-fixer.
1312
*/
1413
class CBF extends CodeBeautifierFixer
1514
{
1615
/**
17-
* Console params configuration
18-
*
19-
* @return void
16+
* Console params configuration.
2017
*/
2118
protected function configure()
2219
{

src/Command/CodeBeautifierFixer/CodeBeautifierFixer.php

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

33
/**
4-
* Composer Plugin QA
4+
* Composer Plugin QA.
55
*
66
* @author Webysther Nunes <webysther@gmail.com>
77
*/
8-
98
namespace Webs\QA\Command\CodeBeautifierFixer;
109

1110
use Composer\Command\BaseCommand;
@@ -18,21 +17,19 @@
1817
use Webs\QA\Command\Util;
1918

2019
/**
21-
* Code Beautifier and Fixer Wrapper
20+
* Code Beautifier and Fixer Wrapper.
2221
*/
2322
class CodeBeautifierFixer extends BaseCommand
2423
{
2524
/**
26-
* Console description
25+
* Console description.
2726
*
2827
* @var string
2928
*/
3029
protected $description = 'Code Beautifier and Fixer';
3130

3231
/**
33-
* Console params configuration
34-
*
35-
* @return void
32+
* Console params configuration.
3633
*/
3734
protected function configure()
3835
{
@@ -60,11 +57,12 @@ protected function configure()
6057
}
6158

6259
/**
63-
* Execution
60+
* Execution.
61+
*
62+
* @param InputInterface $input Input console
63+
* @param OutputInterface $output Output console
6464
*
65-
* @param InputInterface $input Input console
66-
* @param OutputInterface $output Output console
67-
* @return integer Exit code
65+
* @return int Exit code
6866
*/
6967
protected function execute(InputInterface $input, OutputInterface $output)
7068
{

src/Command/CodeCoverage/CC.php

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

33
/**
4-
* Composer Plugin QA
4+
* Composer Plugin QA.
55
*
66
* @author Webysther Nunes <webysther@gmail.com>
77
*/
8-
98
namespace Webs\QA\Command\CodeCoverage;
109

1110
/**
12-
* Alias for qa:code-coverage
11+
* Alias for qa:code-coverage.
1312
*/
1413
class CC extends CodeCoverage
1514
{
1615
/**
17-
* Console params configuration
18-
*
19-
* @return void
16+
* Console params configuration.
2017
*/
2118
protected function configure()
2219
{

src/Command/CodeCoverage/CodeCoverage.php

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

33
/**
4-
* Composer Plugin QA
4+
* Composer Plugin QA.
55
*
66
* @author Webysther Nunes <webysther@gmail.com>
77
*/
8-
98
namespace Webs\QA\Command\CodeCoverage;
109

1110
use Composer\Command\BaseCommand;
@@ -18,21 +17,19 @@
1817
use Webs\QA\Command\Util;
1918

2019
/**
21-
* Code Coverage Wrapper
20+
* Code Coverage Wrapper.
2221
*/
2322
class CodeCoverage extends BaseCommand
2423
{
2524
/**
26-
* Console description
25+
* Console description.
2726
*
2827
* @var string
2928
*/
3029
protected $description = 'Code Coverage';
3130

3231
/**
33-
* Console params configuration
34-
*
35-
* @return void
32+
* Console params configuration.
3633
*/
3734
protected function configure()
3835
{
@@ -54,11 +51,12 @@ protected function configure()
5451
}
5552

5653
/**
57-
* Execution
54+
* Execution.
55+
*
56+
* @param InputInterface $input Input console
57+
* @param OutputInterface $output Output console
5858
*
59-
* @param InputInterface $input Input console
60-
* @param OutputInterface $output Output console
61-
* @return integer Exit code
59+
* @return int Exit code
6260
*/
6361
protected function execute(InputInterface $input, OutputInterface $output)
6462
{

src/Command/CodeSniffer/CS.php

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

33
/**
4-
* Composer Plugin QA
4+
* Composer Plugin QA.
55
*
66
* @author Webysther Nunes <webysther@gmail.com>
77
*/
8-
98
namespace Webs\QA\Command\CodeSniffer;
109

1110
/**
12-
* Alias for qa:code-sniffer
11+
* Alias for qa:code-sniffer.
1312
*/
1413
class CS extends CodeSniffer
1514
{
1615
/**
17-
* Console params configuration
18-
*
19-
* @return void
16+
* Console params configuration.
2017
*/
2118
protected function configure()
2219
{

src/Command/CodeSniffer/CodeSniffer.php

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

33
/**
4-
* Composer Plugin QA
4+
* Composer Plugin QA.
55
*
66
* @author Webysther Nunes <webysther@gmail.com>
77
*/
8-
98
namespace Webs\QA\Command\CodeSniffer;
109

1110
use Composer\Command\BaseCommand;
@@ -18,21 +17,19 @@
1817
use Webs\QA\Command\Util;
1918

2019
/**
21-
* Detects violations of a defined set of coding standards
20+
* Detects violations of a defined set of coding standards.
2221
*/
2322
class CodeSniffer extends BaseCommand
2423
{
2524
/**
26-
* Console description
25+
* Console description.
2726
*
2827
* @var string
2928
*/
3029
protected $description = 'Code Sniffer';
3130

3231
/**
33-
* Console params configuration
34-
*
35-
* @return void
32+
* Console params configuration.
3633
*/
3734
protected function configure()
3835
{
@@ -59,11 +56,12 @@ protected function configure()
5956
}
6057

6158
/**
62-
* Execution
59+
* Execution.
60+
*
61+
* @param InputInterface $input Input console
62+
* @param OutputInterface $output Output console
6363
*
64-
* @param InputInterface $input Input console
65-
* @param OutputInterface $output Output console
66-
* @return integer Exit code
64+
* @return int Exit code
6765
*/
6866
protected function execute(InputInterface $input, OutputInterface $output)
6967
{

src/Command/CopyPasteDetector/CPD.php

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

33
/**
4-
* Composer Plugin QA
4+
* Composer Plugin QA.
55
*
66
* @author Webysther Nunes <webysther@gmail.com>
77
*/
8-
98
namespace Webs\QA\Command\CopyPasteDetector;
109

1110
/**
12-
* Alias for qa:copy-paste-detector
11+
* Alias for qa:copy-paste-detector.
1312
*/
1413
class CPD extends CopyPasteDetector
1514
{
1615
/**
17-
* Console params configuration
18-
*
19-
* @return void
16+
* Console params configuration.
2017
*/
2118
protected function configure()
2219
{

src/Command/CopyPasteDetector/CopyPasteDetector.php

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

33
/**
4-
* Composer Plugin QA
4+
* Composer Plugin QA.
55
*
66
* @author Webysther Nunes <webysther@gmail.com>
77
*/
8-
98
namespace Webs\QA\Command\CopyPasteDetector;
109

1110
use Composer\Command\BaseCommand;
@@ -18,21 +17,19 @@
1817
use Webs\QA\Command\Util;
1918

2019
/**
21-
* Copy/Paste Detector
20+
* Copy/Paste Detector.
2221
*/
2322
class CopyPasteDetector extends BaseCommand
2423
{
2524
/**
26-
* Console description
25+
* Console description.
2726
*
2827
* @var string
2928
*/
3029
protected $description = 'Copy/Paste Detector';
3130

3231
/**
33-
* Console params configuration
34-
*
35-
* @return void
32+
* Console params configuration.
3633
*/
3734
protected function configure()
3835
{
@@ -52,11 +49,12 @@ protected function configure()
5249
}
5350

5451
/**
55-
* Execution
52+
* Execution.
53+
*
54+
* @param InputInterface $input Input console
55+
* @param OutputInterface $output Output console
5656
*
57-
* @param InputInterface $input Input console
58-
* @param OutputInterface $output Output console
59-
* @return integer Exit code
57+
* @return int Exit code
6058
*/
6159
protected function execute(InputInterface $input, OutputInterface $output)
6260
{

0 commit comments

Comments
 (0)