Completed
Push — master ( bcb82e...80085e )
by vijay
07:39
created
app/Itil/Models/Common/GeneralInfo.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -5,7 +5,7 @@
 block discarded – undo
5 5
 class GeneralInfo extends Model
6 6
 {
7 7
     protected $table = 'sd_gerneral';
8
-    protected $fillable = ['owner','key','value'];
8
+    protected $fillable = ['owner', 'key', 'value'];
9 9
     
10 10
     
11 11
 }
12 12
\ No newline at end of file
Please login to merge, or discard this patch.
app/Itil/Models/Common/Ticket.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -12,7 +12,7 @@  discard block
 block discarded – undo
12 12
 
13 13
     public function getTicketRelation($table) {
14 14
         //dd($table);
15
-        $relation = $this->ticketRelation()->where('owner', 'LIKE', $table . "%")->first();
15
+        $relation = $this->ticketRelation()->where('owner', 'LIKE', $table."%")->first();
16 16
         if ($relation) {
17 17
 
18 18
             $owner = $relation->owner;
@@ -66,7 +66,7 @@  discard block
 block discarded – undo
66 66
         $id = $this->attributes['id'];
67 67
         if ($thread) {
68 68
             $title = $thread->title;
69
-            $subject = "<a href=" . url('thread/' . $id) . ">" . $title . "</a>";
69
+            $subject = "<a href=".url('thread/'.$id).">".$title."</a>";
70 70
         }
71 71
         return $subject;
72 72
     }
Please login to merge, or discard this patch.
app/Itil/Models/Common/TicketRelation.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -5,6 +5,6 @@
 block discarded – undo
5 5
 class TicketRelation extends Model
6 6
 {
7 7
     protected $table = 'sd_ticket_relation';
8
-    protected $fillable = ['ticket_id','owner'];
8
+    protected $fillable = ['ticket_id', 'owner'];
9 9
     
10 10
 }
11 11
\ No newline at end of file
Please login to merge, or discard this patch.
app/Itil/Models/Common/Location.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -9,7 +9,7 @@  discard block
 block discarded – undo
9 9
 class Location extends Model
10 10
 {
11 11
     protected $table = 'sd_locations';
12
-    protected $fillable = ['id','name','created_at','updated_at',
12
+    protected $fillable = ['id', 'name', 'created_at', 'updated_at',
13 13
         
14 14
     ];
15 15
     
@@ -32,11 +32,11 @@  discard block
 block discarded – undo
32 32
         return ucfirst($value);
33 33
     }
34 34
     
35
-    public function category(){
36
-        return $this->belongsTo('App\Itil\Models\Changes\SdLocationcategories',"location_category_id");
35
+    public function category() {
36
+        return $this->belongsTo('App\Itil\Models\Changes\SdLocationcategories', "location_category_id");
37 37
     }
38 38
     
39
-    public function locationCategory(){
39
+    public function locationCategory() {
40 40
         $value = "--";
41 41
         $attr = $this->attributes['location_category_id'];
42 42
         if ($attr) {
@@ -69,7 +69,7 @@  discard block
 block discarded – undo
69 69
             $orgs = $this->getOrganizationRelation()->first();
70 70
             if ($orgs) {
71 71
                 $id = $orgs->id;
72
-                $name = "<a href=" . url('organizations/' . $id) . ">" . ucfirst($org) . "</a>";
72
+                $name = "<a href=".url('organizations/'.$id).">".ucfirst($org)."</a>";
73 73
             }
74 74
         }
75 75
         return $name;
Please login to merge, or discard this patch.
app/Itil/Models/Common/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/Itil/ItilServiceProvider.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -13,10 +13,10 @@  discard block
 block discarded – undo
13 13
      */
14 14
     public function boot() {
15 15
 
16
-        $view_path = app_path() . DIRECTORY_SEPARATOR . 'Itil' . DIRECTORY_SEPARATOR . 'views';
16
+        $view_path = app_path().DIRECTORY_SEPARATOR.'Itil'.DIRECTORY_SEPARATOR.'views';
17 17
         $this->loadViewsFrom($view_path, 'itil');
18 18
 
19
-        $lang_path = app_path() . DIRECTORY_SEPARATOR . 'Itil' . DIRECTORY_SEPARATOR . 'lang';
19
+        $lang_path = app_path().DIRECTORY_SEPARATOR.'Itil'.DIRECTORY_SEPARATOR.'lang';
20 20
         $this->loadTranslationsFrom($lang_path, "itil");
21 21
 
22 22
         if (isInstall()) {
@@ -25,7 +25,7 @@  discard block
 block discarded – undo
25 25
         }
26 26
 
27 27
         if (class_exists('Breadcrumbs')) {
28
-            require __DIR__ . '/breadcrumbs.php';
28
+            require __DIR__.'/breadcrumbs.php';
29 29
         }
30 30
     }
31 31
 
Please login to merge, or discard this patch.
app/Itil/breadcrumbs.php 1 patch
Spacing   +20 added lines, -20 removed lines patch added patch discarded remove patch
@@ -14,15 +14,15 @@  discard block
 block discarded – undo
14 14
     $breadcrumbs->push('Create', route('service-desk.releases.create'));
15 15
 });
16 16
 
17
-Breadcrumbs::register('service-desk.releases.edit', function($breadcrumbs,$id)
17
+Breadcrumbs::register('service-desk.releases.edit', function($breadcrumbs, $id)
18 18
 {
19 19
     $breadcrumbs->parent('service-desk.releases.index');
20
-    $breadcrumbs->push('Edit', route('service-desk.releases.edit',$id));
20
+    $breadcrumbs->push('Edit', route('service-desk.releases.edit', $id));
21 21
 });
22
-Breadcrumbs::register('service-desk.releases.show', function($breadcrumbs,$id)
22
+Breadcrumbs::register('service-desk.releases.show', function($breadcrumbs, $id)
23 23
 {
24 24
     $breadcrumbs->parent('service-desk.releases.index');
25
-    $breadcrumbs->push('Show', route('service-desk.releases.show',$id));
25
+    $breadcrumbs->push('Show', route('service-desk.releases.show', $id));
26 26
 });
27 27
 
28 28
 /**
@@ -39,15 +39,15 @@  discard block
 block discarded – undo
39 39
     $breadcrumbs->push('Create', route('service-desk.changes.create'));
40 40
 });
41 41
 
42
-Breadcrumbs::register('service-desk.changes.edit', function($breadcrumbs,$id)
42
+Breadcrumbs::register('service-desk.changes.edit', function($breadcrumbs, $id)
43 43
 {
44 44
     $breadcrumbs->parent('service-desk.changes.index');
45
-    $breadcrumbs->push('Edit', route('service-desk.changes.edit',$id));
45
+    $breadcrumbs->push('Edit', route('service-desk.changes.edit', $id));
46 46
 });
47
-Breadcrumbs::register('service-desk.changes.show', function($breadcrumbs,$id)
47
+Breadcrumbs::register('service-desk.changes.show', function($breadcrumbs, $id)
48 48
 {
49 49
     $breadcrumbs->parent('service-desk.changes.index');
50
-    $breadcrumbs->push('Show', route('service-desk.changes.show',$id));
50
+    $breadcrumbs->push('Show', route('service-desk.changes.show', $id));
51 51
 });
52 52
 
53 53
 /**
@@ -64,15 +64,15 @@  discard block
 block discarded – undo
64 64
     $breadcrumbs->push('Create', route('service-desk.problem.create'));
65 65
 });
66 66
 
67
-Breadcrumbs::register('service-desk.problem.edit', function($breadcrumbs,$id)
67
+Breadcrumbs::register('service-desk.problem.edit', function($breadcrumbs, $id)
68 68
 {
69 69
     $breadcrumbs->parent('service-desk.problem.index');
70
-    $breadcrumbs->push('Edit', route('service-desk.problem.edit',$id));
70
+    $breadcrumbs->push('Edit', route('service-desk.problem.edit', $id));
71 71
 });
72
-Breadcrumbs::register('show.problem', function($breadcrumbs,$id)
72
+Breadcrumbs::register('show.problem', function($breadcrumbs, $id)
73 73
 {
74 74
     $breadcrumbs->parent('service-desk.problem.index');
75
-    $breadcrumbs->push('Show', route('show.problem',$id));
75
+    $breadcrumbs->push('Show', route('show.problem', $id));
76 76
 });
77 77
 
78 78
 /**
@@ -89,10 +89,10 @@  discard block
 block discarded – undo
89 89
     $breadcrumbs->push('Create', route('service-desk.location-category.create'));
90 90
 });
91 91
 
92
-Breadcrumbs::register('service-desk.location-category.edit', function($breadcrumbs,$id)
92
+Breadcrumbs::register('service-desk.location-category.edit', function($breadcrumbs, $id)
93 93
 {
94 94
     $breadcrumbs->parent('service-desk.location-category.index');
95
-    $breadcrumbs->push('Edit', route('service-desk.location-category.edit',$id));
95
+    $breadcrumbs->push('Edit', route('service-desk.location-category.edit', $id));
96 96
 });
97 97
 
98 98
 /**
@@ -109,15 +109,15 @@  discard block
 block discarded – undo
109 109
     $breadcrumbs->push('Create', route('service-desk.location.create'));
110 110
 });
111 111
 
112
-Breadcrumbs::register('service-desk.location.edit', function($breadcrumbs,$id)
112
+Breadcrumbs::register('service-desk.location.edit', function($breadcrumbs, $id)
113 113
 {
114 114
     $breadcrumbs->parent('service-desk.location.index');
115
-    $breadcrumbs->push('Edit', route('service-desk.location.edit',$id));
115
+    $breadcrumbs->push('Edit', route('service-desk.location.edit', $id));
116 116
 });
117
-Breadcrumbs::register('service-desk.location.show', function($breadcrumbs,$id)
117
+Breadcrumbs::register('service-desk.location.show', function($breadcrumbs, $id)
118 118
 {
119 119
     $breadcrumbs->parent('service-desk.location.index');
120
-    $breadcrumbs->push('Show', route('service-desk.location.show',$id));
120
+    $breadcrumbs->push('Show', route('service-desk.location.show', $id));
121 121
 });
122 122
 /**
123 123
  * Cab
@@ -133,9 +133,9 @@  discard block
 block discarded – undo
133 133
     $breadcrumbs->push('Create', route('service-desk.cabs.create'));
134 134
 });
135 135
 
136
-Breadcrumbs::register('service-desk.cabs.edit', function($breadcrumbs,$id)
136
+Breadcrumbs::register('service-desk.cabs.edit', function($breadcrumbs, $id)
137 137
 {
138 138
     $breadcrumbs->parent('service-desk.cabs.index');
139
-    $breadcrumbs->push('Edit', route('service-desk.cabs.edit',$id));
139
+    $breadcrumbs->push('Edit', route('service-desk.cabs.edit', $id));
140 140
 });
141 141
 
Please login to merge, or discard this patch.
app/FaveoLog/routes.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -1,9 +1,9 @@
 block discarded – undo
1 1
 <?php
2 2
 
3
-Breadcrumbs::register('logs', function ($breadcrumbs) {
3
+Breadcrumbs::register('logs', function($breadcrumbs) {
4 4
     $breadcrumbs->parent('setting');
5 5
     $breadcrumbs->push('System Logs', route('logs'));
6 6
 });
7
-Route::group(['middleware' => ['web', 'auth', 'roles']], function () {
7
+Route::group(['middleware' => ['web', 'auth', 'roles']], function() {
8 8
     Route::get('logs', ['as' => 'logs', 'uses' => 'App\FaveoLog\controllers\LogViewerController@index']);
9 9
 });
Please login to merge, or discard this patch.
app/Providers/AppServiceProvider.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -27,25 +27,25 @@  discard block
 block discarded – undo
27 27
 
28 28
     public function boot()
29 29
     {
30
-        Queue::failing(function (JobFailed $event) {
30
+        Queue::failing(function(JobFailed $event) {
31 31
             loging('Failed Job - '.$event->connectionName, json_encode($event->data));
32 32
             $failedid = $event->failedId;
33 33
             //\Artisan::call('queue:retry',['id'=>[$failedid]]);
34 34
         });
35 35
         // Please note the different namespace
36 36
         // and please add a \ in front of your classes in the global namespace
37
-        \Event::listen('cron.collectJobs', function () {
38
-            \Cron::add('example1', '* * * * *', function () {
37
+        \Event::listen('cron.collectJobs', function() {
38
+            \Cron::add('example1', '* * * * *', function() {
39 39
                 $this->index();
40 40
 
41 41
                 return 'No';
42 42
             });
43 43
 
44
-            \Cron::add('example2', '*/2 * * * *', function () {
44
+            \Cron::add('example2', '*/2 * * * *', function() {
45 45
                 // Do some crazy things successfully every two minute
46 46
             });
47 47
 
48
-            \Cron::add('disabled job', '0 * * * *', function () {
48
+            \Cron::add('disabled job', '0 * * * *', function() {
49 49
                 // Do some crazy things successfully every hour
50 50
             }, false);
51 51
         });
@@ -55,7 +55,7 @@  discard block
 block discarded – undo
55 55
 
56 56
     public function composer()
57 57
     {
58
-        \View::composer('themes.default1.update.notification', function () {
58
+        \View::composer('themes.default1.update.notification', function() {
59 59
             $notification = new BarNotification();
60 60
             $not = [
61 61
                 'notification' => $notification->where('value', '!=', '')->get(),
Please login to merge, or discard this patch.