Completed
Push — master ( 4a9a21...769d17 )
by Mahmoud
03:57
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/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.
app/Containers/Email/UI/API/Controllers/Controller.php 1 patch
Doc Comments   +2 added lines, -3 removed lines patch added patch discarded remove patch
@@ -17,7 +17,7 @@  discard block
 block discarded – undo
17 17
 {
18 18
 
19 19
     /**
20
-     * @param \App\Containers\Email\UI\API\Requests\SetEmailRequest $setEmailRequest
20
+     * @param SetUserEmailRequest $setEmailRequest
21 21
      * @param \App\Containers\Email\Actions\SetUserEmailAction   $setUserEmailAction
22 22
      *
23 23
      * @return  \Dingo\Api\Http\Response
@@ -32,8 +32,7 @@  discard block
 block discarded – undo
32 32
     }
33 33
 
34 34
     /**
35
-     * @param \App\Containers\Email\UI\API\Requests\SetEmailRequest $setEmailRequest
36
-     * @param \App\Containers\Email\Actions\SetUserEmailAction   $setUserEmailAction
35
+     * @param SetVisitorEmailRequest $setEmailRequest
37 36
      *
38 37
      * @return  \Dingo\Api\Http\Response
39 38
      */
Please login to merge, or discard this patch.
Settings/Database/Migrations/2016_20_09_030201_create_settings_table.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -11,7 +11,7 @@
 block discarded – undo
11 11
      */
12 12
     public function up()
13 13
     {
14
-        Schema::create('settings', function (Blueprint $table) {
14
+        Schema::create('settings', function(Blueprint $table) {
15 15
             $table->increments('id');
16 16
             $table->string('key')->unique();
17 17
             $table->string('value');
Please login to merge, or discard this patch.
app/Port/Criterias/Eloquent/CountCriteria.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -37,6 +37,6 @@
 block discarded – undo
37 37
      */
38 38
     public function apply($model, PrettusRepositoryInterface $repository)
39 39
     {
40
-        return DB::table($model->getModel()->getTable())->select('*', DB::raw('count('.$this->field.') as total_count'))->groupBy($this->field);
40
+        return DB::table($model->getModel()->getTable())->select('*', DB::raw('count(' . $this->field . ') as total_count'))->groupBy($this->field);
41 41
     }
42 42
 }
Please login to merge, or discard this patch.