Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/cydrobolt/polr.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChaoyi Zha <summermontreal@gmail.com>2017-03-20 23:39:46 +0300
committerChaoyi Zha <summermontreal@gmail.com>2017-03-20 23:39:46 +0300
commit861665f4d778b4d4d675d48ead523f7e769551c9 (patch)
tree048539bc9397cc2dc7936866ad90c8112787072b
parent65794f83d72161bf6330ba04107035692d9ad261 (diff)
Remove unnecessary comments
-rw-r--r--app/Exceptions/Api/ApiException.php2
-rw-r--r--app/Http/Controllers/Api/ApiLinkController.php1
2 files changed, 0 insertions, 3 deletions
diff --git a/app/Exceptions/Api/ApiException.php b/app/Exceptions/Api/ApiException.php
index d2f36a6..884d1a1 100644
--- a/app/Exceptions/Api/ApiException.php
+++ b/app/Exceptions/Api/ApiException.php
@@ -14,8 +14,6 @@ class ApiException extends \Exception {
* @return mixed
*/
public function __construct($text_code='SERVER_ERROR', $message, $status_code = 0, $response_type='plain_text', Exception $previous = null) {
- // TODO special Polr error codes for JSON
-
$this->response_type = $response_type;
$this->text_code = $text_code;
parent::__construct($message, $status_code, $previous);
diff --git a/app/Http/Controllers/Api/ApiLinkController.php b/app/Http/Controllers/Api/ApiLinkController.php
index d4c72f2..063ce6e 100644
--- a/app/Http/Controllers/Api/ApiLinkController.php
+++ b/app/Http/Controllers/Api/ApiLinkController.php
@@ -9,7 +9,6 @@ use App\Exceptions\Api\ApiException;
class ApiLinkController extends ApiController {
public function shortenLink(Request $request) {
$response_type = $request->input('response_type');
- // $user = self::getApiUserInfo($request);
$user = $request->user;
// Validate parameters