@@ -175,7 +175,7 @@ |
||
| 175 | 175 | 'Chumper\Datatable\DatatableServiceProvider', |
| 176 | 176 | 'Chumper\Zipper\ZipperServiceProvider', |
| 177 | 177 | 'Tymon\JWTAuth\Providers\JWTAuthServiceProvider', |
| 178 | - \Torann\GeoIP\GeoIPServiceProvider::class, |
|
| 178 | + \Torann\GeoIP\GeoIPServiceProvider::class, |
|
| 179 | 179 | Unisharp\Laravelfilemanager\LaravelFilemanagerServiceProvider::class, |
| 180 | 180 | Intervention\Image\ImageServiceProvider::class, |
| 181 | 181 | Unisharp\Ckeditor\ServiceProvider::class, |
@@ -5,25 +5,25 @@ discard block |
||
| 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 |
||
| 32 | 32 | 'department' =>'required', |
| 33 | 33 | |
| 34 | 34 | |
| 35 | - ]; |
|
| 36 | - } |
|
| 35 | + ]; |
|
| 36 | + } |
|
| 37 | 37 | |
| 38 | 38 | } |
| 39 | 39 | \ No newline at end of file |
@@ -45,10 +45,10 @@ |
||
| 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 | } |
@@ -294,8 +294,9 @@ discard block |
||
| 294 | 294 | foreach ($namespaces as $prefix => $namespace) { |
| 295 | 295 | foreach ($xml->attributes($namespace) as $attributeName => $attribute) { |
| 296 | 296 | //replace characters in attribute name |
| 297 | - if ($options['keySearch']) |
|
| 298 | - $attributeName = str_replace($options['keySearch'], $options['keyReplace'], $attributeName); |
|
| 297 | + if ($options['keySearch']) { |
|
| 298 | + $attributeName = str_replace($options['keySearch'], $options['keyReplace'], $attributeName); |
|
| 299 | + } |
|
| 299 | 300 | $attributeKey = $options['attributePrefix'] |
| 300 | 301 | . ($prefix ? $prefix . $options['namespaceSeparator'] : '') |
| 301 | 302 | . $attributeName; |
@@ -312,11 +313,13 @@ discard block |
||
| 312 | 313 | list($childTagName, $childProperties) = each($childArray); |
| 313 | 314 | |
| 314 | 315 | //replace characters in tag name |
| 315 | - if ($options['keySearch']) |
|
| 316 | - $childTagName = str_replace($options['keySearch'], $options['keyReplace'], $childTagName); |
|
| 316 | + if ($options['keySearch']) { |
|
| 317 | + $childTagName = str_replace($options['keySearch'], $options['keyReplace'], $childTagName); |
|
| 318 | + } |
|
| 317 | 319 | //add namespace prefix, if any |
| 318 | - if ($prefix) |
|
| 319 | - $childTagName = $prefix . $options['namespaceSeparator'] . $childTagName; |
|
| 320 | + if ($prefix) { |
|
| 321 | + $childTagName = $prefix . $options['namespaceSeparator'] . $childTagName; |
|
| 322 | + } |
|
| 320 | 323 | |
| 321 | 324 | if (!isset($tagsArray[$childTagName])) { |
| 322 | 325 | //only entry with this key |
@@ -337,8 +340,9 @@ discard block |
||
| 337 | 340 | //get text content of node |
| 338 | 341 | $textContentArray = array(); |
| 339 | 342 | $plainText = trim((string) $xml); |
| 340 | - if ($plainText !== '') |
|
| 341 | - $textContentArray[$options['textContent']] = $plainText; |
|
| 343 | + if ($plainText !== '') { |
|
| 344 | + $textContentArray[$options['textContent']] = $plainText; |
|
| 345 | + } |
|
| 342 | 346 | |
| 343 | 347 | //stick it all together |
| 344 | 348 | $propertiesArray = !$options['autoText'] || $attributesArray || $tagsArray || ($plainText === '') ? array_merge($attributesArray, $tagsArray, $textContentArray) : $plainText; |
@@ -163,7 +163,7 @@ |
||
| 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; |
@@ -26,7 +26,7 @@ |
||
| 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>" |
@@ -14,7 +14,7 @@ discard block |
||
| 14 | 14 | /** |
| 15 | 15 | * common |
| 16 | 16 | */ |
| 17 | - 'show'=>'Show', |
|
| 17 | + 'show'=>'Show', |
|
| 18 | 18 | 'edit'=>'Edit', |
| 19 | 19 | |
| 20 | 20 | |
@@ -367,7 +367,7 @@ discard block |
||
| 367 | 367 | 'vote'=>'Vote', |
| 368 | 368 | 'comment'=>'Comment', |
| 369 | 369 | 'show-vote'=>'Show Vote', |
| 370 | - /* |
|
| 370 | + /* |
|
| 371 | 371 | |-------------------------------------- |
| 372 | 372 | | Location Catagory create lang |
| 373 | 373 | |-------------------------------------- |
@@ -403,7 +403,7 @@ discard block |
||
| 403 | 403 | 'assigned'=>'Assigned', |
| 404 | 404 | 'serial_no'=>'Serial No', |
| 405 | 405 | |
| 406 | - /* |
|
| 406 | + /* |
|
| 407 | 407 | |-------------------------------------- |
| 408 | 408 | | Location Catagory create lang |
| 409 | 409 | |-------------------------------------- |
@@ -7,5 +7,5 @@ |
||
| 7 | 7 | { |
| 8 | 8 | protected $table = 'sd_release_priorities'; |
| 9 | 9 | |
| 10 | - protected $fillable = ['id','name','created_at','updated_at']; |
|
| 10 | + protected $fillable = ['id','name','created_at','updated_at']; |
|
| 11 | 11 | } |
| 12 | 12 | \ No newline at end of file |
@@ -7,5 +7,5 @@ |
||
| 7 | 7 | { |
| 8 | 8 | protected $table = 'sd_release_status'; |
| 9 | 9 | |
| 10 | - protected $fillable = ['id','name','created_at','updated_at']; |
|
| 10 | + protected $fillable = ['id','name','created_at','updated_at']; |
|
| 11 | 11 | } |
| 12 | 12 | \ No newline at end of file |