Skip to content
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

Improve Travis configuration and add PHP-CS-Fixer #160

Merged
merged 3 commits into from
Nov 25, 2018

Conversation

tgalopin
Copy link
Contributor

No description provided.

@tgalopin tgalopin force-pushed the coding-style branch 6 times, most recently from 9e92b70 to 007f9a3 Compare November 25, 2018 00:29
*/
public static function lookupDecimal($int)
{
$entity = '&#' . $int . ';';
$entity = '&#'.$int.';';
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

arent spaces enforced when concatenating variables?

@@ -284,12 +285,12 @@ public function charsWhile($mask)
*
* Newlines are column 0. The first char after a newline is column 1.
*
* @return int The column number.
* @return int the column number
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is there some rule that enforces the first letter lowercase?

.travis.yml Show resolved Hide resolved
@goetas
Copy link
Member

goetas commented Nov 25, 2018

What about adding a .php_cs file? Will require less parameters to be passed to the commandline.

<?php

$finder = PhpCsFixer\Finder::create()
    ->in(__DIR__)
;

return PhpCsFixer\Config::create()
    ->setRules([
        '@Symfony' => true,
        'concat_space' => ['spacing' => 'one'],
    ])
    ->setFinder($finder)
;

As a personal preference (and less changes to the current codebase), I suggest concat_space:one.
What do you think?

@tgalopin
Copy link
Contributor Author

Updated :) .

@goetas goetas merged commit 54d066b into Masterminds:master Nov 25, 2018
@goetas
Copy link
Member

goetas commented Nov 25, 2018

Thanks!

@tgalopin tgalopin deleted the coding-style branch November 25, 2018 16:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants