@@ -94,6 +94,6 @@ |
||
| 94 | 94 | $this->repository->destroy($clientCertificate); |
| 95 | 95 | |
| 96 | 96 | return redirect()->route('admin.client_certificates.index') |
| 97 | - ->with('success', __('client_certificates.delete_success_msg')); |
|
| 97 | + ->with('success', __('client_certificates.delete_success_msg')); |
|
| 98 | 98 | } |
| 99 | 99 | } |
| 100 | 100 | \ No newline at end of file |
@@ -101,7 +101,7 @@ discard block |
||
| 101 | 101 | */ |
| 102 | 102 | public function destroy(ClientCertificate $clientCertificate) |
| 103 | 103 | { |
| 104 | - if (! Storage::disk('local')->exists('certs/client/' . $clientCertificate->certificate)) { |
|
| 104 | + if (!Storage::disk('local')->exists('certs/client/' . $clientCertificate->certificate)) { |
|
| 105 | 105 | // TODO: Not working =( |
| 106 | 106 | // Storage::disk('local')->delete('certs/client/' . $clientCertificate->certificate); |
| 107 | 107 | |
@@ -113,7 +113,7 @@ discard block |
||
| 113 | 113 | unlink($file); |
| 114 | 114 | } |
| 115 | 115 | |
| 116 | - if (! Storage::disk('local')->exists('certs/client/' . $clientCertificate->private_key)) { |
|
| 116 | + if (!Storage::disk('local')->exists('certs/client/' . $clientCertificate->private_key)) { |
|
| 117 | 117 | $file = Storage::disk('local') |
| 118 | 118 | ->getDriver() |
| 119 | 119 | ->getAdapter() |
@@ -147,7 +147,7 @@ discard block |
||
| 147 | 147 | } else { |
| 148 | 148 | // Fix. If client certificate exists in database but not exists certificates files. |
| 149 | 149 | // Delete invalid files. Generate new certificates. |
| 150 | - if (! Storage::exists($clientCertificate->certificate) || ! Storage::exists($clientCertificate->private_key)) { |
|
| 150 | + if (!Storage::exists($clientCertificate->certificate) || !Storage::exists($clientCertificate->private_key)) { |
|
| 151 | 151 | if (Storage::exists($clientCertificate->certificate)) { |
| 152 | 152 | Storage::delete($clientCertificate->certificate); |
| 153 | 153 | } |