Completed
Pull Request — master (#165)
by
unknown
11:58
created
src/Params/GetInputParam.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -10,7 +10,7 @@
 block discarded – undo
10 10
 
11 11
     public function getValue()
12 12
     {
13
-        if (!filter_has_var(INPUT_GET, $this->key) && isset($_GET[$this->key])) {
13
+        if ( ! filter_has_var(INPUT_GET, $this->key) && isset($_GET[$this->key])) {
14 14
             return $_GET[$this->key];
15 15
         }
16 16
 
Please login to merge, or discard this patch.
src/Component/ApiListingControl.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -50,7 +50,7 @@
 block discarded – undo
50 50
         $versionHandlers = [];
51 51
         foreach ($handlers as $handler) {
52 52
             $endPoint = $handler->getEndpoint();
53
-            if (!isset($versionHandlers[$endPoint->getVersion()])) {
53
+            if ( ! isset($versionHandlers[$endPoint->getVersion()])) {
54 54
                 $versionHandlers[$endPoint->getVersion()] = [];
55 55
             }
56 56
 
Please login to merge, or discard this patch.
src/Link/ApiLinkMacro.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -29,7 +29,7 @@  discard block
 block discarded – undo
29 29
 
30 30
         if (count($args) < 3) {
31 31
             $message = "Invalid link destination, too few arguments.";
32
-            if (!Debugger::$productionMode) {
32
+            if ( ! Debugger::$productionMode) {
33 33
                 throw new InvalidLinkException($message);
34 34
             }
35 35
 
@@ -46,8 +46,8 @@  discard block
 block discarded – undo
46 46
         ];
47 47
 
48 48
         return $writer->write('echo ($this->filters->apiLink)((new Tomaj\NetteApi\EndpointIdentifier(' .
49
-            $arguments['method']  . ', ' .
50
-            $arguments['version']  . ', ' .
49
+            $arguments['method'] . ', ' .
50
+            $arguments['version'] . ', ' .
51 51
             $arguments['package'] . ', ' .
52 52
             $arguments['action'] . ')), ' . $arguments['params'] . ')');
53 53
     }
Please login to merge, or discard this patch.
src/ApiDecider.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -62,7 +62,7 @@  discard block
 block discarded – undo
62 62
 
63 63
     public function enableGlobalPreflight(?CorsPreflightHandlerInterface $corsHandler = null)
64 64
     {
65
-        if (!$corsHandler) {
65
+        if ( ! $corsHandler) {
66 66
             $corsHandler = new CorsPreflightHandler(new Response());
67 67
         }
68 68
 
@@ -100,7 +100,7 @@  discard block
 block discarded – undo
100 100
     private function getHandler(Api $api): ApiHandlerInterface
101 101
     {
102 102
         $handler = $api->getHandler();
103
-        if (!is_string($handler)) {
103
+        if ( ! is_string($handler)) {
104 104
             return $handler;
105 105
         }
106 106
 
Please login to merge, or discard this patch.