Procházet zdrojové kódy

fixed som php storm warnings

develop
Robin Thoni před 8 roky
rodič
revize
2e2c925d3e

+ 2
- 1
src/Utils/Controller/LuticateApplication.php Zobrazit soubor

@@ -16,7 +16,6 @@ use Ratchet\MessageComponentInterface;
16 16
 use Ratchet\Http\HttpServer;
17 17
 use Ratchet\Server\IoServer;
18 18
 use Ratchet\WebSocket\WsServer;
19
-use Illuminate\Database\Capsule\Manager as Capsule;
20 19
 
21 20
 class LuticateApplication implements MessageComponentInterface
22 21
 {
@@ -81,7 +80,9 @@ class LuticateApplication implements MessageComponentInterface
81 80
     
82 81
     public function setupRoutes()
83 82
     {
83
+        /** @noinspection PhpUnusedLocalVariableInspection */
84 84
         $app = $this;
85
+        /** @noinspection PhpIncludeInspection */
85 86
         require_once __DIR__ . '/../../../../../../app/routes.php';
86 87
         
87 88
         $this->_router->setup();

+ 5
- 1
src/Utils/DataAccess/LuRequest.php Zobrazit soubor

@@ -12,6 +12,7 @@ namespace Luticate\Utils\DataAccess;
12 12
 use GuzzleHttp\Client;
13 13
 use GuzzleHttp\Exception\ClientException;
14 14
 use GuzzleHttp\Exception\RequestException;
15
+use Luticate\Utils\Business\LuBusinessException;
15 16
 use Luticate\Utils\Business\LuLog;
16 17
 use Luticate\Utils\Dbo\LuRequestDbo;
17 18
 
@@ -51,6 +52,9 @@ class LuRequest
51 52
         }
52 53
         if (!is_null($response)) {
53 54
             $body = json_decode($response->getBody(), true);
55
+            /**
56
+             * @var $request LuRequestDbo
57
+             */
54 58
             $request = LuRequestDbo::jsonDeserialize($body);
55 59
             $request->setStatusCode($response->getStatusCode());
56 60
             return $request;
@@ -65,7 +69,7 @@ class LuRequest
65 69
     {
66 70
         $response = LuRequest::request($method, $url, $get, $post, $headers);
67 71
         if ($response->getStatusCode() != 200) {
68
-            abort($response->getStatusCode(), $response->getMessage());
72
+            throw new LuBusinessException($response->getMessage(), $response->getStatusCode());
69 73
         }
70 74
         return $response->getData();
71 75
     }

+ 0
- 1
src/Utils/DataAccess/PgSqlDataAccess.php Zobrazit soubor

@@ -259,7 +259,6 @@ ORDER BY parameters.ordinal_position;");
259 259
                     "data_type" => $sp["data_type"],
260 260
                     "parameter_mode" => "OUT"
261 261
                 );
262
-                $out_count = 1;
263 262
             }
264 263
             return $sps;
265 264
         }

Načítá se…
Zrušit
Uložit