Completed
Push — master ( fb089c...ff496f )
by Mahmoud
03:01
created
app/Port/Provider/Traits/PortServiceProviderTrait.php 2 patches
Doc Comments   +1 added lines patch added patch discarded remove patch
@@ -47,6 +47,7 @@
 block discarded – undo
47 47
      * By default Laravel takes (server/database/factories) as the
48 48
      * path to the factories, this function changes the path to load
49 49
      * the factories from the infrastructure directory.
50
+     * @param string $customPath
50 51
      */
51 52
     public function changeTheDefaultDatabaseModelsFactoriesPath($customPath)
52 53
     {
Please login to merge, or discard this patch.
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -29,7 +29,7 @@  discard block
 block discarded – undo
29 29
     public function debugDatabaseQueries($log = true, $terminal = false)
30 30
     {
31 31
         if (Config::get('database.query_debugging')) {
32
-            DB::listen(function ($event) use ($terminal, $log) {
32
+            DB::listen(function($event) use ($terminal, $log) {
33 33
                 $fullQuery = vsprintf(str_replace(['%', '?'], ['%%', '%s'], $event->sql), $event->bindings);
34 34
 
35 35
                 $text = $event->connectionName . ' (' . $event->time . '): ' . $fullQuery;
@@ -52,7 +52,7 @@  discard block
 block discarded – undo
52 52
      */
53 53
     public function changeTheDefaultDatabaseModelsFactoriesPath($customPath)
54 54
     {
55
-        App::singleton(\Illuminate\Database\Eloquent\Factory::class, function ($app) use ($customPath) {
55
+        App::singleton(\Illuminate\Database\Eloquent\Factory::class, function($app) use ($customPath) {
56 56
             $faker = $app->make(\Faker\Generator::class);
57 57
 
58 58
             return \Illuminate\Database\Eloquent\Factory::construct($faker, base_path() . $customPath);
@@ -75,7 +75,7 @@  discard block
 block discarded – undo
75 75
             $allServiceProviders[] = PortButler::buildMainServiceProvider($containersNamespace, $containerName);
76 76
         }
77 77
 
78
-        return array_unique($allServiceProviders) ? : [];
78
+        return array_unique($allServiceProviders) ?: [];
79 79
     }
80 80
 
81 81
     /**
@@ -152,7 +152,7 @@  discard block
 block discarded – undo
152 152
 
153 153
         // if DataArray `\League\Fractal\Serializer\DataArraySerializer` do noting since it's set by default by the Dingo API
154 154
         if ($serializerName !== 'DataArray') {
155
-            app('Dingo\Api\Transformer\Factory')->setAdapter(function () use ($serializerName) {
155
+            app('Dingo\Api\Transformer\Factory')->setAdapter(function() use ($serializerName) {
156 156
                 switch ($serializerName) {
157 157
                     case 'JsonApi':
158 158
                         $serializer = new \League\Fractal\Serializer\JsonApiSerializer(Config::get('api.domain'));
@@ -185,7 +185,7 @@  discard block
 block discarded – undo
185 185
             ->registerMiddlewareGroups($middlewareGroups);
186 186
 
187 187
         // Registering Route Middleware's
188
-        foreach ($routeMiddlewares as $key => $routeMiddleware){
188
+        foreach ($routeMiddlewares as $key => $routeMiddleware) {
189 189
             $this->app['router']->middleware($key, $routeMiddleware);
190 190
         }
191 191
 
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.
Paypal/Data/Migrations/2016_07_11_120947_create_paypal_accounts_table.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 up()
20 20
     {
21
-        Schema::create('paypal_accounts', function (Blueprint $table) {
21
+        Schema::create('paypal_accounts', function(Blueprint $table) {
22 22
             $table->increments('id');
23 23
 
24 24
             $table->string('some_id');
Please login to merge, or discard this patch.
Stripe/Data/Migrations/2016_07_08_110947_create_stripe_accounts_table.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 up()
20 20
     {
21
-        Schema::create('stripe_accounts', function (Blueprint $table) {
21
+        Schema::create('stripe_accounts', function(Blueprint $table) {
22 22
             $table->increments('id');
23 23
             $table->string('customer_id');
24 24
             $table->string('card_id')->nullable();
Please login to merge, or discard this patch.
Containers/User/Data/Migrations/2000_01_01_000001_create_users_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('users', function (Blueprint $table) {
14
+        Schema::create('users', function(Blueprint $table) {
15 15
             $table->increments('id');
16 16
             $table->string('name');
17 17
 
Please login to merge, or discard this patch.
User/Data/Migrations/2000_01_01_000002_create_password_resets_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('password_resets', function (Blueprint $table) {
14
+        Schema::create('password_resets', function(Blueprint $table) {
15 15
             $table->string('email')->index();
16 16
             $table->string('token')->index();
17 17
             $table->timestamp('created_at');
Please login to merge, or discard this patch.
Settings/Data/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/Containers/User/Data/Factories/UserFactory.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,7 +1,7 @@
 block discarded – undo
1 1
 <?php
2 2
 
3 3
 // User
4
-$factory->define(App\Containers\User\Models\User::class, function (Faker\Generator $faker) {
4
+$factory->define(App\Containers\User\Models\User::class, function(Faker\Generator $faker) {
5 5
     return [
6 6
         'name'     => $faker->name,
7 7
         'email'    => $faker->email,
Please login to merge, or discard this patch.
app/Containers/Email/Tasks/SendConfirmationEmailTask.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -16,7 +16,7 @@
 block discarded – undo
16 16
 
17 17
     /**
18 18
      * @param \App\Containers\User\Models\User $user
19
-     * @param                                  $confirmationUrl
19
+     * @param                                  string $confirmationUrl
20 20
      */
21 21
     public function run(User $user, $confirmationUrl)
22 22
     {
Please login to merge, or discard this patch.