Completed
Push — master ( ea7945...ae6346 )
by Mahmoud
03:12
created
app/Port/Test/PHPUnit/Traits/TestingTrait.php 2 patches
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -37,7 +37,7 @@  discard block
 block discarded – undo
37 37
     public $loggedInTestingAdmin;
38 38
 
39 39
     /**
40
-     * @param        $endpoint
40
+     * @param        string $endpoint
41 41
      * @param string $verb
42 42
      * @param array  $data
43 43
      * @param bool   $protected
@@ -224,7 +224,7 @@  discard block
 block discarded – undo
224 224
     }
225 225
 
226 226
     /**
227
-     * @param $keys
227
+     * @param string[] $keys
228 228
      * @param $response
229 229
      */
230 230
     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
@@ -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.