Skip to content

Commit 86a183c

Browse files
committed
fix: remove useless helper function
1 parent ca4dc94 commit 86a183c

File tree

1 file changed

+0
-19
lines changed

1 file changed

+0
-19
lines changed

src/Common/Common.php

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -30,23 +30,4 @@ public static function mysql_escape($fieldValue)
3030

3131
return $fieldValue;
3232
}
33-
34-
/**
35-
* Convert boolean values to 0 or 1.
36-
*
37-
* @param $fieldValue
38-
* @return array|string|bool|string[]|bool[]
39-
*/
40-
public static function convertBoolean($fieldValue)
41-
{
42-
if (is_array($fieldValue)) {
43-
return array_map(__METHOD__, $fieldValue);
44-
}
45-
46-
if (is_bool($fieldValue)) {
47-
return (int) $fieldValue;
48-
}
49-
50-
return $fieldValue;
51-
}
5233
}

0 commit comments

Comments
 (0)