Completed
Push — master ( ff73e1...f54597 )
by Mahmoud
03:16
created
app/Port/Test/PHPUnit/Traits/TestingTrait.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -151,7 +151,7 @@  discard block
 block discarded – undo
151 151
     {
152 152
 
153 153
         // if no user detail provided, use the default details.
154
-        $userDetails = $userDetails ? : [
154
+        $userDetails = $userDetails ?: [
155 155
             'name'     => 'Developer user',
156 156
             'email'    => $this->faker->email,
157 157
             'password' => 'testing-pass',
@@ -165,7 +165,7 @@  discard block
 block discarded – undo
165 165
         ]);
166 166
 
167 167
         // assign roles and permissions
168
-        $user = $this->setupTestingUserAccess($user, $access ? : (isset($this->access) ? $this->access : null));
168
+        $user = $this->setupTestingUserAccess($user, $access ?: (isset($this->access) ? $this->access : null));
169 169
 
170 170
         // log the user in
171 171
         $user = App::make(ApiLoginThisUserObjectTask::class)->run($user);
@@ -364,7 +364,7 @@  discard block
 block discarded – undo
364 364
      */
365 365
     public function overrideSubDomain($subDomain, $url = null)
366 366
     {
367
-        $url = ($url) ? : $this->baseUrl;
367
+        $url = ($url) ?: $this->baseUrl;
368 368
 
369 369
         $info = parse_url($url);
370 370
 
Please login to merge, or discard this patch.