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

Commit 05908d0

Browse files
committed
Merge pull request #9 from mmoreram/fix/some-minor-style-fixes
Some minor style fixes
2 parents 35ed080 + 6e30bf4 commit 05908d0

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
}

0 commit comments

Comments
 (0)