@@ -43,7 +43,7 @@ |
||
| 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.'); |
@@ -61,10 +61,10 @@ |
||
| 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 | |