original_string: protected function uvRuleCheck() {
  		$expire = strtotime(date('Y-m-d', time() + 60 * 60 * 24));
  		$item = strtr(static::classname(), '\\', '_') . '_' . $this->id;
  
  		$session = \Yii::$app->session->get($this->statisticsParam);
  		if(!\Yii::$app->session->has($this->statisticsParam) || $session['expire'] != $expire) {
  			$session = [
  				'expire' => $expire,
  				'items' => [],
  			];
  		}
  
  		if(!isset($session['items'][$item])) {
  			$session['items'][$item] = true;
  			\Yii::$app->session->set($this->statisticsParam, $session);
  
  			return true;
  		}
  
  		return false;
  	}
code: protected function uvRuleCheck() {
  		$expire = strtotime(date('Y-m-d', time() + 60 * 60 * 24));
  		$item = strtr(static::classname(), '\\', '_') . '_' . $this->id;
  
  		$session = \Yii::$app->session->get($this->statisticsParam);
  		if(!\Yii::$app->session->has($this->statisticsParam) || $session['expire'] != $expire) {
  			$session = [
  				'expire' => $expire,
  				'items' => [],
  			];
  		}
  
  		if(!isset($session['items'][$item])) {
  			$session['items'][$item] = true;
  			\Yii::$app->session->set($this->statisticsParam, $session);
  
  			return true;
  		}
  
  		return false;
  	}
code_tokens: protected function uvRuleCheck ( ) { $ expire = strtotime ( date ( 'Y-m-d' , time ( ) + 60 * 60 * 24 ) ) ; $ item = strtr ( static :: classname ( ) , '\\' , '_' ) . '_' . $ this -> id ; $ session = \ Yii :: $ app -> session -> get ( $ this -> statisticsParam ) ; if ( ! \ Yii :: $ app -> session -> has ( $ this -> statisticsParam ) || $ session [ 'expire' ] != $ expire ) { $ session = [ 'expire' => $ expire , 'items' => [ ] , ] ; } if ( ! isset ( $ session [ 'items' ] [ $ item ] ) ) { $ session [ 'items' ] [ $ item ] = true ; \ Yii :: $ app -> session -> set ( $ this -> statisticsParam , $ session ) ; return true ; } return false ; }
docstring: Check if it can increase unique visitor
  
  @since 0.0.1
  @return {boolean}
docstring_tokens: Check if it can increase unique visitor