Skip to content

Commit

Permalink
Fix CS
Browse files Browse the repository at this point in the history
  • Loading branch information
villfa authored Dec 13, 2021
1 parent 4cd9c61 commit ee62ef6
Show file tree
Hide file tree
Showing 58 changed files with 1 addition and 57 deletions.
1 change: 1 addition & 0 deletions phpcs.xml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
</rule>

<rule ref="vendor/slevomat/coding-standard/SlevomatCodingStandard/ruleset.xml">
<exclude name="SlevomatCodingStandard.Classes.EmptyLinesAroundClassBraces.NoEmptyLineAfterOpeningBrace"/>
<exclude name="SlevomatCodingStandard.Classes.EmptyLinesAroundClassBraces.NoEmptyLineBeforeClosingBrace"/>
<exclude name="SlevomatCodingStandard.Classes.SuperfluousInterfaceNaming.SuperfluousSuffix"/>
<exclude name="SlevomatCodingStandard.Commenting.RequireOneLineDocComment.MultiLineDocComment"/>
Expand Down
1 change: 0 additions & 1 deletion src/Assessor/CyclomaticComplexityAssessor.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
*/
class CyclomaticComplexityAssessor
{

/**
* The total cyclomatic complexity score.
*
Expand Down
1 change: 0 additions & 1 deletion src/Command/AssessComplexityCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
*/
class AssessComplexityCommand extends Command
{

/**
* Configure the command
*/
Expand Down
1 change: 0 additions & 1 deletion src/Command/Helper/MaxScoreChecker.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@
*/
class MaxScoreChecker
{

/**
* @var float|null
*/
Expand Down
1 change: 0 additions & 1 deletion src/Command/Helper/ProgressBarSubscriber.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@
*/
class ProgressBarSubscriber implements AfterAnalysis, AfterFileAnalysis, BeforeAnalysis
{

/**
* @var ProgressBar
*/
Expand Down
1 change: 0 additions & 1 deletion src/Command/RunCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,6 @@
*/
class RunCommand extends Command
{

public const LOGO = "
___ _ _ __ __ ____ _ _ ____ _ _ ____
/ __)( )_( )( )( )( _ \( \( )___( _ \( )_( )( _ \
Expand Down
1 change: 0 additions & 1 deletion src/Configuration/Config.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
*/
class Config
{

public const KEY_DIRECTORIES_TO_SCAN = 'directoriesToScan';
public const KEY_FILES_TO_SHOW = 'filesToShow';
public const KEY_MINIMUM_SCORE_TO_SHOW = 'minScoreToShow';
Expand Down
1 change: 0 additions & 1 deletion src/Configuration/Loader.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
*/
class Loader
{

/**
* @param string $confPath Path of the configuration file to load.
* @param boolean $isDefaultValue Indicates whether $confPath contains the default value.
Expand Down
1 change: 0 additions & 1 deletion src/Configuration/Validator.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
*/
class Validator
{

/**
* @param array<mixed> $configuration The array containing the configuration values.
*/
Expand Down
1 change: 0 additions & 1 deletion src/Event/Broker.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@
*/
class Broker
{

/**
* @var array<class-string, array<callable>>
*/
Expand Down
1 change: 0 additions & 1 deletion src/Event/Event.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,4 @@
*/
interface Event
{

}
1 change: 0 additions & 1 deletion src/Event/Event/AfterAnalysis.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@

interface AfterAnalysis extends Event
{

/**
* Returns the total number of files analysed.
*/
Expand Down
1 change: 0 additions & 1 deletion src/Event/Event/AfterAnalysisEvent.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
*/
final class AfterAnalysisEvent implements AfterAnalysis
{

/**
* @var ResultAccumulator
*/
Expand Down
1 change: 0 additions & 1 deletion src/Event/Event/AfterFileAnalysis.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@

interface AfterFileAnalysis extends Event
{

/**
* Returns the absolute path of the file.
*/
Expand Down
1 change: 0 additions & 1 deletion src/Event/Event/AfterFileAnalysisEvent.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
*/
final class AfterFileAnalysisEvent implements AfterFileAnalysis
{

/**
* @var Result
*/
Expand Down
1 change: 0 additions & 1 deletion src/Event/Event/BeforeAnalysis.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,4 @@

interface BeforeAnalysis extends Event
{

}
1 change: 0 additions & 1 deletion src/Event/Event/BeforeAnalysisEvent.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,4 @@
*/
final class BeforeAnalysisEvent implements BeforeAnalysis
{

}
1 change: 0 additions & 1 deletion src/Event/Hook/AfterAnalysisHook.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@

interface AfterAnalysisHook
{

/**
* @param AfterAnalysis $event The event triggered when the analysis is done.
*/
Expand Down
1 change: 0 additions & 1 deletion src/Event/Hook/AfterFileAnalysisHook.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@

interface AfterFileAnalysisHook
{

/**
* @param AfterFileAnalysis $event The event triggered when the analysis of a file is done.
*/
Expand Down
1 change: 0 additions & 1 deletion src/Event/Hook/BeforeAnalysisHook.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@

interface BeforeAnalysisHook
{

/**
* @param BeforeAnalysis $event The event triggered when the analysis starts.
*/
Expand Down
1 change: 0 additions & 1 deletion src/Event/HookLoader.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@
*/
final class HookLoader
{

/**
* @var array<class-string, class-string>
*/
Expand Down
1 change: 0 additions & 1 deletion src/Event/Subscriber/AfterAnalysis.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
*/
interface AfterAnalysis
{

/**
* @param AfterAnalysisEvent $event The event triggered when the analysis is done.
*/
Expand Down
1 change: 0 additions & 1 deletion src/Event/Subscriber/AfterAnalysisHookDecorator.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
*/
class AfterAnalysisHookDecorator implements AfterAnalysis
{

/**
* @var string
*/
Expand Down
1 change: 0 additions & 1 deletion src/Event/Subscriber/AfterFileAnalysis.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
*/
interface AfterFileAnalysis
{

/**
* @param AfterFileAnalysisEvent $event The event triggered when the analysis of a file is done.
*/
Expand Down
1 change: 0 additions & 1 deletion src/Event/Subscriber/AfterFileAnalysisHookDecorator.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
*/
class AfterFileAnalysisHookDecorator implements AfterFileAnalysis
{

/**
* @var string
*/
Expand Down
1 change: 0 additions & 1 deletion src/Event/Subscriber/BeforeAnalysis.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
*/
interface BeforeAnalysis
{

/**
* @param BeforeAnalysisEvent $event The event triggered when the analysis starts.
*/
Expand Down
1 change: 0 additions & 1 deletion src/Event/Subscriber/BeforeAnalysisHookDecorator.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
*/
class BeforeAnalysisHookDecorator implements BeforeAnalysis
{

/**
* @var string
*/
Expand Down
1 change: 0 additions & 1 deletion src/File/File.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
*/
class File
{

/**
* The full path of the file.
*
Expand Down
1 change: 0 additions & 1 deletion src/File/FileFinder.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@
*/
class FileFinder
{

/**
* List of file extensions to look for.
*
Expand Down
1 change: 0 additions & 1 deletion src/File/FileHelper.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
*/
class FileHelper
{

/**
* @param string $path The path of an item.
* @param string $basePath The absolute base path.
Expand Down
1 change: 0 additions & 1 deletion src/Process/CacheProcessFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@
*/
class CacheProcessFactory implements AfterAnalysis, AfterFileAnalysis, ProcessFactory
{

/**
* @var string The cache file path.
*/
Expand Down
1 change: 0 additions & 1 deletion src/Process/ChangesCount/FossilChangesCountProcess.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@
*/
class FossilChangesCountProcess extends ChurnProcess implements ChangesCountInterface
{

/**
* Class constructor.
*
Expand Down
1 change: 0 additions & 1 deletion src/Process/ChangesCount/GitChangesCountProcess.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@
*/
class GitChangesCountProcess extends ChurnProcess implements ChangesCountInterface
{

/**
* Class constructor.
*
Expand Down
1 change: 0 additions & 1 deletion src/Process/ChangesCount/MercurialChangesCountProcess.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@
*/
class MercurialChangesCountProcess extends ChurnProcess implements ChangesCountInterface
{

/**
* Class constructor.
*
Expand Down
1 change: 0 additions & 1 deletion src/Process/ChangesCount/NoVcsChangesCountProcess.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
*/
class NoVcsChangesCountProcess implements ChangesCountInterface
{

/**
* The file the process will be executed on.
*
Expand Down
1 change: 0 additions & 1 deletion src/Process/ChangesCount/SubversionChangesCountProcess.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@
*/
class SubversionChangesCountProcess extends ChurnProcess implements ChangesCountInterface
{

/**
* Class constructor.
*
Expand Down
1 change: 0 additions & 1 deletion src/Process/ChangesCountInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
*/
interface ChangesCountInterface extends ProcessInterface
{

/**
* Returns the number of changes for a file.
*/
Expand Down
1 change: 0 additions & 1 deletion src/Process/ChangesCountProcessBuilder.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@
*/
class ChangesCountProcessBuilder
{

/**
* @param string $vcs Name of the version control system.
* @param string $commitsSince String containing the date of when to look at commits since.
Expand Down
1 change: 0 additions & 1 deletion src/Process/ChurnProcess.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
*/
abstract class ChurnProcess implements ProcessInterface
{

/**
* The file the process will be executed on.
*
Expand Down
1 change: 0 additions & 1 deletion src/Process/ConcreteProcessFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
*/
class ConcreteProcessFactory implements ProcessFactory
{

/**
* Builder of objects implementing ChangesCountInterface.
*
Expand Down
1 change: 0 additions & 1 deletion src/Process/CyclomaticComplexityInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
*/
interface CyclomaticComplexityInterface extends ProcessInterface
{

/**
* Returns the cyclomatic complexity of a file.
*/
Expand Down
1 change: 0 additions & 1 deletion src/Process/CyclomaticComplexityProcess.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
*/
class CyclomaticComplexityProcess extends ChurnProcess implements CyclomaticComplexityInterface
{

/**
* Returns the cyclomatic complexity of a file.
*/
Expand Down
1 change: 0 additions & 1 deletion src/Process/Handler/BaseProcessHandler.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@
*/
abstract class BaseProcessHandler implements ProcessHandler
{

/**
* @param ProcessInterface $process A successful process.
* @param Result $result The result object to hydrate.
Expand Down
1 change: 0 additions & 1 deletion src/Process/Handler/ParallelProcessHandler.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@
*/
class ParallelProcessHandler extends BaseProcessHandler
{

/**
* Array of completed processes.
*
Expand Down
1 change: 0 additions & 1 deletion src/Process/Handler/ProcessHandler.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
*/
interface ProcessHandler
{

/**
* Run the processes to gather information.
*
Expand Down
1 change: 0 additions & 1 deletion src/Process/Handler/SequentialProcessHandler.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@
*/
class SequentialProcessHandler extends BaseProcessHandler
{

/**
* @var Broker
*/
Expand Down
1 change: 0 additions & 1 deletion src/Process/PredefinedProcess.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
*/
class PredefinedProcess implements ChangesCountInterface, CyclomaticComplexityInterface
{

/**
* @var File
*/
Expand Down
1 change: 0 additions & 1 deletion src/Process/ProcessFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
*/
interface ProcessFactory
{

/**
* @param File $file File that the processes will execute on.
* @return iterable<ProcessInterface> The list of processes to execute.
Expand Down
1 change: 0 additions & 1 deletion src/Process/ProcessHandlerFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
*/
class ProcessHandlerFactory
{

/**
* Returns a process handler depending on the configuration.
*
Expand Down
1 change: 0 additions & 1 deletion src/Process/ProcessInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
*/
interface ProcessInterface
{

/**
* Start the process.
*/
Expand Down
Loading

0 comments on commit ee62ef6

Please sign in to comment.