Completed
Push — master ( 115453...aaeb9d )
by Mahmoud
05:36 queued 01:41
created
app/Containers/User/Actions/RegisterVisitorUserAction.php 2 patches
Doc Comments   +2 added lines, -3 removed lines patch added patch discarded remove patch
@@ -38,9 +38,8 @@
 block discarded – undo
38 38
 
39 39
     /**
40 40
      * @param            $agentId
41
-     * @param null       $platform
42
-     * @param null       $device
43
-     * @param bool|false $login
41
+     * @param string       $platform
42
+     * @param string       $device
44 43
      *
45 44
      * @return  mixed
46 45
      */
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -48,7 +48,7 @@
 block discarded – undo
48 48
     {
49 49
         $user = $this->findUserService->byAgentId($agentId);
50 50
 
51
-        if(!$user){
51
+        if (!$user) {
52 52
             $user = $this->createUserService->byAgent($agentId, $device, $platform);
53 53
         }
54 54
 
Please login to merge, or discard this patch.
app/Containers/ApiAuthentication/Middlewares/VisitorsAuthentication.php 1 patch
Doc Comments   -1 removed lines patch added patch discarded remove patch
@@ -30,7 +30,6 @@
 block discarded – undo
30 30
     /**
31 31
      * VisitorsAuthentication constructor.
32 32
      *
33
-     * @param \Illuminate\Foundation\Application                     $app
34 33
      * @param \Jenssegers\Agent\Agent                                $agent
35 34
      * @param \App\Containers\User\Actions\RegisterVisitorUserAction $registerVisitorUserAction
36 35
      */
Please login to merge, or discard this patch.
app/Containers/Welcome/UI/API/Routes/v.1.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -3,6 +3,6 @@
 block discarded – undo
3 3
 // Default root route
4 4
 use Illuminate\Support\Facades\Config;
5 5
 
6
-$router->any('/', function () {
6
+$router->any('/', function() {
7 7
     return response()->json(['Welcome to ' . Config::get('api.name') . '.']);
8 8
 });
Please login to merge, or discard this patch.
app/Containers/User/Tests/Unit/RegisterVisitorUserTest.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -25,7 +25,7 @@  discard block
 block discarded – undo
25 25
 
26 26
         $middleware = App::make(VisitorsAuthentication::class);
27 27
 
28
-        $middleware->handle($request, function ($r) {});
28
+        $middleware->handle($request, function($r) {});
29 29
 
30 30
         // assert a visitor was created in the DB
31 31
         $this->seeInDatabase('users', ['visitor_id' => $visitorId]);
@@ -40,7 +40,7 @@  discard block
 block discarded – undo
40 40
 
41 41
         $middleware = App::make(VisitorsAuthentication::class);
42 42
 
43
-        $middleware->handle($request, function ($r) {});
43
+        $middleware->handle($request, function($r) {});
44 44
 
45 45
         // assert a visitor was created in the DB
46 46
         $usersTotal = User::all()->count();
Please login to merge, or discard this patch.