Completed
Push — master ( cf9760...feaf8d )
by Tomas
02:15 queued 02:13
created
src/Params/ParamsProcessor.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -21,11 +21,11 @@
 block discarded – undo
21 21
     {
22 22
         foreach ($this->params as $param) {
23 23
             $validationResult = $param->validate();
24
-            if (!$validationResult->isOk()) {
24
+            if ( ! $validationResult->isOk()) {
25 25
                 $this->errors[$param->getKey()] = $validationResult->getErrors();
26 26
             }
27 27
         }
28
-        return !empty($this->errors);
28
+        return ! empty($this->errors);
29 29
     }
30 30
 
31 31
     public function getErrors(): array
Please login to merge, or discard this patch.
src/Params/JsonInputParam.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -40,7 +40,7 @@
 block discarded – undo
40 40
             return new ValidationResult(ValidationResult::STATUS_ERROR, [json_last_error_msg()]);
41 41
         }
42 42
 
43
-        if (!$value && $this->isRequired() === self::OPTIONAL) {
43
+        if ( ! $value && $this->isRequired() === self::OPTIONAL) {
44 44
             return new ValidationResult(ValidationResult::STATUS_OK);
45 45
         }
46 46
 
Please login to merge, or discard this patch.
src/Output/JsonOutput.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -25,7 +25,7 @@
 block discarded – undo
25 25
 
26 26
     public function validate(ResponseInterface $response): ValidationResultInterface
27 27
     {
28
-        if (!$response instanceof JsonApiResponse) {
28
+        if ( ! $response instanceof JsonApiResponse) {
29 29
             return new ValidationResult(ValidationResult::STATUS_ERROR);
30 30
         }
31 31
         if ($this->code !== $response->getCode()) {
Please login to merge, or discard this patch.
src/Misc/ConsoleRequest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -205,7 +205,7 @@
 block discarded – undo
205 205
     {
206 206
         $result = [];
207 207
         foreach ($values as $key => $value) {
208
-            if (!is_array($value)) {
208
+            if ( ! is_array($value)) {
209 209
                 $result[$key] = $value;
210 210
                 continue;
211 211
             }
Please login to merge, or discard this patch.
src/Output/RedirectOutput.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -11,7 +11,7 @@
 block discarded – undo
11 11
 {
12 12
     public function validate(ResponseInterface $response): ValidationResultInterface
13 13
     {
14
-        if (!$response instanceof RedirectResponse) {
14
+        if ( ! $response instanceof RedirectResponse) {
15 15
             return new ValidationResult(ValidationResult::STATUS_ERROR);
16 16
         }
17 17
         if ($this->code !== $response->getCode()) {
Please login to merge, or discard this patch.
src/Authorization/BasicAuthentication.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -29,7 +29,7 @@
 block discarded – undo
29 29
     {
30 30
         $urlScript = $this->httpRequest->getUrl();
31 31
         $authentication = $this->authentications[$urlScript->getUser()] ?? null;
32
-        if (!$authentication) {
32
+        if ( ! $authentication) {
33 33
             return false;
34 34
         }
35 35
         return $authentication === $urlScript->getPassword();
Please login to merge, or discard this patch.
src/Authorization/CookieApiKeyAuthentication.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -20,7 +20,7 @@
 block discarded – undo
20 20
     protected function readAuthorizationToken(): ?string
21 21
     {
22 22
         $apiKey = $_COOKIE[$this->cookieName] ?? null;
23
-        if (!$apiKey) {
23
+        if ( ! $apiKey) {
24 24
             $this->errorMessage = 'API key is not set';
25 25
             return null;
26 26
         }
Please login to merge, or discard this patch.
src/Authorization/BearerTokenAuthorization.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -28,7 +28,7 @@
 block discarded – undo
28 28
      */
29 29
     protected function readAuthorizationToken(): ?string
30 30
     {
31
-        if (!isset($_SERVER['HTTP_AUTHORIZATION'])) {
31
+        if ( ! isset($_SERVER['HTTP_AUTHORIZATION'])) {
32 32
             $this->errorMessage = 'Authorization header HTTP_Authorization is not set';
33 33
             return null;
34 34
         }
Please login to merge, or discard this patch.
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -9,7 +9,7 @@
 block discarded – undo
9 9
 
10 10
 class BearerTokenAuthorization extends TokenAuthorization
11 11
 {
12
-   /**
12
+    /**
13 13
      * BearerTokenAuthorization constructor.
14 14
      *
15 15
      * @param TokenRepositoryInterface $tokenRepository
Please login to merge, or discard this patch.
src/Authorization/HeaderApiKeyAuthentication.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -21,7 +21,7 @@
 block discarded – undo
21 21
     {
22 22
         $headerName = 'HTTP_' . strtoupper(str_replace('-', '_', $this->headerName));
23 23
         $apiKey = $_SERVER[$headerName] ?? null;
24
-        if (!$apiKey) {
24
+        if ( ! $apiKey) {
25 25
             $this->errorMessage = 'API key is not set';
26 26
             return null;
27 27
         }
Please login to merge, or discard this patch.