Skip to content

Commit 005e50b

Browse files
authored
Merge pull request #14 from JBZoo/develop
fix code style
2 parents b6a2c68 + c82b7ec commit 005e50b

File tree

2 files changed

+9
-9
lines changed

2 files changed

+9
-9
lines changed

src/Sys.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ public static function isPhp($version, $current = PHP_VERSION)
142142
* @param string $current
143143
* @return bool
144144
*/
145-
public static function Php53($current = PHP_VERSION)
145+
public static function isPhp53($current = PHP_VERSION)
146146
{
147147
return self::isPhp('5.3', $current);
148148
}

tests/SysTest.php

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -69,14 +69,14 @@ public function testIsPHPVersion()
6969

7070
public function testIsPHP53()
7171
{
72-
isTrue(Sys::Php53('5.3'));
73-
isTrue(Sys::Php53('5.3.0'));
74-
isTrue(Sys::Php53('5.3.1'));
75-
76-
isFalse(Sys::Php53('5.2'));
77-
isFalse(Sys::Php53('5.2.3'));
78-
isFalse(Sys::Php53('5.4'));
79-
isFalse(Sys::Php53('7.3'));
72+
isTrue(Sys::isPhp53('5.3'));
73+
isTrue(Sys::isPhp53('5.3.0'));
74+
isTrue(Sys::isPhp53('5.3.1'));
75+
76+
isFalse(Sys::isPhp53('5.2'));
77+
isFalse(Sys::isPhp53('5.2.3'));
78+
isFalse(Sys::isPhp53('5.4'));
79+
isFalse(Sys::isPhp53('7.3'));
8080
}
8181

8282
public function testIsPHP7()

0 commit comments

Comments
 (0)