Completed
Push — master ( 77e82e...59f74a )
by Mahmoud
04:39
created
app/Port/Exception/Abstracts/Exception.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -40,7 +40,7 @@
 block discarded – undo
40 40
     /**
41 41
      * Exception constructor.
42 42
      *
43
-     * @param null            $message
43
+     * @param string            $message
44 44
      * @param null            $errors
45 45
      * @param null            $statusCode
46 46
      * @param int             $code
Please login to merge, or discard this patch.
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   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -28,7 +28,7 @@  discard block
 block discarded – undo
28 28
     public function debugDatabaseQueries($log = true, $terminal = false)
29 29
     {
30 30
         if (Config::get('database.query_debugging')) {
31
-            DB::listen(function ($event) use ($terminal, $log) {
31
+            DB::listen(function($event) use ($terminal, $log) {
32 32
                 $fullQuery = vsprintf(str_replace(['%', '?'], ['%%', '%s'], $event->sql), $event->bindings);
33 33
 
34 34
                 $text = $event->connectionName . ' (' . $event->time . '): ' . $fullQuery;
@@ -51,7 +51,7 @@  discard block
 block discarded – undo
51 51
      */
52 52
     public function changeTheDefaultDatabaseModelsFactoriesPath($customPath)
53 53
     {
54
-        App::singleton(\Illuminate\Database\Eloquent\Factory::class, function ($app) use ($customPath) {
54
+        App::singleton(\Illuminate\Database\Eloquent\Factory::class, function($app) use ($customPath) {
55 55
             $faker = $app->make(\Faker\Generator::class);
56 56
 
57 57
             return \Illuminate\Database\Eloquent\Factory::construct($faker, base_path() . $customPath);
@@ -82,7 +82,7 @@  discard block
 block discarded – undo
82 82
             $allServiceProviders[] = PortButler::buildMainServiceProvider($containersNamespace, $containerName);
83 83
         }
84 84
 
85
-        return array_unique($allServiceProviders) ? : [];
85
+        return array_unique($allServiceProviders) ?: [];
86 86
     }
87 87
 
88 88
     /**
@@ -117,7 +117,7 @@  discard block
 block discarded – undo
117 117
 
118 118
         // if DataArray `\League\Fractal\Serializer\DataArraySerializer` do noting since it's set by default by the Dingo API
119 119
         if ($serializerName !== 'DataArray') {
120
-            app('Dingo\Api\Transformer\Factory')->setAdapter(function () use ($serializerName) {
120
+            app('Dingo\Api\Transformer\Factory')->setAdapter(function() use ($serializerName) {
121 121
                 switch ($serializerName) {
122 122
                     case 'JsonApi':
123 123
                         $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/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/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/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/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.