Completed
Push — master ( 326182...c37a35 )
by Xu
05:59 queued 26s
created
src/behaviors/SnowflakeBehavior.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -43,7 +43,7 @@
 block discarded – undo
43 43
     {
44 44
         parent::init();
45 45
         if (empty($this->attributes)) {
46
-            $this->attributes = [BaseActiveRecord::EVENT_BEFORE_INSERT => [$this->attribute],];
46
+            $this->attributes = [BaseActiveRecord::EVENT_BEFORE_INSERT => [$this->attribute], ];
47 47
         }
48 48
         if ($this->attribute === null) {
49 49
             throw new InvalidConfigException('Either "attribute" property must be specified.');
Please login to merge, or discard this patch.
src/base/Snowflake.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -61,10 +61,10 @@
 block discarded – undo
61 61
     {
62 62
         parent::init();
63 63
         if ($this->workerId > self::MAX_WORKER_ID || $this->workerId < 0) {
64
-            throw new Exception(sprintf("worker Id can't be greater than %d or less than 0",self::MAX_WORKER_ID));
64
+            throw new Exception(sprintf("worker Id can't be greater than %d or less than 0", self::MAX_WORKER_ID));
65 65
         }
66 66
         if ($this->dataCenterId > self::MAX_DATA_CENTER_ID || $this->dataCenterId < 0) {
67
-            throw new Exception(sprintf("dataCenterId can't be greater than %d or less than 0",self::MAX_DATA_CENTER_ID));
67
+            throw new Exception(sprintf("dataCenterId can't be greater than %d or less than 0", self::MAX_DATA_CENTER_ID));
68 68
         }
69 69
     }
70 70
 
Please login to merge, or discard this patch.