mirror of
https://github.com/Mibew/mibew.git
synced 2025-01-31 05:20:30 +03:00
Switch to PHPCS 2.x
This commit is contained in:
parent
62f958622c
commit
ebd6684d4a
@ -32,7 +32,7 @@
|
||||
"ua-parser/uap-php": "~3.4.1"
|
||||
},
|
||||
"require-dev": {
|
||||
"squizlabs/php_codesniffer": "1.*"
|
||||
"squizlabs/php_codesniffer": "2.*"
|
||||
},
|
||||
"config": {
|
||||
"vendor-dir": "mibew/vendor"
|
||||
|
@ -54,7 +54,6 @@ class WidgetController extends AbstractController
|
||||
&& (Settings::get('trackoperators') == '1' || !$this->getOperator());
|
||||
|
||||
if ($tracking_allowed) {
|
||||
|
||||
$entry = $request->query->get('entry', '');
|
||||
$referer = $request->server->get('HTTP_REFERER', '');
|
||||
$user_id = $request->query->get('user_id', false);
|
||||
|
@ -90,12 +90,12 @@ use Symfony\Component\HttpFoundation\Response;
|
||||
* Example of the event handler:
|
||||
* <code>
|
||||
* public function callHandler(&$function) {
|
||||
* if ($function['function'] == 'microtime') {
|
||||
* $as_float = empty($function['arguments']['as_float'])
|
||||
* ? false
|
||||
* : $function['arguments']['as_float'];
|
||||
* $function['results']['time'] = microtime($as_float);
|
||||
* }
|
||||
* if ($function['function'] == 'microtime') {
|
||||
* $as_float = empty($function['arguments']['as_float'])
|
||||
* ? false
|
||||
* : $function['arguments']['as_float'];
|
||||
* $function['results']['time'] = microtime($as_float);
|
||||
* }
|
||||
* }
|
||||
* </code>
|
||||
*
|
||||
|
@ -431,7 +431,6 @@ class UsersProcessor extends ClientSideProcessor implements AuthenticationManage
|
||||
|
||||
$visitors = array();
|
||||
foreach ($rows as $row) {
|
||||
|
||||
// Get visitor details
|
||||
$details = track_retrieve_details($row);
|
||||
|
||||
|
@ -749,7 +749,6 @@ class Thread
|
||||
|| $this->agentId == $operator['operatorid'];
|
||||
|
||||
if ($this->state == self::STATE_WAITING && $is_operator_correct) {
|
||||
|
||||
// Prepare message
|
||||
if ($this->nextAgent == $operator['operatorid']) {
|
||||
$message_to_post = getlocal(
|
||||
|
@ -88,11 +88,9 @@ function sanitize_string($string, $tags_level = 'high', $attr_level = 'high')
|
||||
|
||||
$attr_level = array_key_exists($attr_level, $sanitize_attributes) ? $attr_level : 'high';
|
||||
if ($sanitize_attributes[$attr_level]) {
|
||||
|
||||
preg_match_all("/<([^ !\/\>\n]+)([^>]*)>/i", $string, $elements);
|
||||
foreach ($elements[1] as $key => $element) {
|
||||
if ($elements[2][$key]) {
|
||||
|
||||
$new_attributes = '';
|
||||
preg_match_all(
|
||||
"/([^ =]+)\s*=\s*[\"|']{0,1}([^\"']*)[\"|']{0,1}/i",
|
||||
|
@ -72,7 +72,7 @@ function group_by_name($name)
|
||||
*
|
||||
* @param array $group chat group object
|
||||
*
|
||||
* @return string return chat group name
|
||||
* @return string return chat group name
|
||||
*/
|
||||
function get_group_name($group)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user