Passed
Push — master ( 226050...023ffc )
by Petr
08:26
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/form_nette/Controls/Range.php 1 patch
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.
php-src/form_nette/Controls/DateRange.php 1 patch
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.
php-src/form_nette_lte/Controls/DateTimeRange.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -96,7 +96,7 @@
 block discarded – undo
96 96
 
97 97
     public static function register(?string $searchFormat = null, ?\DateTime $startTime = null, ?\DateTime $endTime = null)
98 98
     {
99
-        Container::extensionMethod('addAdminLteDateTimeRange', function ($container, $name, $label = null, $maxLength = null) use ($searchFormat, $startTime, $endTime) {
99
+        Container::extensionMethod('addAdminLteDateTimeRange', function($container, $name, $label = null, $maxLength = null) use ($searchFormat, $startTime, $endTime) {
100 100
             $picker = $container[$name] = new DateTimeRange($name, $label, $maxLength, $searchFormat, $startTime, $endTime);
101 101
             return $picker;
102 102
         });
Please login to merge, or discard this patch.