| Conditions | 2 |
| Paths | 2 |
| Total Lines | 13 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 0 |
| CRAP Score | 6 |
| Changes | 0 | ||
| 1 | <?php |
||
| 21 | public function safeUp() |
||
| 22 | { |
||
| 23 | $this->alterColumn( |
||
| 24 | Provider::tableName(), |
||
| 25 | 'clientSecret', |
||
| 26 | $this->char(ProviderInstance::CLIENT_SECRET_LENGTH) |
||
| 27 | ); |
||
| 28 | |||
| 29 | // Encrypt those that are not |
||
| 30 | if (Patron::getInstance()->getSettings()->getEncryptStorageData() === true) { |
||
| 31 | Patron::getInstance()->manageProviders()->changeEncryption(true); |
||
| 32 | } |
||
| 33 | } |
||
| 34 | |||
| 43 |