Applied fixes from StyleCI

This commit is contained in:
Daniil Gentili 2016-10-18 13:43:24 +00:00 committed by StyleCI Bot
parent 6c94e2426a
commit 2badf3f35e
3 changed files with 5 additions and 4 deletions

View File

@ -75,6 +75,7 @@ class PrimeModule extends Tools
return ($b == 0) ? $a : $b;
}
public function PrimeFactors($pq)
{
$pqstr = (string) $pq;

View File

@ -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';

View File

@ -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';