Skip to content

Commit d48b583

Browse files
committed
Merge branch 'master' of github.com:nilportugues/sql-query-formatter
2 parents a8d7301 + 7979b71 commit d48b583

File tree

6 files changed

+23
-22
lines changed

6 files changed

+23
-22
lines changed

.travis.yml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,19 @@ php:
66
- 5.6
77
- 5.5
88
- 5.4
9-
- hhvm-nightly
9+
- nightly
10+
11+
matrix:
12+
allow_failures:
13+
- php: nightly
1014

1115
before_script:
1216
- alias composer="php -d zend.enable_gc=0 /usr/bin/composer"
1317
- composer require --dev satooshi/php-coveralls:dev-master
1418
- composer install
1519

1620
after_script:
21+
- export COVERALLS_RUN_LOCALLY=1
1722
- php bin/coveralls -v
1823

1924
script:
@@ -22,4 +27,4 @@ script:
2227

2328
matrix:
2429
allow_failures:
25-
- php: hhvm-nightly
30+
- php: nightly

README.md

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -16,16 +16,11 @@ A very lightweight PHP class that re-formats unreadable or computer-generated SQ
1616

1717
<a name="block1"></a>
1818
## 1.Installation
19-
Add the following to your `composer.json` file :
20-
21-
```js
22-
{
23-
"require": {
24-
"nilportugues/sql-query-formatter": "1.0.0"
25-
}
26-
}
27-
```
19+
The recommended way to install the SQL Query Formatter is through [Composer](http://getcomposer.org). Run the following command to install it:
2820

21+
```sh
22+
php composer.phar require nilportugues/sql-query-formatter
23+
```
2924

3025
<a name="block2"></a>
3126
## 2. Features

phpunit.xml.dist

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@
3737
<directory>./</directory>
3838
<exclude>
3939
<directory>./vendor/</directory>
40+
<directory>./tests/</directory>
4041
</exclude>
4142
</whitelist>
4243
</filter>

src/Formatter.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -207,8 +207,8 @@ protected function stringIsEndOfLimitClause($token)
207207
}
208208

209209
/**
210-
* @param $addedNewline
211-
* @param $tab
210+
* @param boolean $addedNewline
211+
* @param string $tab
212212
* @param $token
213213
* @param $queryValue
214214
*

src/Tokenizer/Parser/Reserved.php

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -84,10 +84,10 @@ protected static function getReservedString(array &$tokenData, $type, $string, T
8484
}
8585

8686
/**
87-
* @param string $upper
88-
* @param array $matches
89-
* @param string $regexReserved
90-
* @param string $regexBoundaries
87+
* @param string $upper
88+
* @param array $matches
89+
* @param string $regexReserved
90+
* @param string $regexBoundaries
9191
*
9292
* @return bool
9393
*/
@@ -101,9 +101,9 @@ protected static function isReservedString($upper, array &$matches, $regexReserv
101101
}
102102

103103
/**
104-
* @param string $type
105-
* @param string $string
106-
* @param array $matches
104+
* @param string $type
105+
* @param string $string
106+
* @param array $matches
107107
*
108108
* @return array
109109
*/

src/Tokenizer/Tokenizer.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -187,9 +187,9 @@ protected function processOneToken($string)
187187
}
188188

189189
/**
190-
* @param $string
190+
* @param string $string
191191
* @param integer $currentStringLength
192-
* @param string $previousToken
192+
* @param string string
193193
*
194194
* @return array|mixed
195195
*/

0 commit comments

Comments
 (0)