@@ -35,18 +35,18 @@ |
||
35 | 35 | $url = $request->input("url"); |
36 | 36 | |
37 | 37 | if ($blogHash == null || $title == null || $author == null || $url == null) { |
38 | - $returnArray["error-code"] = "invalid-request"; |
|
38 | + $returnArray[ "error-code" ] = "invalid-request"; |
|
39 | 39 | $returnStatus = 400; |
40 | 40 | } |
41 | 41 | } else if ($method == "PUT" && $requestPath == "/api/article") { |
42 | 42 | $hash = $request->input("hash"); |
43 | 43 | $articleResult = $article->where("hash", $hash)->first(); |
44 | 44 | if ($articleResult == null) { |
45 | - $returnArray["error-code"] = "article-not-found"; |
|
45 | + $returnArray[ "error-code" ] = "article-not-found"; |
|
46 | 46 | $returnStatus = 404; |
47 | 47 | } |
48 | 48 | } else { |
49 | - $returnArray["error-code"] = "request-not-found"; |
|
49 | + $returnArray[ "error-code" ] = "request-not-found"; |
|
50 | 50 | $returnStatus = 400; |
51 | 51 | } |
52 | 52 |