Completed
Push — master ( 6ab2d0...d91945 )
by Mahmoud
04:49 queued 37s
created
app/Port/Console/ConsolePort.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -32,6 +32,6 @@
 block discarded – undo
32 32
     protected function schedule(Schedule $schedule)
33 33
     {
34 34
         $schedule->command('inspire')
35
-                 ->hourly();
35
+                    ->hourly();
36 36
     }
37 37
 }
Please login to merge, or discard this patch.
app/Port/Middleware/Middlewares/Http/Localization.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -38,7 +38,7 @@
 block discarded – undo
38 38
         $locale = $request->header('Content-Language');
39 39
 
40 40
         // if the header is missed
41
-        if(!$locale){
41
+        if (!$locale) {
42 42
             // take the default local language
43 43
             $locale = $this->app->config->get('app.locale');
44 44
         }
Please login to merge, or discard this patch.
app/Port/Butler/Providers/PortButlerServiceProvider.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -18,7 +18,7 @@
 block discarded – undo
18 18
      */
19 19
     public function register()
20 20
     {
21
-        $this->app->bind('PortButler', function () {
21
+        $this->app->bind('PortButler', function() {
22 22
             return $this->app->make(PortButler::class);
23 23
         });
24 24
     }
Please login to merge, or discard this patch.
app/Containers/Paypal/Actions/CreatePaypalAccountAction.php 1 patch
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -6,7 +6,6 @@
 block discarded – undo
6 6
 use App\Containers\Stripe\Repositories\Eloquent\StripeAccountRepository;
7 7
 use App\Containers\User\Models\User;
8 8
 use App\Port\Action\Abstracts\Action;
9
-use Auth;
10 9
 
11 10
 /**
12 11
  * Class CreateStripeAccountAction.
Please login to merge, or discard this patch.
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.
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.