Completed
Push — master ( 67015b...a1fc0d )
by Artem
05:18 queued 10s
created
src/Http/Middleware/ResolveTenant.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -48,7 +48,7 @@  discard block
 block discarded – undo
48 48
      */
49 49
     public function handle($request, \Closure $next)
50 50
     {
51
-        if(!$tenant = $this->resolveTenant($request)) {
51
+        if (!$tenant = $this->resolveTenant($request)) {
52 52
             throw new NotFoundHttpException();
53 53
         }
54 54
 
@@ -78,7 +78,7 @@  discard block
 block discarded – undo
78 78
      */
79 79
     protected function resolveTenant($request)
80 80
     {
81
-        if(!$uuid = $request->route('uuid')) {
81
+        if (!$uuid = $request->route('uuid')) {
82 82
             if (config('saml2.debug')) {
83 83
                 Log::debug('[Saml2] Tenant UUID is not present in the URL so cannot be resolved', [
84 84
                     'url' => $request->fullUrl()
@@ -88,7 +88,7 @@  discard block
 block discarded – undo
88 88
             return null;
89 89
         }
90 90
 
91
-        if(!$tenant = $this->tenants->findByUUID($uuid)) {
91
+        if (!$tenant = $this->tenants->findByUUID($uuid)) {
92 92
             if (config('saml2.debug')) {
93 93
                 Log::debug('[Saml2] Tenant doesn\'t exist', [
94 94
                     'uuid' => $uuid
@@ -98,9 +98,9 @@  discard block
 block discarded – undo
98 98
             return null;
99 99
         }
100 100
 
101
-        if($tenant->trashed()) {
101
+        if ($tenant->trashed()) {
102 102
             if (config('saml2.debug')) {
103
-                Log::debug('[Saml2] Tenant #' . $tenant->id. ' resolved but marked as deleted', [
103
+                Log::debug('[Saml2] Tenant #' . $tenant->id . ' resolved but marked as deleted', [
104 104
                     'id' => $tenant->id,
105 105
                     'uuid' => $uuid,
106 106
                     'deleted_at' => $tenant->deleted_at->toDateTimeString()
Please login to merge, or discard this patch.