diff --git a/_admin.php b/_admin.php index 641a7fb..9c6e23a 100644 --- a/_admin.php +++ b/_admin.php @@ -83,7 +83,7 @@ class epcAdminBehaviors public static function adminBlogPreferencesForm(dcCore $core, dcSettings $blog_settings) { - $active = (boolean) $blog_settings->enhancePostContent->enhancePostContent_active; + $active = (bool) $blog_settings->enhancePostContent->enhancePostContent_active; $allowedtplvalues = libEPC::blogAllowedTplValues(); $allowedpubpages = libEPC::blogAllowedPubPages(); diff --git a/inc/lib.epc.filter.php b/inc/lib.epc.filter.php index e72464f..0ee19b7 100644 --- a/inc/lib.epc.filter.php +++ b/inc/lib.epc.filter.php @@ -118,13 +118,13 @@ abstract class epcFilter $opt = []; } if (isset($opt['nocase'])) { - $this->settings['nocase'] = (boolean) $opt['nocase']; + $this->settings['nocase'] = (bool) $opt['nocase']; } if (isset($opt['plural'])) { - $this->settings['plural'] = (boolean) $opt['plural']; + $this->settings['plural'] = (bool) $opt['plural']; } if (isset($opt['limit'])) { - $this->settings['limit'] = abs((integer) $opt['limit']); + $this->settings['limit'] = abs((int) $opt['limit']); } if (isset($opt['style']) && is_array($opt['style'])) { $this->settings['style'] = (array) $opt['style']; diff --git a/inc/lib.epc.pager.php b/inc/lib.epc.pager.php index 0a959e1..707fd33 100644 --- a/inc/lib.epc.pager.php +++ b/inc/lib.epc.pager.php @@ -36,7 +36,7 @@ class adminEpcList extends adminGenericList $epc_id = []; if (isset($_REQUEST['epc_id'])) { foreach ($_REQUEST['epc_id'] as $v) { - $epc_id[(integer) $v] = true; + $epc_id[(int) $v] = true; } } diff --git a/inc/lib.epc.records.php b/inc/lib.epc.records.php index 456887f..5c1815f 100644 --- a/inc/lib.epc.records.php +++ b/inc/lib.epc.records.php @@ -67,9 +67,9 @@ class epcRecords if (!empty($params['epc_id'])) { if (is_array($params['epc_id'])) { - array_walk($params['epc_id'], function (&$v, $k) { if ($v !== null) { $v = (integer) $v; }}); + array_walk($params['epc_id'], function (&$v, $k) { if ($v !== null) { $v = (int) $v; }}); } else { - $params['epc_id'] = [(integer) $params['epc_id']]; + $params['epc_id'] = [(int) $params['epc_id']]; } $strReq .= 'AND E.epc_id ' . $this->con->in($params['epc_id']); } elseif (isset($params['not_id']) && is_numeric($params['not_id'])) { @@ -131,7 +131,7 @@ class epcRecords public function updRecord($id, $cur) { - $id = (integer) $id; + $id = (int) $id; if (empty($id)) { throw new Exception(__('No such record ID')); @@ -157,7 +157,7 @@ class epcRecords public function delRecord($id) { - $id = (integer) $id; + $id = (int) $id; if (empty($id)) { throw new Exception(__('No such record ID')); diff --git a/index.php b/index.php index 618f0a2..b6d4c43 100644 --- a/index.php +++ b/index.php @@ -51,7 +51,7 @@ try { $f = [ 'nocase' => !empty($_POST['filter_nocase']), 'plural' => !empty($_POST['filter_plural']), - 'limit' => abs((integer) $_POST['filter_limit']), + 'limit' => abs((int) $_POST['filter_limit']), 'style' => (array) $_POST['filter_style'], 'notag' => (string) $_POST['filter_notag'], 'tplValues' => (array) $_POST['filter_tplValues'], @@ -219,7 +219,7 @@ __('Also use the plural') . '
' . -form::number('filter_limit', ['min' => 0, 'max' => 99, 'default' => (integer) $filter->limit]) . ' +form::number('filter_limit', ['min' => 0, 'max' => 99, 'default' => (int) $filter->limit]) . '
' . __('Leave it blank or set it to 0 for no limit') . '
diff --git a/locales/en/resources.php b/locales/en/resources.php index e9403df..3854809 100644 --- a/locales/en/resources.php +++ b/locales/en/resources.php @@ -1,16 +1,15 @@