@@ -58,7 +58,7 @@ |
||
| 58 | 58 | /** |
| 59 | 59 | * Get the services provided by the provider. |
| 60 | 60 | * |
| 61 | - * @return array |
|
| 61 | + * @return string[] |
|
| 62 | 62 | */ |
| 63 | 63 | public function provides() |
| 64 | 64 | { |
@@ -5,7 +5,6 @@ |
||
| 5 | 5 | /* Require */ |
| 6 | 6 | use App\Http\Controllers\Controller; |
| 7 | 7 | use Illuminate\Http\Request; |
| 8 | -use Bantenprov\GroupEgovernment\Facades\GroupEgovernmentFacade; |
|
| 9 | 8 | |
| 10 | 9 | /* Models */ |
| 11 | 10 | use Bantenprov\GroupEgovernment\Models\Bantenprov\GroupEgovernment\GroupEgovernment; |
@@ -70,7 +70,7 @@ discard block |
||
| 70 | 70 | /** |
| 71 | 71 | * Show the form for creating a new resource. |
| 72 | 72 | * |
| 73 | - * @return \Illuminate\Http\Response |
|
| 73 | + * @return \Illuminate\Http\JsonResponse |
|
| 74 | 74 | */ |
| 75 | 75 | public function create() |
| 76 | 76 | { |
@@ -89,8 +89,7 @@ discard block |
||
| 89 | 89 | /** |
| 90 | 90 | * Display the specified resource. |
| 91 | 91 | * |
| 92 | - * @param \App\GroupEgovernment $group_egovernment |
|
| 93 | - * @return \Illuminate\Http\Response |
|
| 92 | + * @return \Illuminate\Http\JsonResponse |
|
| 94 | 93 | */ |
| 95 | 94 | public function store(Request $request) |
| 96 | 95 | { |
@@ -132,8 +131,7 @@ discard block |
||
| 132 | 131 | /** |
| 133 | 132 | * Store a newly created resource in storage. |
| 134 | 133 | * |
| 135 | - * @param \Illuminate\Http\Request $request |
|
| 136 | - * @return \Illuminate\Http\Response |
|
| 134 | + * @return \Illuminate\Http\JsonResponse |
|
| 137 | 135 | */ |
| 138 | 136 | public function show($id) |
| 139 | 137 | { |
@@ -149,8 +147,7 @@ discard block |
||
| 149 | 147 | /** |
| 150 | 148 | * Show the form for editing the specified resource. |
| 151 | 149 | * |
| 152 | - * @param \App\GroupEgovernment $group_egovernment |
|
| 153 | - * @return \Illuminate\Http\Response |
|
| 150 | + * @return \Illuminate\Http\JsonResponse |
|
| 154 | 151 | */ |
| 155 | 152 | public function edit($id) |
| 156 | 153 | { |
@@ -169,8 +166,7 @@ discard block |
||
| 169 | 166 | * Update the specified resource in storage. |
| 170 | 167 | * |
| 171 | 168 | * @param \Illuminate\Http\Request $request |
| 172 | - * @param \App\GroupEgovernment $group_egovernment |
|
| 173 | - * @return \Illuminate\Http\Response |
|
| 169 | + * @return \Illuminate\Http\JsonResponse |
|
| 174 | 170 | */ |
| 175 | 171 | public function update(Request $request, $id) |
| 176 | 172 | { |
@@ -225,8 +221,7 @@ discard block |
||
| 225 | 221 | /** |
| 226 | 222 | * Remove the specified resource from storage. |
| 227 | 223 | * |
| 228 | - * @param \App\GroupEgovernment $group_egovernment |
|
| 229 | - * @return \Illuminate\Http\Response |
|
| 224 | + * @return string |
|
| 230 | 225 | */ |
| 231 | 226 | public function destroy($id) |
| 232 | 227 | { |
@@ -77,6 +77,10 @@ |
||
| 77 | 77 | } |
| 78 | 78 | |
| 79 | 79 | /* text color: orange */ |
| 80 | + |
|
| 81 | + /** |
|
| 82 | + * @param string $text |
|
| 83 | + */ |
|
| 80 | 84 | protected function orangeText($text) |
| 81 | 85 | { |
| 82 | 86 | printf($this->ORANGE.$text.$this->NC); |