| Conditions | 3 |
| Paths | 3 |
| Total Lines | 21 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 42 | public function handle() |
||
| 43 | { |
||
| 44 | // check for existing keys - do not overwrite |
||
| 45 | if(EloquentEncryptionFacade::exists()){ |
||
| 46 | |||
| 47 | $this->warn('Application RSA keys are already set'); |
||
| 48 | $this->warn('**********************************************************************'); |
||
| 49 | $this->warn('* If you reset your keys you will lose access to any encrypted data. *'); |
||
| 50 | $this->warn('**********************************************************************'); |
||
| 51 | if ($this->confirm('Do you wish to reset your encryption keys?') === false) { |
||
| 52 | |||
| 53 | $this->info('RSA Keys have not been overwritten'); |
||
| 54 | |||
| 55 | return; |
||
| 56 | } |
||
| 57 | } |
||
| 58 | |||
| 59 | $this->info('Creating RSA Keys for Application'); |
||
| 60 | |||
| 61 | EloquentEncryptionFacade::makeEncryptionKeys(); |
||
| 62 | } |
||
| 63 | } |
||
| 64 |
Adding a
@returnannotation to a constructor is not recommended, since a constructor does not have a meaningful return value.Please refer to the PHP core documentation on constructors.