Completed
Push — master ( 7700d1...23cd67 )
by Mahmoud
03:21
created
app/Port/Test/PHPUnit/Traits/TestingUserTrait.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -98,7 +98,7 @@  discard block
 block discarded – undo
98 98
     public function createTestingUser($access = null, $userDetails = null)
99 99
     {
100 100
         // if no user detail provided, use the default details.
101
-        $userDetails = $userDetails ? : [
101
+        $userDetails = $userDetails ?: [
102 102
             'name'     => 'Testing User',
103 103
             'email'    => $this->faker->email,
104 104
             'password' => 'testing-pass',
@@ -112,7 +112,7 @@  discard block
 block discarded – undo
112 112
         ]);
113 113
 
114 114
         // assign roles and permissions
115
-        $user = $this->setupTestingUserAccess($user, $access ? : (isset($this->access) ? $this->access : null));
115
+        $user = $this->setupTestingUserAccess($user, $access ?: (isset($this->access) ? $this->access : null));
116 116
 
117 117
         // log the user in
118 118
         $user = App::make(ApiLoginThisUserObjectTask::class)->run($user);
Please login to merge, or discard this patch.
app/Port/Test/PHPUnit/Traits/TestCaseTrait.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -418,7 +418,7 @@
 block discarded – undo
418 418
      */
419 419
     public function overrideSubDomain($subDomain, $url = null)
420 420
     {
421
-        $url = ($url) ? : $this->baseUrl;
421
+        $url = ($url) ?: $this->baseUrl;
422 422
 
423 423
         $info = parse_url($url);
424 424
 
Please login to merge, or discard this patch.