Passed
Push — master ( 62264f...226050 )
by Petr
08:16
created
php-src/output_kw/php-src/Html/TAppend.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -7,6 +7,6 @@
 block discarded – undo
7 7
 {
8 8
     protected function appendContent(string $key, string $content): void
9 9
     {
10
-        $this->items[$key]->setValue( $this->items[$key]->getValue() . $content );
10
+        $this->items[$key]->setValue($this->items[$key]->getValue() . $content);
11 11
     }
12 12
 }
Please login to merge, or discard this patch.
php-src/output_json/JsonRenderer.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -139,9 +139,9 @@
 block discarded – undo
139 139
 
140 140
         $pages = [];
141 141
         $pages['first'] = $this->positions->getFirstPage();
142
-        $pages['prev'] = $this->positions->prevPageExists() ? $this->positions->getPrevPage() : $this->positions->getFirstPage() ;
142
+        $pages['prev'] = $this->positions->prevPageExists() ? $this->positions->getPrevPage() : $this->positions->getFirstPage();
143 143
         $pages['actual'] = $pager->getActualPage();
144
-        $pages['next'] = $this->positions->nextPageExists() ? $this->positions->getNextPage() : $this->positions->getLastPage() ;
144
+        $pages['next'] = $this->positions->nextPageExists() ? $this->positions->getNextPage() : $this->positions->getLastPage();
145 145
         $pages['last'] = $this->positions->getLastPage();
146 146
 
147 147
         $results = [];
Please login to merge, or discard this patch.
php-src/core/Table.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -202,7 +202,7 @@  discard block
 block discarded – undo
202 202
 
203 203
     public function getFormName(): string
204 204
     {
205
-        return $this->headerFilter ? $this->headerFilter->getFormName() : ( $this->footerFilter ? $this->footerFilter->getFormName() : '' );
205
+        return $this->headerFilter ? $this->headerFilter->getFormName() : ($this->footerFilter ? $this->footerFilter->getFormName() : '');
206 206
     }
207 207
 
208 208
     public function setOutput(Table\AOutput $output): void
@@ -238,7 +238,7 @@  discard block
 block discarded – undo
238 238
      */
239 239
     public function getColumn(int $position): ?IColumn
240 240
     {
241
-        return $this->columns[$position] ?? null ;
241
+        return $this->columns[$position] ?? null;
242 242
     }
243 243
 
244 244
     /**
Please login to merge, or discard this patch.
php-src/core/Table/Columns/AColumn.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -48,7 +48,7 @@  discard block
 block discarded – undo
48 48
      */
49 49
     public function getHeaderText(): string
50 50
     {
51
-        return is_null($this->headerText) ? $this->getFilterName() : $this->headerText ;
51
+        return is_null($this->headerText) ? $this->getFilterName() : $this->headerText;
52 52
     }
53 53
 
54 54
     public function translate(IRow $source): string
@@ -58,7 +58,7 @@  discard block
 block discarded – undo
58 58
 
59 59
     public function getFilterName(): string
60 60
     {
61
-        return empty($this->filterName) ? strval($this->getSourceName()) : $this->filterName ;
61
+        return empty($this->filterName) ? strval($this->getSourceName()) : $this->filterName;
62 62
     }
63 63
 
64 64
     /**
Please login to merge, or discard this patch.
php-src/core/Table/Rules/DataSourceSet.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -94,6 +94,6 @@
 block discarded – undo
94 94
     {
95 95
         return is_object($data)
96 96
             ? ($data instanceof IRow ? $data->getValue($key) : $data->$key)
97
-            : (is_array($data) ? $data[$key] : null );
97
+            : (is_array($data) ? $data[$key] : null);
98 98
     }
99 99
 }
Please login to merge, or discard this patch.
php-src/core/Table/Rules/REval.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -18,7 +18,7 @@
 block discarded – undo
18 18
     {
19 19
         if (preg_match('/([^\s]+)\s(.*)/i', strval($this->base), $matches)) {
20 20
             return $this->compare($value, $matches[1], $matches[2]);
21
-        } elseif(preg_match('/(<|>|<=|>=|=|==)(.*)/i', strval($this->base), $matches)) {
21
+        } elseif (preg_match('/(<|>|<=|>=|=|==)(.*)/i', strval($this->base), $matches)) {
22 22
             return $this->compare($value, $matches[1], $matches[2]);
23 23
         } else {
24 24
             throw new TableException('Unrecognized expression pattern');
Please login to merge, or discard this patch.
php-src/core/Connector/PageLink.php 1 patch
Indentation   -1 removed lines patch added patch discarded remove patch
@@ -34,7 +34,6 @@
 block discarded – undo
34 34
 
35 35
 $urlLink->setPageNumber(3);
36 36
 echo $urlLink->getPageLink(); // got page 3 -> okay
37
-
38 37
  */
39 38
 class PageLink implements ILink
40 39
 {
Please login to merge, or discard this patch.
php-src/form_nette/Controls/Range.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -112,7 +112,7 @@
 block discarded – undo
112 112
 
113 113
     public static function register(?string $inputFormat = null, ?string $searchFormat = null)
114 114
     {
115
-        Container::extensionMethod('addRange', function ($container, $name, $label = null, $maxLength = null) use ($inputFormat, $searchFormat) {
115
+        Container::extensionMethod('addRange', function($container, $name, $label = null, $maxLength = null) use ($inputFormat, $searchFormat) {
116 116
             $picker = $container[$name] = new Range($name, $label, $maxLength);
117 117
 
118 118
             if (null !== $inputFormat)
Please login to merge, or discard this patch.
Braces   +6 added lines, -4 removed lines patch added patch discarded remove patch
@@ -115,10 +115,12 @@
 block discarded – undo
115 115
         Container::extensionMethod('addRange', function ($container, $name, $label = null, $maxLength = null) use ($inputFormat, $searchFormat) {
116 116
             $picker = $container[$name] = new Range($name, $label, $maxLength);
117 117
 
118
-            if (null !== $inputFormat)
119
-                $picker->setInputFormat($inputFormat);
120
-            if (null !== $searchFormat)
121
-                $picker->setSearchFormat($searchFormat);
118
+            if (null !== $inputFormat) {
119
+                            $picker->setInputFormat($inputFormat);
120
+            }
121
+            if (null !== $searchFormat) {
122
+                            $picker->setSearchFormat($searchFormat);
123
+            }
122 124
 
123 125
             return $picker;
124 126
         });
Please login to merge, or discard this patch.
php-src/form_nette/Controls/DateRange.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -131,7 +131,7 @@
 block discarded – undo
131 131
 
132 132
     public static function register(?string $inputFormat = null, ?string $searchFormat = null)
133 133
     {
134
-        Container::extensionMethod('addTbDateRange', function ($container, $name, $label = null, $maxLength = null) use ($inputFormat, $searchFormat) {
134
+        Container::extensionMethod('addTbDateRange', function($container, $name, $label = null, $maxLength = null) use ($inputFormat, $searchFormat) {
135 135
             $picker = $container[$name] = new DateRange($name, $label, $maxLength);
136 136
 
137 137
             if (null !== $inputFormat)
Please login to merge, or discard this patch.
Braces   +6 added lines, -4 removed lines patch added patch discarded remove patch
@@ -134,10 +134,12 @@
 block discarded – undo
134 134
         Container::extensionMethod('addTbDateRange', function ($container, $name, $label = null, $maxLength = null) use ($inputFormat, $searchFormat) {
135 135
             $picker = $container[$name] = new DateRange($name, $label, $maxLength);
136 136
 
137
-            if (null !== $inputFormat)
138
-                $picker->setInputFormat($inputFormat);
139
-            if (null !== $searchFormat)
140
-                $picker->setSearchFormat($searchFormat);
137
+            if (null !== $inputFormat) {
138
+                            $picker->setInputFormat($inputFormat);
139
+            }
140
+            if (null !== $searchFormat) {
141
+                            $picker->setSearchFormat($searchFormat);
142
+            }
141 143
 
142 144
             return $picker;
143 145
         });
Please login to merge, or discard this patch.