Skip to content

Commit 4a96958

Browse files
committed
fix cs
1 parent b990f4b commit 4a96958

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/Ubiquity/devtools/cmd/Console.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,8 @@ public static function readline() {
2929
*/
3030
public static function question($prompt, array $propositions = null) {
3131
echo ConsoleFormatter::colorize($prompt, ConsoleFormatter::BLACK, ConsoleFormatter::BG_YELLOW);
32-
if (is_array($propositions)) {
33-
if (sizeof($propositions) > 2) {
32+
if (\is_array($propositions)) {
33+
if (\count($propositions) > 2) {
3434
$props = "";
3535
foreach ($propositions as $index => $prop) {
3636
$props .= "[" . ($index + 1) . "] " . $prop . "\n";
@@ -44,7 +44,7 @@ public static function question($prompt, array $propositions = null) {
4444
echo " (" . implode("/", $propositions) . ")\n";
4545
do {
4646
$answer = self::readline();
47-
} while (array_search($answer, $propositions) === false);
47+
} while (\array_search($answer, $propositions) === false);
4848
}
4949
} else {
5050
$answer = self::readline();

src/Ubiquity/devtools/cmd/traits/CmdTrait.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ protected static function getCompleteClassname($config, $classname, $type = 'mod
115115
if (! UString::startswith($classname, $prefix)) {
116116
$classname = $prefix . $classname;
117117
}
118-
return str_replace("\\\\", "\\", $classname);
118+
return \str_replace("\\\\", "\\", $classname);
119119
}
120120

121121
protected static function getSelectedModels($models, $config) {

0 commit comments

Comments
 (0)