Completed
Push — master ( bcb82e...80085e )
by vijay
07:39
created
app/Plugins/ServiceDesk/Model/Assets/Department.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -6,7 +6,7 @@
 block discarded – undo
6 6
 class Department extends Model
7 7
 {
8 8
     protected $table = 'department';
9
-    protected $fillable = ['id','name','type','sla','manager','ticket_assignment','outgoing_email','template_set','auto_ticket_response',
10
-    'auto_message_response','auto_response_email','recipient','group_access','department_sign','created_at','updated_at'];
9
+    protected $fillable = ['id', 'name', 'type', 'sla', 'manager', 'ticket_assignment', 'outgoing_email', 'template_set', 'auto_ticket_response',
10
+    'auto_message_response', 'auto_response_email', 'recipient', 'group_access', 'department_sign', 'created_at', 'updated_at'];
11 11
 }
12 12
 
Please login to merge, or discard this patch.
app/Plugins/ServiceDesk/Model/Assets/SdImpactypes.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -6,5 +6,5 @@
 block discarded – undo
6 6
 class SdImpactypes extends Model
7 7
 {
8 8
     protected $table = 'sd_impact_types';
9
-    protected $fillable = ['id','name','created_at','updated_at'];
9
+    protected $fillable = ['id', 'name', 'created_at', 'updated_at'];
10 10
 }
Please login to merge, or discard this patch.
app/Plugins/ServiceDesk/Model/Assets/SdLocations.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -7,7 +7,7 @@  discard block
 block discarded – undo
7 7
 class SdLocations extends Model
8 8
 {
9 9
     protected $table = 'sd_locations';
10
-    protected $fillable = ['id','location_category_id','title','email','phone','address','departments','status','organization'];
10
+    protected $fillable = ['id', 'location_category_id', 'title', 'email', 'phone', 'address', 'departments', 'status', 'organization'];
11 11
     
12 12
     public function departmentRelation() {
13 13
         return $this->belongsTo('App\Model\helpdesk\Agent\Department', 'departments');
@@ -29,11 +29,11 @@  discard block
 block discarded – undo
29 29
         return ucfirst($value);
30 30
     }
31 31
     
32
-    public function category(){
33
-        return $this->belongsTo('App\Plugins\ServiceDesk\Model\Changes\SdLocationcategories',"location_category_id");
32
+    public function category() {
33
+        return $this->belongsTo('App\Plugins\ServiceDesk\Model\Changes\SdLocationcategories', "location_category_id");
34 34
     }
35 35
     
36
-    public function locationCategory(){
36
+    public function locationCategory() {
37 37
         $value = "--";
38 38
         $attr = $this->attributes['location_category_id'];
39 39
         if ($attr) {
@@ -68,7 +68,7 @@  discard block
 block discarded – undo
68 68
             $orgs = $this->getOrganizationRelation()->first();
69 69
             if ($orgs) {
70 70
                 $id = $orgs->id;
71
-                $name = "<a href=" . url('organizations/' . $id) . ">" . ucfirst($org) . "</a>";
71
+                $name = "<a href=".url('organizations/'.$id).">".ucfirst($org)."</a>";
72 72
             }
73 73
         }
74 74
         return $name;
Please login to merge, or discard this patch.
app/Plugins/ServiceDesk/Model/Assets/SdAssettypes.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -6,5 +6,5 @@
 block discarded – undo
6 6
 class SdAssettypes extends Model
7 7
 {
8 8
     protected $table = 'sd_asset_types';
9
-    protected $fillable = ['id','name','parent_id','created_at','updated_at'];
9
+    protected $fillable = ['id', 'name', 'parent_id', 'created_at', 'updated_at'];
10 10
 }
Please login to merge, or discard this patch.
app/Plugins/ServiceDesk/Model/Assets/SdAssets.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -84,7 +84,7 @@  discard block
 block discarded – undo
84 84
         if ($attr) {
85 85
             $attrs = $this->locationRelation()->first();
86 86
             if ($attrs) {
87
-                $value = "<a href=" . url('service-desk/location-types/' . $attr . '/show') . ">$attrs->title</a>";
87
+                $value = "<a href=".url('service-desk/location-types/'.$attr.'/show').">$attrs->title</a>";
88 88
             }
89 89
         }
90 90
         return ucfirst($value);
@@ -108,7 +108,7 @@  discard block
 block discarded – undo
108 108
         if ($attr) {
109 109
             $attrs = $this->usedBy()->first();
110 110
             if ($attrs) {
111
-                $value = ucfirst($attrs->first_name) . " " . ucfirst($attrs->last_name);
111
+                $value = ucfirst($attrs->first_name)." ".ucfirst($attrs->last_name);
112 112
                 if ($value == " ") {
113 113
                     $value = $attrs->user_name;
114 114
                 }
@@ -123,7 +123,7 @@  discard block
 block discarded – undo
123 123
         if ($attr) {
124 124
             $attrs = $this->managedBy()->first();
125 125
             if ($attrs) {
126
-                $value = ucfirst($attrs->first_name) . " " . ucfirst($attrs->last_name);
126
+                $value = ucfirst($attrs->first_name)." ".ucfirst($attrs->last_name);
127 127
                 if ($value == " ") {
128 128
                     $value = $attrs->user_name;
129 129
                 }
@@ -138,7 +138,7 @@  discard block
 block discarded – undo
138 138
         if ($attr) {
139 139
             $attrs = $this->product()->first();
140 140
             if ($attrs) {
141
-                $value = "<a href=" . url('service-desk/products/' . $attr . '/show') . ">$attrs->name</a>";
141
+                $value = "<a href=".url('service-desk/products/'.$attr.'/show').">$attrs->name</a>";
142 142
             }
143 143
         }
144 144
         return $value;
@@ -225,7 +225,7 @@  discard block
 block discarded – undo
225 225
         $relations = $relation->lists('asset_ids', 'id')->toArray();
226 226
         $array = array_dot($relations);
227 227
         $id = $this->attributes['id'];
228
-        $array1 = array_where($array, function ($key, $value) use($id) {
228
+        $array1 = array_where($array, function($key, $value) use($id) {
229 229
             if ($value == $id) {
230 230
                 return $value;
231 231
             }
@@ -290,7 +290,7 @@  discard block
 block discarded – undo
290 290
             $orgs = $this->getOrganizationRelation()->first();
291 291
             if ($orgs) {
292 292
                 $id = $orgs->id;
293
-                $name = "<a href=" . url('organizations/' . $id) . ">" . ucfirst($org) . "</a>";
293
+                $name = "<a href=".url('organizations/'.$id).">".ucfirst($org)."</a>";
294 294
             }
295 295
         }
296 296
         return $name;
Please login to merge, or discard this patch.
app/Plugins/ServiceDesk/Model/Cab/Cab.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -13,22 +13,22 @@
 block discarded – undo
13 13
         'aproval_mandatory',
14 14
         ];
15 15
     
16
-    public function setApproversAttribute($value){
17
-        if($value){
16
+    public function setApproversAttribute($value) {
17
+        if ($value) {
18 18
             $this->attributes['approvers'] = implode(',', $value);
19 19
         }
20 20
     }
21 21
     
22
-    public function getApproversAttribute($value){
23
-        if($value){
22
+    public function getApproversAttribute($value) {
23
+        if ($value) {
24 24
             return explode(',', $value);
25 25
         }
26 26
     }
27 27
     
28
-    public function setHeadAttribute($value){
29
-        if($value==""){
28
+    public function setHeadAttribute($value) {
29
+        if ($value == "") {
30 30
             $this->attributes['head'] = NULL;
31
-        }else{
31
+        } else {
32 32
             $this->attributes['head'] = $value;
33 33
         }
34 34
     }
Please login to merge, or discard this patch.
app/Plugins/ServiceDesk/routes.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -163,7 +163,7 @@  discard block
 block discarded – undo
163 163
         Route::get('location-types/{id}/delete', ['as' => 'service-desk.location.delete', 'uses' => 'App\Plugins\ServiceDesk\Controllers\Location\LocationController@handledelete']);
164 164
         Route::get('get-location-types', ['as' => 'service-desk.location.get', 'uses' => 'App\Plugins\ServiceDesk\Controllers\Location\LocationController@getLocation']);
165 165
         Route::get('location-types/{id}/show', ['as' => 'service-desk.location.show', 'uses' => 'App\Plugins\ServiceDesk\Controllers\Location\LocationController@show']);
166
-        Route::get('location/org',['as'=>'org.location','uses'=>'App\Plugins\ServiceDesk\Controllers\Location\LocationController@getLocationsForForm']);
166
+        Route::get('location/org', ['as'=>'org.location', 'uses'=>'App\Plugins\ServiceDesk\Controllers\Location\LocationController@getLocationsForForm']);
167 167
         /**
168 168
          * Procurment  Managing Module
169 169
          */
@@ -201,8 +201,8 @@  discard block
 block discarded – undo
201 201
         /**
202 202
          * Announcement
203 203
          */
204
-        Route::get('announcement',['as'=>'announcement','uses'=>'App\Plugins\ServiceDesk\Controllers\Announcement\AnnouncementController@setAnnounce']);
205
-        Route::post('announcement',['as'=>'announcement.post','uses'=>'App\Plugins\ServiceDesk\Controllers\Announcement\AnnouncementController@send']);
204
+        Route::get('announcement', ['as'=>'announcement', 'uses'=>'App\Plugins\ServiceDesk\Controllers\Announcement\AnnouncementController@setAnnounce']);
205
+        Route::post('announcement', ['as'=>'announcement.post', 'uses'=>'App\Plugins\ServiceDesk\Controllers\Announcement\AnnouncementController@send']);
206 206
     });
207 207
     /**
208 208
      * Agent module
@@ -290,10 +290,10 @@  discard block
 block discarded – undo
290 290
         Route::get('contracts/{id}/show', ['as' => 'service-desk.contract.show', 'uses' => 'App\Plugins\ServiceDesk\Controllers\Contract\ContractController@show']);
291 291
         Route::get('vendor/{id}/show', ['as' => 'service-desk.vendor.show', 'uses' => 'App\Plugins\ServiceDesk\Controllers\Vendor\VendorController@show']);
292 292
         Route::get('cabs/{cabid}/{owner}/show', ['as' => 'cabs.vote.show', 'uses' => 'App\Plugins\ServiceDesk\Controllers\Cab\CabController@showVotes']);
293
-        Route::post('general/{id}/{table}',['as'=>'general.post','uses'=>'App\Plugins\ServiceDesk\Controllers\InterfaceController@generalInfo']);
294
-        Route::get('delete/{attachid}/{owner}/attachment',['as'=>'attach.delete','uses'=>'App\Plugins\ServiceDesk\Controllers\InterfaceController@deleteAttachments']);
295
-        Route::get('download/{attachid}/{owner}/attachment',['as'=>'attach.delete','uses'=>'App\Plugins\ServiceDesk\Controllers\InterfaceController@downloadAttachments']);
296
-        Route::get('general/{owner}/{identifier}/delete',['as'=>'attach.delete','uses'=>'App\Plugins\ServiceDesk\Controllers\InterfaceController@deleteGeneralByIdentifier']);
293
+        Route::post('general/{id}/{table}', ['as'=>'general.post', 'uses'=>'App\Plugins\ServiceDesk\Controllers\InterfaceController@generalInfo']);
294
+        Route::get('delete/{attachid}/{owner}/attachment', ['as'=>'attach.delete', 'uses'=>'App\Plugins\ServiceDesk\Controllers\InterfaceController@deleteAttachments']);
295
+        Route::get('download/{attachid}/{owner}/attachment', ['as'=>'attach.delete', 'uses'=>'App\Plugins\ServiceDesk\Controllers\InterfaceController@downloadAttachments']);
296
+        Route::get('general/{owner}/{identifier}/delete', ['as'=>'attach.delete', 'uses'=>'App\Plugins\ServiceDesk\Controllers\InterfaceController@deleteGeneralByIdentifier']);
297 297
         
298 298
     });
299 299
     
Please login to merge, or discard this patch.
app/Plugins/ServiceDesk/ServiceProvider.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -12,7 +12,7 @@  discard block
 block discarded – undo
12 12
         /**
13 13
          * Migrations
14 14
          */
15
-        $path = __DIR__ . '/database/migrations';
15
+        $path = __DIR__.'/database/migrations';
16 16
         $this->publishes([
17 17
             $path => database_path('/migrations/test')
18 18
                 ], 'migrations');
@@ -36,8 +36,8 @@  discard block
 block discarded – undo
36 36
         $controller = new Controllers\ActivateController();
37 37
         $controller->activate();
38 38
         
39
-        if (class_exists('Breadcrumbs')){
40
-            require __DIR__ . '/breadcrumbs.php';
39
+        if (class_exists('Breadcrumbs')) {
40
+            require __DIR__.'/breadcrumbs.php';
41 41
         }   
42 42
         
43 43
         parent::boot('ServiceDesk');
Please login to merge, or discard this patch.
app/Exceptions/Handler.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -45,7 +45,7 @@
 block discarded – undo
45 45
         $debug = \Config::get('app.bugsnag_reporting');
46 46
         $debug = ($debug) ? 'true' : 'false';
47 47
         if ($debug == 'false') {
48
-            Bugsnag::setBeforeNotifyFunction(function ($error) {
48
+            Bugsnag::setBeforeNotifyFunction(function($error) {
49 49
                 return false;
50 50
             });
51 51
         } else {
Please login to merge, or discard this patch.