Passed
Push — master ( 5d8af1...e44bd6 )
by Petr
09:24
created
php-src/Mappers/Database/TReadDatabase.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -111,7 +111,7 @@  discard block
 block discarded – undo
111 111
         foreach ($relations as $localAlias => $remoteColumn) {
112 112
             $this->readQueryBuilder->addColumn($record->getMapper()->getAlias(), $remoteColumn, $localAlias);
113 113
         }
114
-        $this->readQueryBuilder->setLimits(0,1);
114
+        $this->readQueryBuilder->setLimits(0, 1);
115 115
 
116 116
         // query itself
117 117
         $lines = $this->readDatabase->query(
@@ -172,7 +172,7 @@  discard block
 block discarded – undo
172 172
         }
173 173
 
174 174
         // query itself
175
-        $this->readQueryBuilder->setLimits(0,1);
175
+        $this->readQueryBuilder->setLimits(0, 1);
176 176
         $lines = $this->readDatabase->query(
177 177
             strval($this->readDialect->select($this->readQueryBuilder)),
178 178
             array_filter($this->readQueryBuilder->getParams(), [$this, 'filterNullValues'])
Please login to merge, or discard this patch.
php-src/Search/Connector/Records.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -125,7 +125,7 @@  discard block
 block discarded – undo
125 125
         // paging
126 126
         return $limited
127 127
             ? array_slice($results, intval($this->queryBuilder->getOffset()), $this->queryBuilder->getLimit())
128
-            : $results ;
128
+            : $results;
129 129
     }
130 130
 
131 131
     /**
@@ -305,6 +305,6 @@  discard block
 block discarded – undo
305 305
         $a = $resultA->offsetGet($this->sortingOrder->getColumnName());
306 306
         $b = $resultB->offsetGet($this->sortingOrder->getColumnName());
307 307
 
308
-        return (IQueryBuilder::ORDER_ASC == $sortingDirection) ? $a <=> $b : $b <=> $a ;
308
+        return (IQueryBuilder::ORDER_ASC == $sortingDirection) ? $a <=> $b : $b <=> $a;
309 309
     }
310 310
 }
Please login to merge, or discard this patch.
php-src/Interfaces/ICanFill.php 1 patch
Indentation   -1 removed lines patch added patch discarded remove patch
@@ -27,7 +27,6 @@
 block discarded – undo
27 27
 {
28 28
     // ...
29 29
 }
30
-
31 30
  */
32 31
 interface ICanFill
33 32
 {
Please login to merge, or discard this patch.
php-src/Search/Connector/Database/TRecordsInJoins.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -48,7 +48,7 @@
 block discarded – undo
48 48
         }
49 49
         foreach ($this->recordsInJoin as $record) {
50 50
             $foreignKeys = $record->getRecord()->getMapper()->getForeignKeys();
51
-            $fk = empty($knownAs) ? $storeKey : $knownAs ;
51
+            $fk = empty($knownAs) ? $storeKey : $knownAs;
52 52
             if (isset($foreignKeys[$fk])) {
53 53
                 $recordClassName = $foreignKeys[$fk]->getRemoteRecord();
54 54
                 try {
Please login to merge, or discard this patch.
php-src/Interfaces/IQueryBuilder.php 1 patch
Spacing   +12 added lines, -12 removed lines patch added patch discarded remove patch
@@ -17,19 +17,19 @@
 block discarded – undo
17 17
     public const ORDER_ASC = 'ASC';
18 18
     public const ORDER_DESC = 'DESC';
19 19
 
20
-    public const OPERATION_NULL = 'nul';    // is null
21
-    public const OPERATION_NNULL = 'nnul';  // is not null
22
-    public const OPERATION_EQ = 'eq';       // =
23
-    public const OPERATION_NEQ = 'neq';     // !=
24
-    public const OPERATION_GT = 'gt';       // >
25
-    public const OPERATION_GTE = 'gte';     // >=
26
-    public const OPERATION_LT = 'lt';       // <
27
-    public const OPERATION_LTE = 'lte';     // <=
28
-    public const OPERATION_LIKE = 'like';   // like...
20
+    public const OPERATION_NULL = 'nul'; // is null
21
+    public const OPERATION_NNULL = 'nnul'; // is not null
22
+    public const OPERATION_EQ = 'eq'; // =
23
+    public const OPERATION_NEQ = 'neq'; // !=
24
+    public const OPERATION_GT = 'gt'; // >
25
+    public const OPERATION_GTE = 'gte'; // >=
26
+    public const OPERATION_LT = 'lt'; // <
27
+    public const OPERATION_LTE = 'lte'; // <=
28
+    public const OPERATION_LIKE = 'like'; // like...
29 29
     public const OPERATION_NLIKE = 'nlike'; // not like
30
-    public const OPERATION_REXP = 'rexp';   // regex
31
-    public const OPERATION_IN = 'in';       // in ()
32
-    public const OPERATION_NIN = 'nin';     // not in ()
30
+    public const OPERATION_REXP = 'rexp'; // regex
31
+    public const OPERATION_IN = 'in'; // in ()
32
+    public const OPERATION_NIN = 'nin'; // not in ()
33 33
 
34 34
     public const AGGREGATE_AVG = 'AVG';
35 35
     public const AGGREGATE_COUNT = 'COUNT';
Please login to merge, or discard this patch.
php-src/Search/Connector/AConnector.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -409,7 +409,7 @@  discard block
 block discarded – undo
409 409
      */
410 410
     protected function correctTable(string $table): string
411 411
     {
412
-        return empty($table) ? $this->getBasicRecord()->getMapper()->getAlias() : $table ;
412
+        return empty($table) ? $this->getBasicRecord()->getMapper()->getAlias() : $table;
413 413
     }
414 414
 
415 415
     /**
@@ -420,7 +420,7 @@  discard block
 block discarded – undo
420 420
      */
421 421
     protected function correctColumn(string $table, string $column)
422 422
     {
423
-        $record = !empty($table) ? $this->recordLookup($table)->getRecord() : $this->getBasicRecord() ;
423
+        $record = !empty($table) ? $this->recordLookup($table)->getRecord() : $this->getBasicRecord();
424 424
         if (empty($record)) {
425 425
             // @codeCoverageIgnoreStart
426 426
             throw new MapperException(sprintf('Unknown relation table *%s*', $table));
Please login to merge, or discard this patch.
php-src/Storage/Database/Raw/Oracle.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -151,7 +151,7 @@
 block discarded – undo
151 151
 
152 152
     public function rowCount(): ?int
153 153
     {
154
-        return $this->lastStatement ? intval(\oci_num_rows($this->lastStatement)) : null ;
154
+        return $this->lastStatement ? intval(\oci_num_rows($this->lastStatement)) : null;
155 155
     }
156 156
 
157 157
     public function beginTransaction(): bool
Please login to merge, or discard this patch.
php-src/Storage/Database/PDO/MSSQLTrusting.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -37,7 +37,7 @@
 block discarded – undo
37 37
             $connection->setAttribute(PDO::ATTR_PERSISTENT, true);
38 38
         }
39 39
 
40
-        foreach ($this->attributes as $key => $value){
40
+        foreach ($this->attributes as $key => $value) {
41 41
             $connection->setAttribute($key, $value);
42 42
         }
43 43
 
Please login to merge, or discard this patch.