Completed
Push — master ( ceafc0...4c09ae )
by Mahmoud
04:55
created
app/Port/Test/PHPUnit/Traits/TestingTrait.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -168,7 +168,7 @@  discard block
 block discarded – undo
168 168
     {
169 169
 
170 170
         // if no user detail provided, use the default details.
171
-        $userDetails = $userDetails ? : [
171
+        $userDetails = $userDetails ?: [
172 172
             'name'     => 'Testing User',
173 173
             'email'    => $this->faker->email,
174 174
             'password' => 'testing-pass',
@@ -182,7 +182,7 @@  discard block
 block discarded – undo
182 182
         ]);
183 183
 
184 184
         // assign roles and permissions
185
-        $user = $this->setupTestingUserAccess($user, $access ? : (isset($this->access) ? $this->access : null));
185
+        $user = $this->setupTestingUserAccess($user, $access ?: (isset($this->access) ? $this->access : null));
186 186
 
187 187
         // log the user in
188 188
         $user = App::make(ApiLoginThisUserObjectTask::class)->run($user);
@@ -379,7 +379,7 @@  discard block
 block discarded – undo
379 379
      */
380 380
     public function overrideSubDomain($subDomain, $url = null)
381 381
     {
382
-        $url = ($url) ? : $this->baseUrl;
382
+        $url = ($url) ?: $this->baseUrl;
383 383
 
384 384
         $info = parse_url($url);
385 385
 
Please login to merge, or discard this patch.