@@ -11,7 +11,7 @@ discard block |
||
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 |
||
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 | } |
@@ -54,7 +54,7 @@ |
||
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 | } |
@@ -21,7 +21,7 @@ |
||
21 | 21 | public function execute($command, callable $next) |
22 | 22 | { |
23 | 23 | $pipeline = null; |
24 | - DB::transaction(function () use ($next, $command, &$pipeline){ |
|
24 | + DB::transaction(function() use ($next, $command, &$pipeline){ |
|
25 | 25 | $pipeline = $next($command); |
26 | 26 | }); |
27 | 27 | return $pipeline; |
@@ -92,7 +92,7 @@ |
||
92 | 92 | public function present() |
93 | 93 | { |
94 | 94 | $date = null; |
95 | - if(!empty($this->value)){ |
|
95 | + if (!empty($this->value)) { |
|
96 | 96 | $date = Carbon::createFromTimestamp(strtotime($this->value)); |
97 | 97 | } |
98 | 98 | return Field::text($this->fieldSlug, empty($date) ? null : $date->format('m/d/Y'), ['label' => $this->fieldName, 'class' => 'datepicker']); |
@@ -1,16 +1,16 @@ |
||
1 | 1 | <?php |
2 | 2 | |
3 | 3 | /** Notifications Routes **/ |
4 | -Route::group(['middleware' => 'auth', 'namespace' => 'Hechoenlaravel\JarvisFoundation\Http\Controllers'], function () { |
|
4 | +Route::group(['middleware' => 'auth', 'namespace' => 'Hechoenlaravel\JarvisFoundation\Http\Controllers'], function() { |
|
5 | 5 | Route::get('notifications', ['as' => 'notifications.index', 'uses' => 'NotificationsController@index']); |
6 | 6 | Route::get('notifications/{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'); |
@@ -15,21 +15,21 @@ |
||
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'); |
29 | 29 | }); |
30 | 30 | } |
31 | 31 | if (!MenuPing::instance('topnav')) { |
32 | - MenuPing::create('topnav', function ($menu) { |
|
32 | + MenuPing::create('topnav', function($menu) { |
|
33 | 33 | $menu->enableOrdering(); |
34 | 34 | }); |
35 | 35 | } |
@@ -95,11 +95,11 @@ |
||
95 | 95 | public function present() |
96 | 96 | { |
97 | 97 | $options = []; |
98 | - foreach(unserialize($this->fieldOptions) as $o) |
|
98 | + foreach (unserialize($this->fieldOptions) as $o) |
|
99 | 99 | { |
100 | 100 | $options[$o] = $o; |
101 | 101 | } |
102 | - return Field::select($this->fieldSlug, $options , $this->value, ['label' => $this->fieldName, 'class' => 'select2']); |
|
102 | + return Field::select($this->fieldSlug, $options, $this->value, ['label' => $this->fieldName, 'class' => 'select2']); |
|
103 | 103 | } |
104 | 104 | |
105 | 105 | /** |