@@ -31,7 +31,7 @@ |
||
31 | 31 | */ |
32 | 32 | public function fullReference(): string |
33 | 33 | { |
34 | - return $this->category()->reference() . '.' . $this->reference(); |
|
34 | + return $this->category()->reference().'.'.$this->reference(); |
|
35 | 35 | } |
36 | 36 | |
37 | 37 | /** |
@@ -59,13 +59,13 @@ |
||
59 | 59 | */ |
60 | 60 | public function update(RoleTagCategory $roleTagCategory, RoleTagCategoryUpdateRequest $request) |
61 | 61 | { |
62 | - if($request->input('name') !== null) { |
|
62 | + if ($request->input('name') !== null) { |
|
63 | 63 | $roleTagCategory->setName($request->input('name')); |
64 | 64 | } |
65 | - if($request->input('description') !== null) { |
|
65 | + if ($request->input('description') !== null) { |
|
66 | 66 | $roleTagCategory->setDescription($request->input('description')); |
67 | 67 | } |
68 | - if($request->input('reference') !== null) { |
|
68 | + if ($request->input('reference') !== null) { |
|
69 | 69 | $roleTagCategory->setReference($request->input('reference')); |
70 | 70 | } |
71 | 71 |
@@ -62,16 +62,16 @@ |
||
62 | 62 | */ |
63 | 63 | public function update(GroupTag $groupTag, GroupTagUpdateRequest $request) |
64 | 64 | { |
65 | - if($request->input('name') !== null) { |
|
65 | + if ($request->input('name') !== null) { |
|
66 | 66 | $groupTag->setName($request->input('name')); |
67 | 67 | } |
68 | - if($request->input('description') !== null) { |
|
68 | + if ($request->input('description') !== null) { |
|
69 | 69 | $groupTag->setDescription($request->input('description')); |
70 | 70 | } |
71 | - if($request->input('reference') !== null) { |
|
71 | + if ($request->input('reference') !== null) { |
|
72 | 72 | $groupTag->setReference($request->input('reference')); |
73 | 73 | } |
74 | - if($request->input('tag_category_id') !== null) { |
|
74 | + if ($request->input('tag_category_id') !== null) { |
|
75 | 75 | $groupTag->setTagCategoryId($request->input('tag_category_id')); |
76 | 76 | } |
77 | 77 |
@@ -59,13 +59,13 @@ |
||
59 | 59 | */ |
60 | 60 | public function update(PositionTagCategory $positionTagCategory, PositionTagCategoryUpdateRequest $request) |
61 | 61 | { |
62 | - if($request->input('name') !== null) { |
|
62 | + if ($request->input('name') !== null) { |
|
63 | 63 | $positionTagCategory->setName($request->input('name')); |
64 | 64 | } |
65 | - if($request->input('description') !== null) { |
|
65 | + if ($request->input('description') !== null) { |
|
66 | 66 | $positionTagCategory->setDescription($request->input('description')); |
67 | 67 | } |
68 | - if($request->input('reference') !== null) { |
|
68 | + if ($request->input('reference') !== null) { |
|
69 | 69 | $positionTagCategory->setReference($request->input('reference')); |
70 | 70 | } |
71 | 71 |
@@ -62,16 +62,16 @@ |
||
62 | 62 | */ |
63 | 63 | public function update(UserTag $userTag, UserTagUpdateRequest $request) |
64 | 64 | { |
65 | - if($request->input('name') !== null) { |
|
65 | + if ($request->input('name') !== null) { |
|
66 | 66 | $userTag->setName($request->input('name')); |
67 | 67 | } |
68 | - if($request->input('description') !== null) { |
|
68 | + if ($request->input('description') !== null) { |
|
69 | 69 | $userTag->setDescription($request->input('description')); |
70 | 70 | } |
71 | - if($request->input('reference') !== null) { |
|
71 | + if ($request->input('reference') !== null) { |
|
72 | 72 | $userTag->setReference($request->input('reference')); |
73 | 73 | } |
74 | - if($request->input('tag_category_id') !== null) { |
|
74 | + if ($request->input('tag_category_id') !== null) { |
|
75 | 75 | $userTag->setTagCategoryId($request->input('tag_category_id')); |
76 | 76 | } |
77 | 77 |
@@ -59,13 +59,13 @@ |
||
59 | 59 | */ |
60 | 60 | public function update(UserTagCategory $userTagCategory, UserTagCategoryUpdateRequest $request) |
61 | 61 | { |
62 | - if($request->input('name') !== null) { |
|
62 | + if ($request->input('name') !== null) { |
|
63 | 63 | $userTagCategory->setName($request->input('name')); |
64 | 64 | } |
65 | - if($request->input('description') !== null) { |
|
65 | + if ($request->input('description') !== null) { |
|
66 | 66 | $userTagCategory->setDescription($request->input('description')); |
67 | 67 | } |
68 | - if($request->input('reference') !== null) { |
|
68 | + if ($request->input('reference') !== null) { |
|
69 | 69 | $userTagCategory->setReference($request->input('reference')); |
70 | 70 | } |
71 | 71 |
@@ -62,16 +62,16 @@ |
||
62 | 62 | */ |
63 | 63 | public function update(RoleTag $roleTag, RoleTagUpdateRequest $request) |
64 | 64 | { |
65 | - if($request->input('name') !== null) { |
|
65 | + if ($request->input('name') !== null) { |
|
66 | 66 | $roleTag->setName($request->input('name')); |
67 | 67 | } |
68 | - if($request->input('description') !== null) { |
|
68 | + if ($request->input('description') !== null) { |
|
69 | 69 | $roleTag->setDescription($request->input('description')); |
70 | 70 | } |
71 | - if($request->input('reference') !== null) { |
|
71 | + if ($request->input('reference') !== null) { |
|
72 | 72 | $roleTag->setReference($request->input('reference')); |
73 | 73 | } |
74 | - if($request->input('tag_category_id') !== null) { |
|
74 | + if ($request->input('tag_category_id') !== null) { |
|
75 | 75 | $roleTag->setTagCategoryId($request->input('tag_category_id')); |
76 | 76 | } |
77 | 77 |
@@ -34,7 +34,7 @@ |
||
34 | 34 | */ |
35 | 35 | public function show(Position $position) |
36 | 36 | { |
37 | - return $position; |
|
37 | + return $position; |
|
38 | 38 | } |
39 | 39 | |
40 | 40 | /** |
@@ -40,17 +40,17 @@ discard block |
||
40 | 40 | { |
41 | 41 | |
42 | 42 | $search = []; |
43 | - if($request->has('name')) { |
|
43 | + if ($request->has('name')) { |
|
44 | 44 | $search['name'] = $request->input('name'); |
45 | 45 | } |
46 | - if($request->has('description')) { |
|
46 | + if ($request->has('description')) { |
|
47 | 47 | $search['description'] = $request->input('description'); |
48 | 48 | } |
49 | 49 | $dataPositions = $dataPositionRepository->getAllWhere($search); |
50 | 50 | $positions = new Collection(); |
51 | - foreach($dataPositions as $dataPosition) { |
|
51 | + foreach ($dataPositions as $dataPosition) { |
|
52 | 52 | $position = $dataPosition->position(); |
53 | - if($position !== null) { |
|
53 | + if ($position !== null) { |
|
54 | 54 | $positions->push($position); |
55 | 55 | } |
56 | 56 | } |
@@ -82,8 +82,8 @@ discard block |
||
82 | 82 | $request->input('name'), |
83 | 83 | $request->input('description') |
84 | 84 | ); |
85 | - foreach($dataPosition->getAdditionalAttributes() as $additionalAttribute) { |
|
86 | - if($request->has($additionalAttribute)) { |
|
85 | + foreach ($dataPosition->getAdditionalAttributes() as $additionalAttribute) { |
|
86 | + if ($request->has($additionalAttribute)) { |
|
87 | 87 | $dataPosition->saveAdditionalAttribute($additionalAttribute, $request->input($additionalAttribute)); |
88 | 88 | } |
89 | 89 | } |
@@ -104,14 +104,14 @@ discard block |
||
104 | 104 | { |
105 | 105 | $dataPosition = $position->data(); |
106 | 106 | |
107 | - if($request->input('name') !== null) { |
|
107 | + if ($request->input('name') !== null) { |
|
108 | 108 | $dataPosition->setName($request->input('name')); |
109 | 109 | } |
110 | - if($request->input('description') !== null) { |
|
110 | + if ($request->input('description') !== null) { |
|
111 | 111 | $dataPosition->setDescription($request->input('description')); |
112 | 112 | } |
113 | - foreach($dataPosition->getAdditionalAttributes() as $additionalAttribute) { |
|
114 | - if($request->has($additionalAttribute)) { |
|
113 | + foreach ($dataPosition->getAdditionalAttributes() as $additionalAttribute) { |
|
114 | + if ($request->has($additionalAttribute)) { |
|
115 | 115 | $dataPosition->saveAdditionalAttribute($additionalAttribute, $request->input($additionalAttribute)); |
116 | 116 | } |
117 | 117 | } |
@@ -59,13 +59,13 @@ |
||
59 | 59 | */ |
60 | 60 | public function update(GroupTagCategory $groupTagCategory, GroupTagCategoryUpdateRequest $request) |
61 | 61 | { |
62 | - if($request->input('name') !== null) { |
|
62 | + if ($request->input('name') !== null) { |
|
63 | 63 | $groupTagCategory->setName($request->input('name')); |
64 | 64 | } |
65 | - if($request->input('description') !== null) { |
|
65 | + if ($request->input('description') !== null) { |
|
66 | 66 | $groupTagCategory->setDescription($request->input('description')); |
67 | 67 | } |
68 | - if($request->input('reference') !== null) { |
|
68 | + if ($request->input('reference') !== null) { |
|
69 | 69 | $groupTagCategory->setReference($request->input('reference')); |
70 | 70 | } |
71 | 71 |