Skip to content

Commit f9f5bb3

Browse files
committed
updated depdency
1 parent 84f5145 commit f9f5bb3

File tree

3 files changed

+9
-6
lines changed

3 files changed

+9
-6
lines changed

README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,12 +169,14 @@ Thanks to [apigen](https://github.com/apigen/apigen), the api is available in th
169169

170170
* upcomming
171171
* replace "setArguments" with "parse" like [nette](https://github.com/nette/command-line/blob/master/src/CommandLine/Parser.php) is doing it
172+
* [1.0.2](https://github.com/bazzline/php_component_cli_argument/tree/1.0.2) - released at 02.07.2015
173+
* updated dependencies
172174
* [1.0.1](https://github.com/bazzline/php_component_cli_argument/tree/1.0.1) - released at 22.05.2015
173175
* updated dependencies
174176
* [1.0.0](https://github.com/bazzline/php_component_cli_argument/tree/1.0.0) - released at 23.04.2015
175177
* initial release
176178

177-
# Links (other good projects)
179+
# Other Great Components
178180

179181
* [search on packagist](https://packagist.org/search/?search_query%5Bquery%5D=getopt)
180182
* [yeriomin/getopt](https://github.com/yeriomin/getopt)

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
"php": ">=5.3.3"
99
},
1010
"require-dev": {
11-
"phpunit/phpunit": "4.7.5"
11+
"phpunit/phpunit": "4.7.6"
1212
},
1313
"license": "LGPLv3",
1414
"authors": [

source/Net/Bazzline/Component/Cli/Arguments/Arguments.php

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -177,10 +177,11 @@ private function handleLongNameListOrFlag($argument)
177177

178178
private function handleShortNameListOrFlag($argument)
179179
{
180-
$containsEqualCharacter = ($this->contains($argument, '='));
181-
$equalCharacterIsOnSecondPosition = (strpos($argument, '=') === 1);
182-
$isShortNameList = ($containsEqualCharacter
180+
$containsEqualCharacter = ($this->contains($argument, '='));
181+
$equalCharacterIsOnSecondPosition = (strpos($argument, '=') === 1);
182+
$isShortNameList = ($containsEqualCharacter
183183
&& $equalCharacterIsOnSecondPosition);
184+
184185
if ($isShortNameList) {
185186
$name = substr($argument, 0, 1);
186187
$value = substr($argument, 2);
@@ -202,7 +203,7 @@ private function handleShortNameListOrFlag($argument)
202203
*/
203204
private function contains($string, $search)
204205
{
205-
if (strlen($search) == 0) {
206+
if (strlen($search) === 0) {
206207
$contains = false;
207208
} else {
208209
$contains = !(strpos($string, $search) === false);

0 commit comments

Comments
 (0)