@@ -2,7 +2,7 @@ |
||
2 | 2 | |
3 | 3 | use Illuminate\Support\Facades\Hash; |
4 | 4 | |
5 | -$factory->define(App\Containers\User\Models\User::class, function (Faker\Generator $faker) { |
|
5 | +$factory->define(App\Containers\User\Models\User::class, function(Faker\Generator $faker) { |
|
6 | 6 | |
7 | 7 | return [ |
8 | 8 | 'name' => $faker->name, |
@@ -78,7 +78,7 @@ discard block |
||
78 | 78 | */ |
79 | 79 | private function findOrCreateTestingUser($userDetails, $access) |
80 | 80 | { |
81 | - return $this->testingUser ? : $this->createTestingUser($userDetails, $access); |
|
81 | + return $this->testingUser ?: $this->createTestingUser($userDetails, $access); |
|
82 | 82 | } |
83 | 83 | |
84 | 84 | /** |
@@ -126,7 +126,7 @@ discard block |
||
126 | 126 | ]; |
127 | 127 | |
128 | 128 | // if no user detail provided, use the default details, to find the password or generate one before encoding it |
129 | - return $this->prepareUserPassword($userDetails ? : $defaultUserDetails);; |
|
129 | + return $this->prepareUserPassword($userDetails ?: $defaultUserDetails); ; |
|
130 | 130 | } |
131 | 131 | |
132 | 132 | /** |
@@ -161,7 +161,7 @@ discard block |
||
161 | 161 | */ |
162 | 162 | private function setupTestingUserAccess($user, $access) |
163 | 163 | { |
164 | - $access = $access ? : $this->getAccess(); |
|
164 | + $access = $access ?: $this->getAccess(); |
|
165 | 165 | |
166 | 166 | $user = $this->setupTestingUserPermissions($user, $access); |
167 | 167 | $user = $this->setupTestingUserRoles($user, $access); |
@@ -32,7 +32,7 @@ |
||
32 | 32 | return; |
33 | 33 | } |
34 | 34 | |
35 | - $url = ($url) ? : $this->baseUrl; |
|
35 | + $url = ($url) ?: $this->baseUrl; |
|
36 | 36 | |
37 | 37 | $info = parse_url($url); |
38 | 38 |