@@ -108,6 +108,9 @@ |
||
108 | 108 | return $data; |
109 | 109 | } |
110 | 110 | |
111 | + /** |
|
112 | + * @param string $text |
|
113 | + */ |
|
111 | 114 | private function returnText($text) |
112 | 115 | { |
113 | 116 | return response($text, 200) |
@@ -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(); |