Completed
Push — master ( efc908...2ccc8e )
by Jose Luis
03:00
created
src/Field/Date/DateFieldType.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -92,7 +92,7 @@
 block discarded – undo
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']);
Please login to merge, or discard this patch.
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -117,7 +117,7 @@
 block discarded – undo
117 117
     }
118 118
 
119 119
     /**
120
-     * @return mixed
120
+     * @return string
121 121
      */
122 122
     public function presentFront()
123 123
     {
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', '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');
Please login to merge, or discard this patch.
src/Providers/MenuServiceProvider.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -15,21 +15,21 @@
 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');
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
         }
Please login to merge, or discard this patch.
src/Field/Select/SelectFieldType.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -95,11 +95,11 @@
 block discarded – undo
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
     /**
Please login to merge, or discard this patch.