@@ -92,7 +92,6 @@ |
||
| 92 | 92 | /** |
| 93 | 93 | * Remove the specified resource from storage. |
| 94 | 94 | * |
| 95 | - * @param int $id |
|
| 96 | 95 | * |
| 97 | 96 | * @return Response |
| 98 | 97 | */ |
@@ -113,7 +113,7 @@ discard block |
||
| 113 | 113 | /** |
| 114 | 114 | * Store a newly created resource in storage. |
| 115 | 115 | * |
| 116 | - * @return Response |
|
| 116 | + * @return \Illuminate\Http\RedirectResponse |
|
| 117 | 117 | */ |
| 118 | 118 | public function store(Request $request) |
| 119 | 119 | { |
@@ -155,7 +155,7 @@ discard block |
||
| 155 | 155 | * |
| 156 | 156 | * @param int $id |
| 157 | 157 | * |
| 158 | - * @return Response |
|
| 158 | + * @return \Illuminate\Http\RedirectResponse|null |
|
| 159 | 159 | */ |
| 160 | 160 | public function update($id, Request $request) |
| 161 | 161 | { |
@@ -171,7 +171,6 @@ discard block |
||
| 171 | 171 | /** |
| 172 | 172 | * Remove the specified resource from storage. |
| 173 | 173 | * |
| 174 | - * @param int $id |
|
| 175 | 174 | * |
| 176 | 175 | * @return Response |
| 177 | 176 | */ |
@@ -99,7 +99,7 @@ discard block |
||
| 99 | 99 | /** |
| 100 | 100 | * Store a newly created resource in storage. |
| 101 | 101 | * |
| 102 | - * @return Response |
|
| 102 | + * @return \Illuminate\Http\RedirectResponse |
|
| 103 | 103 | */ |
| 104 | 104 | public function store(PromotionRequest $request) |
| 105 | 105 | { |
@@ -169,7 +169,7 @@ discard block |
||
| 169 | 169 | * |
| 170 | 170 | * @param int $id |
| 171 | 171 | * |
| 172 | - * @return Response |
|
| 172 | + * @return \Illuminate\Http\RedirectResponse |
|
| 173 | 173 | */ |
| 174 | 174 | public function update($id, PromotionRequest $request) |
| 175 | 175 | { |
@@ -196,7 +196,6 @@ discard block |
||
| 196 | 196 | /** |
| 197 | 197 | * Remove the specified resource from storage. |
| 198 | 198 | * |
| 199 | - * @param int $id |
|
| 200 | 199 | * |
| 201 | 200 | * @return Response |
| 202 | 201 | */ |
@@ -92,7 +92,7 @@ discard block |
||
| 92 | 92 | /** |
| 93 | 93 | * Store a newly created resource in storage. |
| 94 | 94 | * |
| 95 | - * @return Response |
|
| 95 | + * @return \Illuminate\Http\RedirectResponse |
|
| 96 | 96 | */ |
| 97 | 97 | public function store(TaxRequest $request) |
| 98 | 98 | { |
@@ -140,7 +140,7 @@ discard block |
||
| 140 | 140 | * |
| 141 | 141 | * @param int $id |
| 142 | 142 | * |
| 143 | - * @return Response |
|
| 143 | + * @return \Illuminate\Http\RedirectResponse |
|
| 144 | 144 | */ |
| 145 | 145 | public function update($id, Request $request) |
| 146 | 146 | { |
@@ -157,7 +157,6 @@ discard block |
||
| 157 | 157 | /** |
| 158 | 158 | * Remove the specified resource from storage. |
| 159 | 159 | * |
| 160 | - * @param int $id |
|
| 161 | 160 | * |
| 162 | 161 | * @return Response |
| 163 | 162 | */ |
@@ -296,7 +296,7 @@ |
||
| 296 | 296 | * @param string $path |
| 297 | 297 | * @param array $parameters |
| 298 | 298 | * |
| 299 | - * @return array|object |
|
| 299 | + * @return resource |
|
| 300 | 300 | */ |
| 301 | 301 | private function http($method, $host, $path, array $parameters) |
| 302 | 302 | { |
@@ -645,6 +645,9 @@ discard block |
||
| 645 | 645 | } |
| 646 | 646 | } |
| 647 | 647 | |
| 648 | + /** |
|
| 649 | + * @param string $rate |
|
| 650 | + */ |
|
| 648 | 651 | public function calculateTotal($rate, $total) |
| 649 | 652 | { |
| 650 | 653 | try { |
@@ -670,7 +673,6 @@ discard block |
||
| 670 | 673 | /** |
| 671 | 674 | * Remove the specified resource from storage. |
| 672 | 675 | * |
| 673 | - * @param int $id |
|
| 674 | 676 | * |
| 675 | 677 | * @return Response |
| 676 | 678 | */ |
@@ -769,6 +771,9 @@ discard block |
||
| 769 | 771 | } |
| 770 | 772 | } |
| 771 | 773 | |
| 774 | + /** |
|
| 775 | + * @param string $payment_status |
|
| 776 | + */ |
|
| 772 | 777 | public function updateInvoicePayment($invoiceid, $payment_method, $payment_status, $payment_date, $amount) |
| 773 | 778 | { |
| 774 | 779 | try { |
@@ -21,6 +21,9 @@ discard block |
||
| 21 | 21 | private $end; |
| 22 | 22 | private $type; |
| 23 | 23 | |
| 24 | + /** |
|
| 25 | + * @param string $start |
|
| 26 | + */ |
|
| 24 | 27 | public function __construct($start, $end = '') |
| 25 | 28 | { |
| 26 | 29 | $this->start = $start; |
@@ -39,6 +42,9 @@ discard block |
||
| 39 | 42 | $this->end = ''; |
| 40 | 43 | } |
| 41 | 44 | |
| 45 | + /** |
|
| 46 | + * @param string $add |
|
| 47 | + */ |
|
| 42 | 48 | public function set_type($add) |
| 43 | 49 | { |
| 44 | 50 | $this->type = $add; |
@@ -455,6 +461,9 @@ discard block |
||
| 455 | 461 | |
| 456 | 462 | protected $attributes; |
| 457 | 463 | |
| 464 | + /** |
|
| 465 | + * @param string $name |
|
| 466 | + */ |
|
| 458 | 467 | public function add_top_attribute($name, $string) |
| 459 | 468 | { |
| 460 | 469 | $this->attributes[$name] = $string; |
@@ -1019,6 +1028,9 @@ discard block |
||
| 1019 | 1028 | $this->request->set_filters([]); |
| 1020 | 1029 | } |
| 1021 | 1030 | |
| 1031 | + /** |
|
| 1032 | + * @param FilterInterface $wrap |
|
| 1033 | + */ |
|
| 1022 | 1034 | protected function apply_filters($wrap) |
| 1023 | 1035 | { |
| 1024 | 1036 | for ($i = 0; $i < count($this->filters); $i++) { |
@@ -1032,6 +1044,9 @@ discard block |
||
| 1032 | 1044 | $this->sorts[] = ['name' => $name, 'direction' => $direction]; |
| 1033 | 1045 | } |
| 1034 | 1046 | |
| 1047 | + /** |
|
| 1048 | + * @param SortInterface $wrap |
|
| 1049 | + */ |
|
| 1035 | 1050 | protected function apply_sorts($wrap) |
| 1036 | 1051 | { |
| 1037 | 1052 | for ($i = 0; $i < count($this->sorts); $i++) { |
@@ -67,6 +67,10 @@ |
||
| 67 | 67 | self::$eventsStatic[$name][] = $method; |
| 68 | 68 | } |
| 69 | 69 | |
| 70 | + /** |
|
| 71 | + * @param string $name |
|
| 72 | + * @param Connector $method |
|
| 73 | + */ |
|
| 70 | 74 | public static function trigger_static($name, $method) |
| 71 | 75 | { |
| 72 | 76 | $arg_list = func_get_args(); |
@@ -190,6 +190,9 @@ |
||
| 190 | 190 | die(); |
| 191 | 191 | } |
| 192 | 192 | |
| 193 | + /** |
|
| 194 | + * @param boolean $edit |
|
| 195 | + */ |
|
| 193 | 196 | public static function checkCSRF($edit) |
| 194 | 197 | { |
| 195 | 198 | if (self::$security_key) { |