Passed
Branch master (17ee61)
by Petr
07:54
created
php-tests/BasicTests/SourcesTest.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -13,7 +13,7 @@  discard block
 block discarded – undo
13 13
     {
14 14
         $source = new Sources\Sources();
15 15
         $source->setAddress('//abc/def//ghi/jkl');
16
-        $this->assertEquals('/abc/def//ghi/jkl', (string)$source);
16
+        $this->assertEquals('/abc/def//ghi/jkl', (string) $source);
17 17
         $source->setPath('//abc/def//ghi/jkl');
18 18
         $this->assertEquals('//abc/def//ghi/jkl', $source->getPath());
19 19
     }
@@ -21,17 +21,17 @@  discard block
 block discarded – undo
21 21
     public function testAddress()
22 22
     {
23 23
         $source = new Sources\Address('//abc/def//ghi/jkl');
24
-        $this->assertEquals('/abc/def//ghi/jkl', (string)$source);
24
+        $this->assertEquals('/abc/def//ghi/jkl', (string) $source);
25 25
     }
26 26
 
27 27
     public function testArrayAccess()
28 28
     {
29 29
         $array = new \ArrayObject();
30 30
         $source1 = new Sources\InputArray($array, 'tester');
31
-        $this->assertEmpty('', (string)$source1);
31
+        $this->assertEmpty('', (string) $source1);
32 32
 
33 33
         $array->offsetSet('tester', '//abc/def//ghi/jkl');
34 34
         $source2 = new Sources\InputArray($array, 'tester');
35
-        $this->assertEquals('/abc/def//ghi/jkl', (string)$source2);
35
+        $this->assertEquals('/abc/def//ghi/jkl', (string) $source2);
36 36
     }
37 37
 }
Please login to merge, or discard this patch.
examples/PageLink.php 2 patches
Indentation   -1 removed lines patch added patch discarded remove patch
@@ -25,7 +25,6 @@
 block discarded – undo
25 25
 
26 26
 $urlLink->setPageNumber(3);
27 27
 echo $urlLink->getPageLink(); // got page 3
28
-
29 28
  */
30 29
 class PageLink
31 30
 {
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -56,7 +56,7 @@
 block discarded – undo
56 56
 
57 57
     public function getPageLink(): string
58 58
     {
59
-        $this->urlVariable->setVariableValue((string)$this->page);
59
+        $this->urlVariable->setVariableValue((string) $this->page);
60 60
         return strval($this->urlHandler->getAddress());
61 61
     }
62 62
 }
Please login to merge, or discard this patch.
examples/Certs.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -42,7 +42,7 @@
 block discarded – undo
42 42
      */
43 43
     public function process(\ArrayAccess $credentials): void
44 44
     {
45
-        $stamp = $credentials->offsetExists('timestamp') ? $credentials->offsetGet('timestamp') : 0 ;
45
+        $stamp = $credentials->offsetExists('timestamp') ? $credentials->offsetGet('timestamp') : 0;
46 46
         if (!empty($stamp)) {
47 47
             // now we have public key and salt from our storage, so it's time to check it
48 48
 
Please login to merge, or discard this patch.
examples/Headers.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -8,7 +8,7 @@
 block discarded – undo
8 8
 $id = '123456789';
9 9
 $forward = new \kalanis\kw_address_handler\Forward();
10 10
 $forward->setLink($link->linkVariant('short/edit/?id=' . $id)); // you go there
11
-$forward->setForward($link->linkVariant('short/dashboard'));    // and from there go here (usually back)
11
+$forward->setForward($link->linkVariant('short/dashboard')); // and from there go here (usually back)
12 12
 echo sprintf('<a href="%s" class="button">%s</a>',
13 13
     $forward->getLink(),
14 14
     strval($id)
Please login to merge, or discard this patch.
php-src/Handler.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -68,7 +68,7 @@  discard block
 block discarded – undo
68 68
      */
69 69
     public function getAddress(): ?string
70 70
     {
71
-        return $this->source ? $this->rebuild()->source->getAddress() : null ;
71
+        return $this->source ? $this->rebuild()->source->getAddress() : null;
72 72
     }
73 73
 
74 74
     protected function rebuild(): self
@@ -111,7 +111,7 @@  discard block
 block discarded – undo
111 111
         $parts              = explode($argSeparator, $queryString);
112 112
 
113 113
         foreach ($parts as $part) {
114
-            list($paramName, $paramValue)   = array_pad(explode('=', $part, 2), 2, '');
114
+            list($paramName, $paramValue) = array_pad(explode('=', $part, 2), 2, '');
115 115
 
116 116
             switch ($decType) {
117 117
                 case PHP_QUERY_RFC3986:
@@ -134,14 +134,14 @@  discard block
 block discarded – undo
134 134
                 $keys           = [$paramName];
135 135
             }
136 136
 
137
-            $target         = &$result;
137
+            $target = &$result;
138 138
 
139 139
             foreach ($keys as $index) {
140 140
                 if ($index === '') {
141 141
                     if (isset($target)) {
142 142
                         if (is_array($target)) {
143
-                            $intKeys        = array_filter(array_keys($target), 'is_int');
144
-                            $index  = count($intKeys) ? max($intKeys)+1 : 0;
143
+                            $intKeys = array_filter(array_keys($target), 'is_int');
144
+                            $index  = count($intKeys) ? max($intKeys) + 1 : 0;
145 145
                         } else {
146 146
                             $target = [$target];
147 147
                             $index  = 1;
@@ -154,7 +154,7 @@  discard block
 block discarded – undo
154 154
                     $target[$index] = [$target[$index]];
155 155
                 }
156 156
 
157
-                $target         = &$target[$index];
157
+                $target = &$target[$index];
158 158
             }
159 159
 
160 160
             if (is_array($target)) {
Please login to merge, or discard this patch.
php-src/Redirect.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
         if (strncmp('cli', PHP_SAPI, 3) !== 0) {
22 22
             if (headers_sent() !== true) {
23 23
                 if ($step) {
24
-                    header( 'Refresh:' . $step . ';url=' . $this->removeNullBytes($redirectTo) );
24
+                    header('Refresh:' . $step . ';url=' . $this->removeNullBytes($redirectTo));
25 25
                 } else {
26 26
                     header('Location: ' . $this->removeNullBytes($redirectTo), true, $targetMethod);
27 27
                     exit(0);
Please login to merge, or discard this patch.