Completed
Push — master ( bcb82e...80085e )
by vijay
07:39
created
app/Itil/views/problem/popup/impact.blade.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@
 block discarded – undo
1 1
 <?php 
2 2
 //$info = $problem->general();
3
-$impact ="";
3
+$impact = "";
4 4
 if ($problem->getGeneralByIdentifier('impact')) {
5 5
     $impact = $problem->getGeneralByIdentifier('impact')->value;
6 6
 }
Please login to merge, or discard this patch.
app/Itil/Requests/CreateLocationRequest.php 1 patch
Indentation   +20 added lines, -20 removed lines patch added patch discarded remove patch
@@ -5,25 +5,25 @@  discard block
 block discarded – undo
5 5
 
6 6
 class CreateLocationRequest extends Request {
7 7
 
8
-	/**
9
-	 * Determine if the user is authorized to make this request.
10
-	 *
11
-	 * @return bool
12
-	 */
13
-	public function authorize()
14
-	{
15
-		return true;
16
-	}
8
+    /**
9
+     * Determine if the user is authorized to make this request.
10
+     *
11
+     * @return bool
12
+     */
13
+    public function authorize()
14
+    {
15
+        return true;
16
+    }
17 17
 
18
-	/**
19
-	 * Get the validation rules that apply to the request.
20
-	 *
21
-	 * @return array
22
-	 */
23
-	public function rules()
24
-	{
25
-		return [
26
-			//
18
+    /**
19
+     * Get the validation rules that apply to the request.
20
+     *
21
+     * @return array
22
+     */
23
+    public function rules()
24
+    {
25
+        return [
26
+            //
27 27
             'title' =>'required|max:15',
28 28
             'email' =>'email|required',
29 29
             'phone' =>'required|numeric',
@@ -32,7 +32,7 @@  discard block
 block discarded – undo
32 32
             'department' =>'required',
33 33
            
34 34
           
35
-		];
36
-	}
35
+        ];
36
+    }
37 37
 
38 38
 }
39 39
\ No newline at end of file
Please login to merge, or discard this patch.
app/Itil/Requests/CreateLocationcatagoryRequest.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
     public function rules() {
24 24
         $id = $this->segment(3);
25 25
         return [
26
-            'name' => 'required|max:15|unique:sd_location_categories,name,' . $id
26
+            'name' => 'required|max:15|unique:sd_location_categories,name,'.$id
27 27
         ];
28 28
     }
29 29
 
Please login to merge, or discard this patch.
app/Itil/Controllers/BaseServiceDeskController.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -3,7 +3,7 @@
 block discarded – undo
3 3
 
4 4
 use App\Http\Controllers\Controller;
5 5
 
6
-class BaseServiceDeskController extends Controller{
6
+class BaseServiceDeskController extends Controller {
7 7
     
8 8
     public function __construct() {
9 9
         \Event::fire('service.desk.activate', array());
Please login to merge, or discard this patch.
app/Itil/Controllers/ActivateController.php 2 patches
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -45,10 +45,10 @@
 block discarded – undo
45 45
     }
46 46
     
47 47
     public function seed(){
48
-         try{
49
-             $controller = new ServiceDeskSeeder();
50
-             $controller->run();
51
-             return 1;
48
+            try{
49
+                $controller = new ServiceDeskSeeder();
50
+                $controller->run();
51
+                return 1;
52 52
         } catch (Exception $ex) {
53 53
             dd($ex);
54 54
         }
Please login to merge, or discard this 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 activate() {
13 13
         try {
14
-            if(isItil()==false){
14
+            if (isItil() == false) {
15 15
                 $this->migrate();
16 16
                 $this->seed();
17 17
             }
@@ -32,8 +32,8 @@  discard block
 block discarded – undo
32 32
         }
33 33
     }
34 34
     
35
-    public function migrate(){
36
-        try{
35
+    public function migrate() {
36
+        try {
37 37
             $path = "app".DIRECTORY_SEPARATOR."Itil".DIRECTORY_SEPARATOR."database".DIRECTORY_SEPARATOR."migrations";
38 38
             Artisan::call('migrate', [
39 39
             '--path' => $path,
@@ -44,8 +44,8 @@  discard block
 block discarded – undo
44 44
         }
45 45
     }
46 46
     
47
-    public function seed(){
48
-         try{
47
+    public function seed() {
48
+         try {
49 49
              $controller = new ServiceDeskSeeder();
50 50
              $controller->run();
51 51
              return 1;
Please login to merge, or discard this patch.
app/Itil/Controllers/RelesesController.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -28,11 +28,11 @@
 block discarded – undo
28 28
             return \Datatable::Collection($relese)
29 29
                             ->showColumns('subject', 'planned_start_date', 'planned_end_date')
30 30
                             ->addColumn('Action', function($model) {
31
-                                $url = url('service-desk/releases/' . $model->id . '/delete');
31
+                                $url = url('service-desk/releases/'.$model->id.'/delete');
32 32
                                 $delete = \App\Itil\Controllers\UtilityController::deletePopUp($model->id, $url, "Delete $model->subject");
33
-                                return "<a href=" . url('service-desk/releases/' . $model->id . '/edit') . " class='btn btn-info btn-sm'>Edit</a> "
33
+                                return "<a href=".url('service-desk/releases/'.$model->id.'/edit')." class='btn btn-info btn-sm'>Edit</a> "
34 34
                                         . $delete
35
-                                        . " <a href=" . url('service-desk/releases/' . $model->id . '/show') . " class='btn btn-primary btn-sm'>View</a>";
35
+                                        . " <a href=".url('service-desk/releases/'.$model->id.'/show')." class='btn btn-primary btn-sm'>View</a>";
36 36
                             })
37 37
                             ->searchColumns('subject', 'description')
38 38
                             ->orderColumns('subject', 'reason', 'impact', 'rollout_plan', 'backout_plan', 'status_id', 'priority_id', 'change_type_id', 'impact_id', 'location_id', 'approval_id')
Please login to merge, or discard this patch.
app/Itil/Controllers/CabController.php 2 patches
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -38,7 +38,7 @@  discard block
 block discarded – undo
38 38
                             return $head;
39 39
                         })
40 40
                         ->addColumn('action', function($model) {
41
-                            return "<a href=" . url('service-desk/cabs/' . $model->id . '/edit') . " class='btn btn-info'>Edit</a>";
41
+                            return "<a href=".url('service-desk/cabs/'.$model->id.'/edit')." class='btn btn-info'>Edit</a>";
42 42
                         })
43 43
                         ->orderColumns('name', 'head')
44 44
                         ->searchColumns('name', 'head')
@@ -150,20 +150,20 @@  discard block
 block discarded – undo
150 150
         $users = new \App\User();
151 151
         $user = $users->find($userid);
152 152
         $name = "";
153
-        if ($user){
153
+        if ($user) {
154 154
             $name = $user->first_name." ".$user->last_name;
155
-            if($name==" "){
155
+            if ($name == " ") {
156 156
                 $name = $user->user_name;
157 157
             }
158 158
         }
159 159
         return ucfirst($name);
160 160
     }
161 161
     
162
-    public static function checkVote($vote){
162
+    public static function checkVote($vote) {
163 163
         $value = "";
164
-        if($vote==1){
164
+        if ($vote == 1) {
165 165
             $value = "Voted for proceed";
166
-        }else{
166
+        } else {
167 167
             $value = "Voted for not proceed";
168 168
         }
169 169
         return $value;
Please login to merge, or discard this patch.
Braces   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -163,7 +163,7 @@
 block discarded – undo
163 163
         $value = "";
164 164
         if($vote==1){
165 165
             $value = "Voted for proceed";
166
-        }else{
166
+        } else{
167 167
             $value = "Voted for not proceed";
168 168
         }
169 169
         return $value;
Please login to merge, or discard this patch.
app/Itil/Controllers/LocationCategoryController.php 2 patches
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -26,7 +26,7 @@
 block discarded – undo
26 26
             return \Datatable::Collection($locationcategory)
27 27
                             ->showColumns('name', 'created_at', 'updated_at')
28 28
                             ->addColumn('action', function($model) {
29
-                                 $url = url('service-desk/location-category-types/'.$model->id.'/delete');
29
+                                    $url = url('service-desk/location-category-types/'.$model->id.'/delete');
30 30
                                 $delete = \App\Itil\Controllers\UtilityController::deletePopUp($model->id, $url, "Delete $model->subject",'btn btn-danger btn-sm');
31 31
                                 
32 32
                                 return "<a href=" . url('service-desk/location-category-types/' . $model->id . '/edit') . " class='btn btn-info btn-sm'>Edit</a>"
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -27,9 +27,9 @@
 block discarded – undo
27 27
                             ->showColumns('name', 'created_at', 'updated_at')
28 28
                             ->addColumn('action', function($model) {
29 29
                                  $url = url('service-desk/location-category-types/'.$model->id.'/delete');
30
-                                $delete = \App\Itil\Controllers\UtilityController::deletePopUp($model->id, $url, "Delete $model->subject",'btn btn-danger btn-sm');
30
+                                $delete = \App\Itil\Controllers\UtilityController::deletePopUp($model->id, $url, "Delete $model->subject", 'btn btn-danger btn-sm');
31 31
                                 
32
-                                return "<a href=" . url('service-desk/location-category-types/' . $model->id . '/edit') . " class='btn btn-info btn-sm'>Edit</a>"
32
+                                return "<a href=".url('service-desk/location-category-types/'.$model->id.'/edit')." class='btn btn-info btn-sm'>Edit</a>"
33 33
                                         . $delete;
34 34
                             })
35 35
                             ->searchColumns('name')
Please login to merge, or discard this patch.
app/Itil/Controllers/InterfaceController.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -102,7 +102,7 @@
 block discarded – undo
102 102
                 $attachments = new \App\Itil\Models\Common\Attachments();
103 103
                 $atach_owner = str_replace(":", ":$identifier:", $owner);
104 104
                 $attachment = $attachments->where('owner', $atach_owner)->first();
105
-                if($attachment){
105
+                if ($attachment) {
106 106
                     UtilityController::removeAttachment($attachment);
107 107
                 }
108 108
                 if ($identifier == "solution") {
Please login to merge, or discard this patch.