Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
50 commits
Select commit Hold shift + click to select a range
38d205a
added some base code to test the fixers
TJSoler Mar 10, 2017
6bff7be
A couple of fixers' tests
TJSoler Mar 10, 2017
40c834e
do we really need to check for strings on the candidate method?
TJSoler Mar 10, 2017
0a8031f
added travis-ci?
TJSoler Mar 10, 2017
a2062ef
added coveralls config
TJSoler Mar 10, 2017
2fa327f
removed 5.6 from travis, removed old tests
TJSoler Mar 10, 2017
41692b8
modified composer.json to autoload-dev test classes
TJSoler Mar 10, 2017
dc0f039
removed 5.6 from travis
TJSoler Mar 10, 2017
0046e4e
unit for Unit
TJSoler Mar 10, 2017
ed62229
psr2
TJSoler Mar 10, 2017
4ff5c94
composer update + directory separators from windows to linux
TJSoler Mar 10, 2017
557a38d
removed coveralls and updated readme with travis badge
TJSoler Mar 10, 2017
0845271
added PSR1 ClassNames test
TJSoler Mar 10, 2017
0c14484
modified ClassNames fixer according to test
TJSoler Mar 10, 2017
928334d
started using strcmp to test the expected is exactly the same as the …
TJSoler Mar 10, 2017
57b7a6f
added tests for the Method Name fixer
TJSoler Mar 10, 2017
eaef6cd
added to gigignore a build folder used to experiment with phar
TJSoler Mar 10, 2017
00e0fda
added ifs to each constant definition
TJSoler Mar 10, 2017
bd38943
added coverals and phpunit code-coverage
TJSoler Mar 10, 2017
d8622f5
modified phppunit.xml to try and have code coverage with coveralls
TJSoler Mar 10, 2017
1c44674
removed commented code
TJSoler Mar 10, 2017
8ffdb58
fail
TJSoler Mar 10, 2017
eb38feb
only needed as a reference, for the time being can be checked on master
TJSoler Mar 10, 2017
1f2ca74
this test, as it is, will fail on php 7.1+, need to rethink
TJSoler Mar 10, 2017
aceca07
trying coveralls service?
TJSoler Mar 10, 2017
53d9267
added coveralls to readme
TJSoler Mar 10, 2017
02389e0
psr2 keywords to lowercase test
TJSoler Mar 10, 2017
c354d44
added tests for psr2 - indent with spaces
TJSoler Apr 28, 2017
9da17a1
ignored DS_Store files
TJSoler Apr 28, 2017
8cc259f
added tests for psr2 - blank line after namespace
TJSoler Apr 28, 2017
5813dc6
added curly-open-next-line and it's tests. Modified formatterpass to …
TJSoler Apr 28, 2017
1f21c8f
ModifierVisibilityStaticOrder Tests
TJSoler Apr 28, 2017
c9e7565
Oops, debuging the fixer...
TJSoler Apr 28, 2017
9a0b258
SingleEmptyLineAndStripClosingTag tests
TJSoler Apr 28, 2017
6cc3945
rollback a change to how to indent with spaces as default, rethinking...
TJSoler Apr 28, 2017
95e7da7
already moved to it's new place
TJSoler Apr 28, 2017
4d2d4dc
removed some classes that were duplicated
TJSoler Apr 28, 2017
cdfe4b0
Reindent Switch Blocks tests
TJSoler Apr 28, 2017
f8cd626
StripNewLineWithinClassBody class & test
TJSoler Apr 29, 2017
9195440
cleanup
TJSoler Apr 29, 2017
a94c4aa
add missing curly braces - class and tests
TJSoler Apr 29, 2017
9e3b017
add missing parentheses class & tests
TJSoler Apr 29, 2017
62bf512
Align const visibility equals - class and tests
TJSoler Apr 29, 2017
e44fea2
Align double arrow - class and tests
TJSoler Apr 29, 2017
8605ac0
Align double slash comments - class and tests
TJSoler Apr 29, 2017
dfd5420
remove debugging function
TJSoler Apr 29, 2017
0894bc3
align equals - class and tests
TJSoler Apr 29, 2017
414ecb3
fixes test error
TJSoler Apr 29, 2017
bafbdee
align group double arrow - test and fixer
TJSoler Apr 30, 2017
ce6c800
align php code - fixers and tests
TJSoler Apr 30, 2017
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
/vendor/
/build/
.DS_Store
23 changes: 23 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
language: php

php:
- 7.0
- 7.1

sudo: false

cache:
directories:
- $HOME/.composer/cache

before_install:
- if [[ $TRAVIS_PHP_VERSION != 7.1 ]] ; then phpenv config-rm xdebug.ini; fi

install:
- composer install --prefer-dist --no-interaction --no-suggest

script:
- phpunit --coverage-clover build/logs/clover.xml

after_success:
- sh -c 'if [ "$TRAVIS_PHP_VERSION" != "hhvm" ]; then php vendor/bin/coveralls -v; fi;'
10 changes: 10 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,19 @@
# phpfmt

[![Build Status](https://travis-ci.org/TJSoler/phpfmt.svg?branch=testing)](https://travis-ci.org/TJSoler/phpfmt)

[![Coverage Status](https://coveralls.io/repos/github/TJSoler/phpfmt/badge.svg?branch=testing)](https://coveralls.io/github/TJSoler/phpfmt?branch=testing)

The **phpfmt** project went _closed source_ on June 13, 2016 [Source](https://news.ycombinator.com/item?id=11896851).

As the code had BSD license, someone forked it and kept it working, without updating it. And the source got lost. This is the result of extracting a phar file. And many changes.

## This fork objectives:
-

## This branch:
This branch should be UP until every test is been written.

## What Is It ?

**phpfmt** formats PHP code by making it readable and following a specific coding guideline.
Expand Down
14 changes: 10 additions & 4 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,18 @@
"Fmt\\": "./src/"
}
},
"require": {
"illuminate/support": "^5.4"
"autoload-dev": {
"psr-4": {
"Fmt\\Tests\\": "./tests/"
}
},
"require-dev": {
"phpunit/phpunit": "^6.0",
"illuminate/support": "^5.4",
"phpunit/phpunit": "^6.1",
"symfony/console": "^3.2",
"symfony/var-dumper": "^3.2"
"symfony/var-dumper": "^3.2",
"satooshi/php-coveralls": "^1.0",
"phpunit/php-code-coverage": "^5.0",
"sebastian/diff": "^1.4"
}
}
Loading