| Conditions | 3 |
| Paths | 2 |
| Total Lines | 10 |
| Code Lines | 5 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 3 |
| CRAP Score | 4.125 |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 32 | 1 | public function persist($runValidation = true, $attributeNames = null) |
|
| 33 | { |
||
| 34 | /** @var ActiveRecord|Oauth2ActiveRecordInterface $this */ |
||
| 35 | 1 | if (!$this->save($runValidation, $attributeNames)) { |
|
| 36 | throw new DbException('Could not save ' . static::class . |
||
| 37 | (YII_DEBUG ? PHP_EOL . print_r($this->attributes, true) : '') . |
||
|
|
|||
| 38 | ' Errors: ' . PHP_EOL . implode(', ', $this->getErrorSummary(true))); |
||
| 39 | } |
||
| 40 | |||
| 41 | 1 | return $this; |
|
| 42 | } |
||
| 44 |