Completed
Push — master ( bf58d7...a1c25a )
by Mahmoud
06:45 queued 35s
created
app/Port/Routes/Traits/RoutesServiceProviderTrait.php 1 patch
Spacing   +3 added lines, -3 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
                         $router->group([
60 60
                             // Routes Namespace
@@ -65,7 +65,7 @@  discard block
 block discarded – undo
65 65
                             'limit'      => Config::get('api.limit'),
66 66
                             // The API limit expiry time.
67 67
                             'expires'    => Config::get('api.limit_expires'),
68
-                        ], function ($router) use ($file) {
68
+                        ], function($router) use ($file) {
69 69
 
70 70
                             require $file->getPathname();
71 71
 
@@ -96,7 +96,7 @@  discard block
 block discarded – undo
96 96
             foreach ($files as $file) {
97 97
                 $this->webRouter->group([
98 98
                     'namespace' => $containersNamespace . '\\Containers\\' . basename($containerPath) . '\\Controllers',
99
-                ], function (LaravelRouter $router) use ($file) {
99
+                ], function(LaravelRouter $router) use ($file) {
100 100
                     require $file->getPathname();
101 101
                 });
102 102
             }
Please login to merge, or discard this patch.
app/Port/Provider/Traits/PortServiceProviderTrait.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -27,7 +27,7 @@  discard block
 block discarded – undo
27 27
     {
28 28
         if (Config::get('database.query_debugging')) {
29 29
             // TODO: might not work in laravel 5.2 - check the events section of the upgrading giud and test it
30
-            DB::listen(function ($query, $bindings, $time, $connection) use ($terminal, $log) {
30
+            DB::listen(function($query, $bindings, $time, $connection) use ($terminal, $log) {
31 31
                 $fullQuery = vsprintf(str_replace(['%', '?'], ['%%', '%s'], $query), $bindings);
32 32
 
33 33
                 $text = $connection . ' (' . $time . '): ' . $fullQuery;
@@ -50,7 +50,7 @@  discard block
 block discarded – undo
50 50
      */
51 51
     public function changeTheDefaultDatabaseModelsFactoriesPath($customPath)
52 52
     {
53
-        $this->app->singleton(\Illuminate\Database\Eloquent\Factory::class, function ($app) use ($customPath) {
53
+        $this->app->singleton(\Illuminate\Database\Eloquent\Factory::class, function($app) use ($customPath) {
54 54
             $faker = $app->make(\Faker\Generator::class);
55 55
 
56 56
             return \Illuminate\Database\Eloquent\Factory::construct($faker, base_path() . $customPath);
@@ -81,7 +81,7 @@  discard block
 block discarded – undo
81 81
             $allServiceProviders[] = PortButler::buildMainServiceProvider($containersNamespace, $containerName);
82 82
         }
83 83
 
84
-        return array_unique($allServiceProviders) ? : [];
84
+        return array_unique($allServiceProviders) ?: [];
85 85
     }
86 86
 
87 87
     /**
@@ -101,7 +101,7 @@  discard block
 block discarded – undo
101 101
 
102 102
         // if DataArray `\League\Fractal\Serializer\DataArraySerializer` do noting since it's set by default by the Dingo API
103 103
         if ($serializerName !== 'DataArray') {
104
-            app('Dingo\Api\Transformer\Factory')->setAdapter(function () use ($serializerName) {
104
+            app('Dingo\Api\Transformer\Factory')->setAdapter(function() use ($serializerName) {
105 105
                 switch ($serializerName) {
106 106
                     case 'JsonApi':
107 107
                         $serializer = new \League\Fractal\Serializer\JsonApiSerializer(Config::get('api.domain'));
Please login to merge, or discard this patch.
app/Port/Console/Inspire.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -28,6 +28,6 @@
 block discarded – undo
28 28
      */
29 29
     public function handle()
30 30
     {
31
-        $this->comment(PHP_EOL.Inspiring::quote().PHP_EOL);
31
+        $this->comment(PHP_EOL . Inspiring::quote() . PHP_EOL);
32 32
     }
33 33
 }
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/Port/Email/Abstracts/MailsAbstract.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -57,7 +57,7 @@
 block discarded – undo
57 57
 
58 58
         // check if sending emails is enabled and if this is not running a testing environment
59 59
         if (Config::get('mail.enabled')) {
60
-            Mail::queue('EmailTemplates.' . $this->template, $data, function ($m) {
60
+            Mail::queue('EmailTemplates.' . $this->template, $data, function($m) {
61 61
                 $m->from($this->fromEmail, $this->fromName);
62 62
                 $m->to($this->toEmail, $this->toName)
63 63
                     ->subject($this->subject);
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/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.