Passed
Push — master ( 63322c...9e1e97 )
by Vladislav
04:25 queued 02:07
created
src/Core/Objects/AbstractParameters.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -20,7 +20,7 @@  discard block
 block discarded – undo
20 20
         $entityMethods = get_class_methods($this);
21 21
         $params = [];
22 22
 
23
-        array_walk($entityMethods, function ($method) use (&$entity, &$params) {
23
+        array_walk($entityMethods, function($method) use (&$entity, &$params) {
24 24
             if (substr($method, 0, 3) == 'get') {
25 25
                 $entityProperty = lcfirst(substr($method, 3));
26 26
                 if (isset($entity->$entityProperty)) {
@@ -35,7 +35,7 @@  discard block
 block discarded – undo
35 35
 
36 36
                     $propIndex = array_search($entityProperty, $entity->requiredFields, true);
37 37
 
38
-                    if($propIndex > -1) {
38
+                    if ($propIndex > -1) {
39 39
                         unset($entity->requiredFields[$propIndex]);
40 40
                     }
41 41
 
Please login to merge, or discard this patch.
src/Core/Objects/SuccessResponse.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -47,7 +47,7 @@
 block discarded – undo
47 47
     protected function draw(array $result, string $responseClassName): AbstractResponse
48 48
     {
49 49
         $collection = new EntityCollection();
50
-        array_walk($result, function ($item) use ($collection, $responseClassName) {
50
+        array_walk($result, function($item) use ($collection, $responseClassName) {
51 51
             $collection->push(ResponseDtoBuilder::make($responseClassName, $item));
52 52
         });
53 53
 
Please login to merge, or discard this patch.
src/Core/Request/Curl.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -52,7 +52,7 @@
 block discarded – undo
52 52
 
53 53
         $this->addCurlOpt(CURLOPT_HTTPHEADER, $this->curlHeaders);
54 54
 
55
-        array_walk($this->curlOptions, function ($value, $option, $curl) {
55
+        array_walk($this->curlOptions, function($value, $option, $curl) {
56 56
             curl_setopt($curl, $option, $value);
57 57
         }, $curl);
58 58
 
Please login to merge, or discard this patch.
src/Core/Request/PostRequest.php 1 patch
Indentation   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -17,13 +17,13 @@
 block discarded – undo
17 17
         $bodyParams = $this->buildRequestParams($params);
18 18
 
19 19
         $this->addCurlOpt(CURLOPT_URL, "{$this->credentials->getHost()}{$endpoint}")
20
-             ->addCurlOpt(CURLOPT_CUSTOMREQUEST, EnumHttpMethods::POST)
21
-             ->addCurlOpt(CURLOPT_ENCODING, '')
22
-             ->addCurlOpt(CURLOPT_MAXREDIRS, 10)
23
-             ->addCurlOpt(CURLOPT_TIMEOUT, 0)
24
-             ->addCurlOpt(CURLOPT_FOLLOWLOCATION, true)
25
-             ->addCurlOpt(CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_1)
26
-             ->addCurlOpt(CURLOPT_POSTFIELDS, $bodyParams);
20
+                ->addCurlOpt(CURLOPT_CUSTOMREQUEST, EnumHttpMethods::POST)
21
+                ->addCurlOpt(CURLOPT_ENCODING, '')
22
+                ->addCurlOpt(CURLOPT_MAXREDIRS, 10)
23
+                ->addCurlOpt(CURLOPT_TIMEOUT, 0)
24
+                ->addCurlOpt(CURLOPT_FOLLOWLOCATION, true)
25
+                ->addCurlOpt(CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_1)
26
+                ->addCurlOpt(CURLOPT_POSTFIELDS, $bodyParams);
27 27
 
28 28
         $this->auth($bodyParams);
29 29
 
Please login to merge, or discard this patch.
src/Core/Request/GetRequest.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -17,7 +17,7 @@
 block discarded – undo
17 17
         $queryString = $this->buildRequestParams($queryParams);
18 18
         $url = $this->credentials->getHost() . $endpoint . '?' . $queryString;
19 19
         $this->addCurlOpt(CURLOPT_URL, $this->credentials->getHost() . $endpoint . '?' . $queryString)
20
-             ->addCurlOpt(CURLOPT_CUSTOMREQUEST, EnumHttpMethods::GET);
20
+                ->addCurlOpt(CURLOPT_CUSTOMREQUEST, EnumHttpMethods::GET);
21 21
 
22 22
         $this->auth($queryString);
23 23
 
Please login to merge, or discard this patch.
src/Core/Objects/WebSockets/WebSocketsPublicChannel.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -42,16 +42,16 @@
 block discarded – undo
42 42
      */
43 43
     public function execute(): void
44 44
     {
45
-        $this->worker->onWorkerStart = function () {
46
-            $connection = new AsyncTcpConnection($this->hostStream.'/'.self::CHANNEL_ACCESS.'/'.$this->streamType);
45
+        $this->worker->onWorkerStart = function() {
46
+            $connection = new AsyncTcpConnection($this->hostStream . '/' . self::CHANNEL_ACCESS . '/' . $this->streamType);
47 47
             $connection->transport = 'ssl';
48
-            $connection->onConnect = function ($connection) {
48
+            $connection->onConnect = function($connection) {
49 49
                 $connection->send(json_encode(["op" => $this->operation, "args" => $this->topic]));
50 50
             };
51 51
 
52 52
             $callback = $this->callback;
53 53
 
54
-            $connection->onMessage = function ($connection, $message) use ($callback) {
54
+            $connection->onMessage = function($connection, $message) use ($callback) {
55 55
                 $message = json_decode($message, true);
56 56
 
57 57
                 // Default DTO
Please login to merge, or discard this patch.
src/Core/Helpers/StringHelper.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -15,7 +15,7 @@
 block discarded – undo
15 15
      */
16 16
     public static function assign($value, $defaultValue = null)
17 17
     {
18
-        return (string) $value ?? $defaultValue;
18
+        return (string)$value ?? $defaultValue;
19 19
     }
20 20
 
21 21
     /**
Please login to merge, or discard this patch.
src/Core/Helpers/NumericHelper.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -39,7 +39,7 @@
 block discarded – undo
39 39
 
40 40
     public static function assign($value, $defaultValue = 0): int
41 41
     {
42
-        return (int) $value ?? $defaultValue;
42
+        return (int)$value ?? $defaultValue;
43 43
     }
44 44
 
45 45
     /**
Please login to merge, or discard this patch.