Completed
Push — master ( 91dac3...ff73e1 )
by Mahmoud
04:27
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
@@ -232,7 +232,7 @@  discard block
 block discarded – undo
232 232
     }
233 233
 
234 234
     /**
235
-     * @param $keys
235
+     * @param string[] $keys
236 236
      * @param $response
237 237
      */
238 238
     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
@@ -162,7 +162,7 @@  discard block
 block discarded – undo
162 162
     public function createTestingUser($access = null, $userDetails = null)
163 163
     {
164 164
         // if no user detail provided, use the default details.
165
-        $userDetails = $userDetails ? : [
165
+        $userDetails = $userDetails ?: [
166 166
             'name'     => 'Mahmoud Zalt',
167 167
             'email'    => '[email protected]',
168 168
             'password' => 'secret.Pass7',
@@ -173,7 +173,7 @@  discard block
 block discarded – undo
173 173
             $userDetails['name'], null, null, true
174 174
         );
175 175
 
176
-        $user = $this->setupTestingUserAccess($user, $access ? : (isset($this->access) ? $this->access : null));
176
+        $user = $this->setupTestingUserAccess($user, $access ?: (isset($this->access) ? $this->access : null));
177 177
 
178 178
         return $this->loggedInTestingUser = $user;
179 179
     }
@@ -387,7 +387,7 @@  discard block
 block discarded – undo
387 387
      */
388 388
     public function overrideSubDomain($subDomain, $url = null)
389 389
     {
390
-        $url = ($url) ? : $this->baseUrl;
390
+        $url = ($url) ?: $this->baseUrl;
391 391
 
392 392
         $info = parse_url($url);
393 393
 
Please login to merge, or discard this patch.