Completed
Push — master ( 33e787...10dfaa )
by Mahmoud
03:41
created
app/Containers/User/Actions/DeleteUserAction.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -65,7 +65,7 @@
 block discarded – undo
65 65
      */
66 66
     public function run($email, $userId = null)
67 67
     {
68
-        if(!$userId){
68
+        if (!$userId) {
69 69
             $userId = $this->getAuthenticatedUserTask->run()->id;
70 70
         }
71 71
 
Please login to merge, or discard this patch.
app/Port/Routes/Traits/RoutesServiceProviderTrait.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -54,7 +54,7 @@  discard block
 block discarded – undo
54 54
                 $apiVersionNumber = $this->getRouteFileVersionNumber($fileNameWithoutExtension);
55 55
 
56 56
                 $this->apiRouter->version('v' . $apiVersionNumber,
57
-                    function (DingoApiRouter $router) use ($file, $containerPath, $containersNamespace) {
57
+                    function(DingoApiRouter $router) use ($file, $containerPath, $containersNamespace) {
58 58
 
59 59
                         $controllerNamespace = $containersNamespace . '\\Containers\\' . basename($containerPath) . '\\UI\API\Controllers';
60 60
 
@@ -62,12 +62,12 @@  discard block
 block discarded – undo
62 62
                             // Routes Namespace
63 63
                             'namespace'  => $controllerNamespace,
64 64
                             // Enable: API Rate Limiting
65
-                            'middleware' => ['api.throttle','mobile.requests.monitor'],
65
+                            'middleware' => ['api.throttle', 'mobile.requests.monitor'],
66 66
                             // The API limit time.
67 67
                             'limit'      => Config::get('api.limit'),
68 68
                             // The API limit expiry time.
69 69
                             'expires'    => Config::get('api.limit_expires'),
70
-                        ], function ($router) use ($file) {
70
+                        ], function($router) use ($file) {
71 71
 
72 72
                             require $file->getPathname();
73 73
 
@@ -100,7 +100,7 @@  discard block
 block discarded – undo
100 100
             foreach ($files as $file) {
101 101
                 $this->webRouter->group([
102 102
                     'namespace' => $controllerNamespace,
103
-                ], function (LaravelRouter $router) use ($file) {
103
+                ], function(LaravelRouter $router) use ($file) {
104 104
                     require $file->getPathname();
105 105
                 });
106 106
             }
Please login to merge, or discard this patch.
app/Containers/Email/UI/API/Tests/Functional/SetVisitorEmailTest.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\Containers\Email\UI\API\Tests\Functional;
4 4
 
5
-use App\Containers\Email\Mails\ConfirmEmail;
6 5
 use App\Port\Tests\PHPUnit\Abstracts\TestCase;
7 6
 
8 7
 /**
Please login to merge, or discard this patch.
app/Containers/User/Actions/CreateVisitorUserAction.php 1 patch
Doc Comments   -1 removed lines patch added patch discarded remove patch
@@ -32,7 +32,6 @@
 block discarded – undo
32 32
      * @param            $agentId
33 33
      * @param null       $platform
34 34
      * @param null       $device
35
-     * @param bool|false $login
36 35
      *
37 36
      * @return  mixed
38 37
      */
Please login to merge, or discard this patch.
app/Containers/User/Actions/UpdateVisitorUserAction.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -36,7 +36,7 @@
 block discarded – undo
36 36
      *
37 37
      * @param \App\Containers\User\Tasks\FindUserByVisitorIdTask      $findUserByVisitorIdTask
38 38
      * @param \App\Containers\User\Tasks\UpdateUserTask               $updateUserTask
39
-     * @param \App\Containers\User\Actions\ApiLoginThisUserObjectTask $apiLoginThisUserObjectTask
39
+     * @param ApiLoginThisUserObjectTask $apiLoginThisUserObjectTask
40 40
      */
41 41
     public function __construct(
42 42
         FindUserByVisitorIdTask $findUserByVisitorIdTask,
Please login to merge, or discard this patch.
app/Port/Tests/PHPUnit/Traits/TestingTrait.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -30,10 +30,10 @@
 block discarded – undo
30 30
     public $loggedInTestingUser;
31 31
 
32 32
     /**
33
-     * @param           $endpoint
33
+     * @param           string $endpoint
34 34
      * @param string    $verb
35 35
      * @param array     $data
36
-     * @param bool|true $protected
36
+     * @param boolean $protected
37 37
      * @param array     $header
38 38
      *
39 39
      * @throws \Symfony\Component\Debug\Exception\UndefinedMethodException
Please login to merge, or discard this patch.
Containers/User/UI/API/Tests/Functional/RegisterUserThatWasVisitorTest.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -37,10 +37,10 @@
 block discarded – undo
37 37
             'name'  => $data['name'],
38 38
         ], $response);
39 39
 
40
-         // assert response contain the token
40
+            // assert response contain the token
41 41
         $this->assertResponseContainKeys(['id', 'token'], $response);
42 42
 
43
-         // assert the data is stored in the database
43
+            // assert the data is stored in the database
44 44
         $this->seeInDatabase('users', ['email' => $data['email']]);
45 45
     }
46 46
 
Please login to merge, or discard this patch.
User/UI/API/Tests/Functional/RegisterUserThatWasNotVisitorTest.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -37,10 +37,10 @@
 block discarded – undo
37 37
             'name'  => $data['name'],
38 38
         ], $response);
39 39
 
40
-         // assert response contain the token
40
+            // assert response contain the token
41 41
         $this->assertResponseContainKeys(['id', 'token'], $response);
42 42
 
43
-         // assert the data is stored in the database
43
+            // assert the data is stored in the database
44 44
         $this->seeInDatabase('users', ['email' => $data['email']]);
45 45
     }
46 46
 
Please login to merge, or discard this patch.
app/Containers/User/UI/API/Controllers/Controller.php 1 patch
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -7,7 +7,6 @@
 block discarded – undo
7 7
 use App\Containers\User\Actions\GetUserAction;
8 8
 use App\Containers\User\Actions\ListAndSearchUsersAction;
9 9
 use App\Containers\User\Actions\RegisterVisitorUserAction;
10
-use App\Containers\User\Actions\SwitchVisitorToUserAction;
11 10
 use App\Containers\User\Actions\UpdateUserAction;
12 11
 use App\Containers\User\Actions\UpdateVisitorUserAction;
13 12
 use App\Containers\User\UI\API\Requests\DeleteUserRequest;
Please login to merge, or discard this patch.