Completed
Push — master ( 1b8ca6...90d75c )
by Mahmoud
03:54
created
app/Containers/User/Data/Factories/UserFactory.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -2,7 +2,7 @@
 block discarded – undo
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,
Please login to merge, or discard this patch.
app/Ship/Features/Tests/PhpUnit/TestsAuthHelperTrait.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -78,7 +78,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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);
Please login to merge, or discard this patch.
app/Ship/Parents/Tests/PhpUnit/TestCaseTrait.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -32,7 +32,7 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.