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 readability #3

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Improve readability #3

wants to merge 1 commit into from

Conversation

ghost
Copy link

@ghost ghost commented Apr 28, 2017

with vim I manually did some operations taking care of sense

:%s/)/ )/gc
:%s/(/( /gc
:%s/){/) {/gc
:%s/]/ ]/gc
:%s/[/[ /gc
:%s/,/, )/gc
:%s/./ . )/gc
:%s/=/ = )/gc
:%s/+/ + )/gc
:%s/-/ - /gc

with vim I manually did some operations taking care of sense

:%s/)/ )/gc
:%s/(/( /gc
:%s/){/) {/gc
:%s/]/ ]/gc
:%s/[/[ /gc
:%s/,/, )/gc
:%s/./ . )/gc
:%s/=/ = )/gc
:%s/+/ + )/gc
:%s/-/ - /gc
Copy link

@rogerpueyo rogerpueyo left a comment

Choose a reason for hiding this comment

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

Thanks for your pull request, @pedro-nonfree . While it's true that the current code has many style issues, I'd suggest you to adhere to one of the well-known coding standards such as PEAR (https://pear.php.net/manual/en/standards.php) or PSR-2 (http://www.php-fig.org/psr/psr-2/) and apply it to all the code.

Additionally, the commit can not be automatically merged anymore.

@ghost
Copy link
Author

ghost commented Oct 27, 2017

I did this

https://github.com/guifi-exo/wiki/blob/master/howto/php-cs-fixer_usage.md

I think is not that easy to apply. After indenting, something goes wrong (because we should review code).

Probably we should apply something like this in all guifi projects.

We will see, if you don't care, let's remain this open

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants