Completed
Push — master ( ff73e1...f54597 )
by Mahmoud
03:16
created
app/Port/Test/PHPUnit/Traits/TestingTrait.php 2 patches
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -35,7 +35,7 @@  discard block
 block discarded – undo
35 35
     public $loggedInTestingUser;
36 36
 
37 37
     /**
38
-     * @param        $endpoint
38
+     * @param        string $endpoint
39 39
      * @param string $verb
40 40
      * @param array  $data
41 41
      * @param bool   $protected
@@ -209,7 +209,7 @@  discard block
 block discarded – undo
209 209
 
210 210
 
211 211
     /**
212
-     * @param $keys
212
+     * @param string[] $keys
213 213
      * @param $response
214 214
      */
215 215
     public function assertResponseContainKeys($keys, $response)
Please login to merge, or discard this 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.