Passed
Push — master ( 3b673d...e570d4 )
by Sergio
13:48
created
src/components/deviceDetect/IDeviceDetect.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -2,7 +2,7 @@
 block discarded – undo
2 2
 
3 3
 namespace coderius\hitCounter\components\deviceDetect;
4 4
 
5
-interface IDeviceDetect{
5
+interface IDeviceDetect {
6 6
     
7 7
     public function getOs();
8 8
 
Please login to merge, or discard this patch.
src/components/deviceDetect/DeviceDetector.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -10,7 +10,7 @@
 block discarded – undo
10 10
 use  DeviceDetector\Parser\Device\DeviceParserAbstract;
11 11
 use yii\base\Component;
12 12
 
13
-class DeviceDetector extends  Component implements IDeviceDetect{
13
+class DeviceDetector extends  Component implements IDeviceDetect {
14 14
 
15 15
     private $detector;
16 16
 
Please login to merge, or discard this patch.
src/models/HitCounterModel.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -8,7 +8,7 @@  discard block
 block discarded – undo
8 8
 use yii\base\Model;
9 9
 use coderius\hitCounter\Module;
10 10
 
11
-class HitCounterModel extends Model{
11
+class HitCounterModel extends Model {
12 12
     // const SCENARIO_CREATE = 'create';
13 13
     // const SCENARIO_UPDATE = 'update';
14 14
 
@@ -62,12 +62,12 @@  discard block
 block discarded – undo
62 62
         return [
63 63
             [['counter_id'], 'required'],
64 64
             [['js_cookei_enabled', 'js_java_enabled', 'js_timezone_offset', 'js_screen_width', 'js_screen_height', 'js_color_depth', 'js_history_length', 'js_is_toutch_device', 'js_processor_ram', 'serv_auth_user_id', 'serv_is_proxy_or_vpn', 'serv_port'], 'integer'],
65
-            [['serv_cookies','js_current_url', 'js_referer_url','serv_referer_url','serv_user_agent'], 'string'],
66
-            [['counter_id', 'js_timezone', 'js_connection', 'js_browser_language',  'serv_server_name', 'serv_os', 'serv_client', 'serv_device', 'serv_brand', 'serv_model', 'serv_bot', 'serv_host_by_ip'], 'string', 'max' => 255],
65
+            [['serv_cookies', 'js_current_url', 'js_referer_url', 'serv_referer_url', 'serv_user_agent'], 'string'],
66
+            [['counter_id', 'js_timezone', 'js_connection', 'js_browser_language', 'serv_server_name', 'serv_os', 'serv_client', 'serv_device', 'serv_brand', 'serv_model', 'serv_bot', 'serv_host_by_ip'], 'string', 'max' => 255],
67 67
             [['cookie_mark'], 'string', 'max' => 32],
68 68
             [['serv_ip'], 'string', 'max' => 20],
69 69
             [['serv_auth_user_id'], 'exist', 'skipOnError' => true, 'targetClass' => Module::getInstance()->userIdentityClass, 'targetAttribute' => ['serv_auth_user_id' => 'id']],
70
-            [['cookie_mark', 'js_current_url', 'serv_ip', 'js_timezone_offset','js_timezone', 'js_connection','js_referer_url','js_screen_width','js_screen_height','js_color_depth','js_browser_language','js_history_length','js_processor_ram','serv_user_agent','serv_referer_url','serv_server_name','serv_auth_user_id','serv_port','serv_cookies','serv_os','serv_client','serv_device','serv_brand','serv_model','serv_bot','serv_host_by_ip'], 'default', 'value' => null],
70
+            [['cookie_mark', 'js_current_url', 'serv_ip', 'js_timezone_offset', 'js_timezone', 'js_connection', 'js_referer_url', 'js_screen_width', 'js_screen_height', 'js_color_depth', 'js_browser_language', 'js_history_length', 'js_processor_ram', 'serv_user_agent', 'serv_referer_url', 'serv_server_name', 'serv_auth_user_id', 'serv_port', 'serv_cookies', 'serv_os', 'serv_client', 'serv_device', 'serv_brand', 'serv_model', 'serv_bot', 'serv_host_by_ip'], 'default', 'value' => null],
71 71
         ];
72 72
     }
73 73
   
Please login to merge, or discard this patch.
src/services/HitCounterModelDtoAssembler.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -9,7 +9,7 @@
 block discarded – undo
9 9
  * Class HitCounterModelAssembler
10 10
  */
11 11
 
12
-final class HitCounterModelDtoAssembler{
12
+final class HitCounterModelDtoAssembler {
13 13
 
14 14
     /**
15 15
      * Return model with attributes loaded by dto
Please login to merge, or discard this patch.
src/traits/RequestTrait.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -2,7 +2,7 @@
 block discarded – undo
2 2
 
3 3
 namespace coderius\hitCounter\traits;
4 4
 
5
-trait RequestTrait{
5
+trait RequestTrait {
6 6
 
7 7
     public function isProxyVisit() {
8 8
         if (@fsockopen($_SERVER['REMOTE_ADDR'], 80, $errstr, $errno, 1)) {
Please login to merge, or discard this patch.
src/widgets/hitCounter/views/invisible-counter.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -39,7 +39,7 @@  discard block
 block discarded – undo
39 39
 ?>
40 40
 
41 41
 <?php //Speed profiling ?>
42
-<?php if(YII_DEBUG): ?>
42
+<?php if (YII_DEBUG): ?>
43 43
 <script language="javascript" type="text/javascript">console.time('hitCounter-' + '<?= $counterId; ?>')</script>
44 44
 <?php endif; ?>
45 45
 
@@ -95,6 +95,6 @@  discard block
 block discarded – undo
95 95
 //--></script>
96 96
 
97 97
 <?php //Speed profiling ?>
98
-<?php if(YII_DEBUG): ?>
98
+<?php if (YII_DEBUG): ?>
99 99
 <script language="javascript" type="text/javascript">console.timeEnd('hitCounter-' + '<?= $counterId; ?>');</script>
100 100
 <?php endif; ?>
Please login to merge, or discard this patch.
src/widgets/hitCounter/HitCounterWidget.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -186,7 +186,7 @@
 block discarded – undo
186 186
     {
187 187
         $defOpts = [];
188 188
         $defOpts['target'] = '_blank';
189
-        if($this->counterOptions['type'] === self::COUNTER_VIEW_INVISIBLE) $defOpts['style'] = 'position:absolute; left:-9999px;';
189
+        if ($this->counterOptions['type'] === self::COUNTER_VIEW_INVISIBLE) $defOpts['style'] = 'position:absolute; left:-9999px;';
190 190
         $this->clientLinkOptions = array_merge($defOpts, $this->clientLinkOptions);
191 191
 
192 192
     }
Please login to merge, or discard this patch.
src/config/Bootstrap.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -23,7 +23,7 @@
 block discarded – undo
23 23
         $this->addDependencies();
24 24
     }
25 25
 
26
-    private function addDependencies(){
26
+    private function addDependencies() {
27 27
         $container = \Yii::$container;
28 28
         
29 29
         $container->set(
Please login to merge, or discard this patch.
src/repositories/HitCounterRepository.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -7,7 +7,7 @@
 block discarded – undo
7 7
 
8 8
 use coderius\hitCounter\entities\HitCounter;
9 9
 
10
-class HitCounterRepository{
10
+class HitCounterRepository {
11 11
 
12 12
     public function save(HitCounter $hit): void
13 13
     {
Please login to merge, or discard this patch.