Completed
Push — master ( 8bb78d...1c8f09 )
by Mahmoud
04:18
created
app/Ship/Features/Tests/PhpUnit/TestsRequestHelperTrait.php 1 patch
Doc Comments   +3 added lines, -5 removed lines patch added patch discarded remove patch
@@ -63,9 +63,7 @@  discard block
 block discarded – undo
63 63
 
64 64
     /**
65 65
      * @param        $this ->endpointUrl
66
-     * @param string $this ->endpointVerb
67 66
      * @param array  $data
68
-     * @param bool   $protected
69 67
      * @param array  $headers
70 68
      *
71 69
      * @return  mixed
@@ -91,7 +89,7 @@  discard block
 block discarded – undo
91 89
      * @param bool   $skipEncoding
92 90
      * @param string $replace
93 91
      *
94
-     * @return  mixed
92
+     * @return  TestsRequestHelperTrait
95 93
      */
96 94
     public function injectId($id, $skipEncoding = false, $replace = '{id}')
97 95
     {
@@ -108,7 +106,7 @@  discard block
 block discarded – undo
108 106
      *
109 107
      * to be used as follow: $this->endpoint('verb@url')->makeCall($data);
110 108
      *
111
-     * @param $endpoint
109
+     * @param string $endpoint
112 110
      *
113 111
      * @return  $this
114 112
      */
@@ -282,7 +280,7 @@  discard block
 block discarded – undo
282 280
     }
283 281
 
284 282
     /**
285
-     * @param $separator
283
+     * @param string $separator
286 284
      */
287 285
     private function validateEndpointFormat($separator)
288 286
     {
Please login to merge, or discard this patch.
app/Ship/Features/Tests/PhpUnit/TestsResponseHelperTrait.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -61,7 +61,7 @@
 block discarded – undo
61 61
     }
62 62
 
63 63
     /**
64
-     * @param $keys
64
+     * @param string[] $keys
65 65
      * @param $httpResponse
66 66
      */
67 67
     public function assertResponseContainKeys($keys, $httpResponse)
Please login to merge, or discard this patch.
app/Ship/Parents/Tests/PhpUnit/TestCase.php 1 patch
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -2,7 +2,6 @@
 block discarded – undo
2 2
 
3 3
 namespace App\Ship\Parents\Tests\PhpUnit;
4 4
 
5
-use App\Ship\Features\Tests\PhpUnit\TestingTrait;
6 5
 use App\Ship\Features\Tests\PhpUnit\TestsAuthHelperTrait;
7 6
 use App\Ship\Features\Tests\PhpUnit\TestsCustomHelperTrait;
8 7
 use App\Ship\Features\Tests\PhpUnit\TestsMockHelperTrait;
Please login to merge, or discard this patch.
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/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.
app/Containers/User/UI/API/Tests/Functional/CreateAdminTest.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -38,10 +38,10 @@
 block discarded – undo
38 38
             'name'  => $data['name'],
39 39
         ], $response);
40 40
 
41
-         // assert response contain the token
41
+            // assert response contain the token
42 42
         $this->assertResponseContainKeys(['id', 'token'], $response);
43 43
 
44
-         // assert the data is stored in the database
44
+            // assert the data is stored in the database
45 45
         $this->seeInDatabase('users', ['email' => $data['email']]);
46 46
 
47 47
         $responseContent = $this->getResponseContent($response);
Please login to merge, or discard this patch.