Completed
Push — master ( 51a5dc...931052 )
by Jose Luis
15:45
created
src/FieldGenerator/Listeners/deleteColumn.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -12,7 +12,7 @@
 block discarded – undo
12 12
     {
13 13
         $field = $event->field;
14 14
         $entity = EntityModel::find($field['entity_id']);
15
-        Schema::table($entity->getTableName(), function ($table) use ($field) {
15
+        Schema::table($entity->getTableName(), function($table) use ($field) {
16 16
             $table->dropColumn($field['slug']);
17 17
         });
18 18
     }
Please login to merge, or discard this patch.
src/FieldGenerator/Middleware/FieldOrderSetter.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -17,7 +17,7 @@  discard block
 block discarded – undo
17 17
     {
18 18
         if (!is_null($command->order)) {
19 19
             $this->updateCurrentFields($command);
20
-        } else {
20
+        }else {
21 21
             $command = $this->setOrder($command);
22 22
         }
23 23
         return $next($command);
@@ -33,7 +33,7 @@  discard block
 block discarded – undo
33 33
             ->where('order', '>=', $command->order)
34 34
             ->orderBy('order', 'ASC')
35 35
             ->get()
36
-            ->each(function ($field) {
36
+            ->each(function($field) {
37 37
                 $field->order = $field->order + 1;
38 38
                 $field->save();
39 39
             });
Please login to merge, or discard this patch.
src/FieldGenerator/Transformers/FieldTransformer.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -23,7 +23,7 @@
 block discarded – undo
23 23
             'hidden' => (bool) $field->hidden,
24 24
             'order' => $field->order,
25 25
             'default' => $field->default,
26
-            'required' => (string)$field->required,
26
+            'required' => (string) $field->required,
27 27
             'links' => [
28 28
                 'edit' => route('users.config.edit', ['id' => $field->id])
29 29
             ],
Please login to merge, or discard this patch.
src/Flows/Handler/CreateFlowCommandHandler.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 handle($command)
20 20
     {
21
-        $flow = Flow::create((array)$command);
21
+        $flow = Flow::create((array) $command);
22 22
         event(new FlowWasCreated($flow));
23 23
         return $flow;
24 24
     }
Please login to merge, or discard this patch.
src/Flows/Middleware/SetStepOrder.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -17,7 +17,7 @@  discard block
 block discarded – undo
17 17
     {
18 18
         if ($command->order === null) {
19 19
             $this->setOrder($command);
20
-        } else {
20
+        }else {
21 21
             $this->reOrderSteps($command);
22 22
         }
23 23
         return $next($command);
@@ -32,7 +32,7 @@  discard block
 block discarded – undo
32 32
             ->where('order', '>=', $command->order)
33 33
             ->orderBy('order', 'ASC')
34 34
             ->get()
35
-            ->each(function ($step) {
35
+            ->each(function($step) {
36 36
                 $step->order = $step->order + 1;
37 37
                 $step->save();
38 38
             });
Please login to merge, or discard this patch.
src/Http/routes.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -1,16 +1,16 @@
 block discarded – undo
1 1
 <?php
2 2
 
3 3
 /** Notifications Routes **/
4
-Route::group(['middleware' => 'auth', 'prefix' => 'notifications', 'namespace' => 'Hechoenlaravel\JarvisFoundation\Http\Controllers'], function () {
4
+Route::group(['middleware' => 'auth', 'prefix' => 'notifications', 'namespace' => 'Hechoenlaravel\JarvisFoundation\Http\Controllers'], function() {
5 5
     Route::get('/', ['as' => 'notifications', 'uses' => 'NotificationsController@index']);
6 6
     Route::get('{id}/read', ['as' => 'notifications.read', 'uses' => 'NotificationsController@read']);
7 7
 });
8 8
 
9 9
 /** Some Core Routes for API calls **/
10 10
 $api = app('Dingo\Api\Routing\Router');
11
-$api->version('v1', function ($api) {
12
-    $api->group(['middleware' => ['api.auth'], 'providers' => ['inSession']], function ($api) {
13
-        $api->group(['prefix' => 'core', 'namespace' => 'Hechoenlaravel\JarvisFoundation\Http\Controllers'], function ($api) {
11
+$api->version('v1', function($api) {
12
+    $api->group(['middleware' => ['api.auth'], 'providers' => ['inSession']], function($api) {
13
+        $api->group(['prefix' => 'core', 'namespace' => 'Hechoenlaravel\JarvisFoundation\Http\Controllers'], function($api) {
14 14
             $api->resource('entity/{id}/fields', 'Core\FieldsController', ['only' => ['index', 'store', 'update', 'destroy']]);
15 15
             $api->put('entity/{id}/order-fields', 'Core\FieldsController@reOrderFieldId');
16 16
             $api->get('field-type/{type}/form', 'Core\FieldsController@fieldTypeForm');
Please login to merge, or discard this patch.
src/Menu/Presenters/SidebarMenuPresenter.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -11,7 +11,7 @@  discard block
 block discarded – undo
11 11
      */
12 12
     public function getOpenTagWrapper()
13 13
     {
14
-        return PHP_EOL . '<ul class="sidebar-menu">' . PHP_EOL;
14
+        return PHP_EOL.'<ul class="sidebar-menu">'.PHP_EOL;
15 15
     }
16 16
 
17 17
     /**
@@ -20,14 +20,14 @@  discard block
 block discarded – undo
20 20
     public function getMenuWithDropDownWrapper($item)
21 21
     {
22 22
         return '
23
-      		<li class="treeview' . $this->getActiveStateOnChild($item, ' active') . '">
23
+      		<li class="treeview' . $this->getActiveStateOnChild($item, ' active').'">
24 24
                 <a href="#">
25
-                    ' . $item->getIcon() . '
26
-                    <span>' . $item->title . '</span>
25
+                    ' . $item->getIcon().'
26
+                    <span>' . $item->title.'</span>
27 27
                     <i class="fa fa-angle-left pull-right"></i>
28 28
                 </a>
29 29
                 <ul class="treeview-menu">
30
-                    ' . $this->getChildMenuItems($item) . '
30
+                    ' . $this->getChildMenuItems($item).'
31 31
                 </ul>
32 32
             </li>';
33 33
     }
Please login to merge, or discard this patch.
src/Providers/JarvisFoundationServiceProvider.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -54,7 +54,7 @@
 block discarded – undo
54 54
         $this->publishes([
55 55
             __DIR__.'/../../resources/assets' => public_path('vendor/jplatform'),
56 56
         ], 'public');
57
-        app('Dingo\Api\Auth\Auth')->extend('inSession', function ($app) {
57
+        app('Dingo\Api\Auth\Auth')->extend('inSession', function($app) {
58 58
             return app('jarvis.auth.provider');
59 59
         });
60 60
     }
Please login to merge, or discard this patch.
src/Providers/MenuServiceProvider.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -15,14 +15,14 @@
 block discarded – undo
15 15
     public function boot()
16 16
     {
17 17
         if (!MenuPing::instance('sidebar')) {
18
-            MenuPing::create('sidebar', function ($menu) {
18
+            MenuPing::create('sidebar', function($menu) {
19 19
                 $menu->enableOrdering();
20 20
                 $menu->setPresenter('Hechoenlaravel\JarvisFoundation\Menu\Presenters\SidebarMenuPresenter');
21 21
             });
22 22
         }
23 23
         if (!MenuPing::instance('config')) {
24
-            MenuPing::create('config', function ($menu) {
25
-                $menu->dropdown('Configuración', function ($sub) {
24
+            MenuPing::create('config', function($menu) {
25
+                $menu->dropdown('Configuración', function($sub) {
26 26
 
27 27
                 }, ['icon' => 'fa fa-cogs']);
28 28
                 $menu->setPresenter('Hechoenlaravel\JarvisFoundation\Menu\Presenters\SidebarMenuPresenter');
Please login to merge, or discard this patch.