Applied fixes from StyleCI
This commit is contained in:
parent
6c94e2426a
commit
2badf3f35e
|
@ -75,6 +75,7 @@ class PrimeModule extends Tools
|
|||
|
||||
return ($b == 0) ? $a : $b;
|
||||
}
|
||||
|
||||
public function PrimeFactors($pq)
|
||||
{
|
||||
$pqstr = (string) $pq;
|
||||
|
|
|
@ -23,12 +23,12 @@ class TLConstructor
|
|||
foreach ($this->params as &$param) {
|
||||
$param['opt'] = false;
|
||||
$param['subtype'] = '';
|
||||
if (preg_match('/^flags\.\d\?/', $param['type'])) {
|
||||
if (preg_match('/^flags\.\d\?/', $param['type'])) {
|
||||
$param['opt'] = true;
|
||||
$param['flag'] = preg_replace(['/^flags\./', '/\?.*/'], '', $param['type']);
|
||||
$param['type'] = preg_replace('/^flags\.\d\?/', '', $param['type']);
|
||||
}
|
||||
if (preg_match('/vector<.*>/i', $param['type'])) {
|
||||
if (preg_match('/vector<.*>/i', $param['type'])) {
|
||||
if (preg_match('/vector/', $param['type'])) {
|
||||
$param['subtype'] = preg_replace(['/.*</', '/>$/'], '', $param['type']);
|
||||
$param['type'] = 'vector';
|
||||
|
|
|
@ -23,12 +23,12 @@ class TLMethod
|
|||
foreach ($this->params as &$param) {
|
||||
$param['opt'] = false;
|
||||
$param['subtype'] = '';
|
||||
if (preg_match('/^flags\.\d\?/', $param['type'])) {
|
||||
if (preg_match('/^flags\.\d\?/', $param['type'])) {
|
||||
$param['opt'] = true;
|
||||
$param['flag'] = preg_replace(['/^flags\./', '/\?.*/'], '', $param['type']);
|
||||
$param['type'] = preg_replace('/^flags\.\d\?/', '', $param['type']);
|
||||
}
|
||||
if (preg_match('/vector<.*>/i', $param['type'])) {
|
||||
if (preg_match('/vector<.*>/i', $param['type'])) {
|
||||
if (preg_match('/vector/', $param['type'])) {
|
||||
$param['subtype'] = preg_replace(['/.*</', '/>$/'], '', $param['type']);
|
||||
$param['type'] = 'vector';
|
||||
|
|
Loading…
Reference in New Issue
Block a user