@@ -89,6 +89,9 @@ |
||
89 | 89 | } |
90 | 90 | } |
91 | 91 | |
92 | + /** |
|
93 | + * @return Category |
|
94 | + */ |
|
92 | 95 | private function createOrGetCategory($name) |
93 | 96 | { |
94 | 97 | $existingCategory = Category::whereName($name)->first(); |
@@ -36,6 +36,9 @@ |
||
36 | 36 | return $this->belongsTo(TransactionType::class); |
37 | 37 | } |
38 | 38 | |
39 | + /** |
|
40 | + * @param string $filePath |
|
41 | + */ |
|
39 | 42 | public function addAttachment($filePath, $preventOriginal = false) |
40 | 43 | { |
41 | 44 | $fileName = basename($filePath); |
@@ -206,6 +206,9 @@ |
||
206 | 206 | return $this->returnText(Constants::$operation_succeded); |
207 | 207 | } |
208 | 208 | |
209 | + /** |
|
210 | + * @param string $text |
|
211 | + */ |
|
209 | 212 | private function returnText($text) |
210 | 213 | { |
211 | 214 | return response($text, 200) |