Passed
Push — develop ( 974831...7c221a )
by Nikita
06:16
created
app/Http/Controllers/Admin/ClientCertificatesController.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -94,6 +94,6 @@
 block discarded – undo
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
Please login to merge, or discard this patch.
app/Repositories/ClientCertificateRepository.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -101,7 +101,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
                 }
Please login to merge, or discard this patch.