Passed
Push — master ( 981046...e5803a )
by Petr
03:00
created
php-src/Storage/Database/PDO/MySQL.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.
php-src/Mappers/TStore.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -75,7 +75,7 @@
 block discarded – undo
75 75
         foreach ($this->getPrimaryKeys() as $key) {
76 76
             $toComplete[] = $record->offsetGet($key);
77 77
         }
78
-        return (count(array_filter($toComplete))) ? implode('_', $toComplete) : null ;
78
+        return (count(array_filter($toComplete))) ? implode('_', $toComplete) : null;
79 79
     }
80 80
 
81 81
     /**
Please login to merge, or discard this patch.
php-src/Mappers/File/ATable.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
             $entry = $record->getEntry($primaryKey);
51 51
             if (in_array($entry->getType(), [IEntryType::TYPE_INTEGER, IEntryType::TYPE_FLOAT])) {
52 52
                 if (empty($entry->getData())) {
53
-                    $data = empty($records) ? 1 : intval(max(array_column($records, $primaryKey))) + 1 ;
53
+                    $data = empty($records) ? 1 : intval(max(array_column($records, $primaryKey))) + 1;
54 54
                     $entry->setData($data);
55 55
                 }
56 56
             }
Please login to merge, or discard this patch.
php-src/Mappers/TFinder.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -42,14 +42,14 @@
 block discarded – undo
42 42
         // through relations
43 43
         foreach ($toCompare as $relationKey => $compareValue) {
44 44
             foreach ($this->records as $positionKey => $knownRecord) {
45
-                if ( !isset($toProcess[$positionKey]) ) { // not twice
45
+                if (!isset($toProcess[$positionKey])) { // not twice
46 46
                     continue;
47 47
                 }
48
-                if ( !$knownRecord->offsetExists($relationKey) ) { // unknown relation key in record is not allowed into compare
48
+                if (!$knownRecord->offsetExists($relationKey)) { // unknown relation key in record is not allowed into compare
49 49
                     unset($toProcess[$positionKey]);
50 50
                     continue;
51 51
                 }
52
-                if ( strval($knownRecord->offsetGet($relationKey)) != strval($compareValue) ) {
52
+                if (strval($knownRecord->offsetGet($relationKey)) != strval($compareValue)) {
53 53
                     unset($toProcess[$positionKey]);
54 54
                     continue;
55 55
                 }
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
@@ -407,7 +407,7 @@  discard block
 block discarded – undo
407 407
      */
408 408
     protected function correctTable(string $table): string
409 409
     {
410
-        return empty($table) ? $this->basicRecord->getMapper()->getAlias() : $table ;
410
+        return empty($table) ? $this->basicRecord->getMapper()->getAlias() : $table;
411 411
     }
412 412
 
413 413
     /**
@@ -418,7 +418,7 @@  discard block
 block discarded – undo
418 418
      */
419 419
     protected function correctColumn(string $table, string $column)
420 420
     {
421
-        $record = !empty($table) ? $this->recordLookup($table)->getRecord() : $this->basicRecord ;
421
+        $record = !empty($table) ? $this->recordLookup($table)->getRecord() : $this->basicRecord;
422 422
         if (empty($record)) {
423 423
             // @codeCoverageIgnoreStart
424 424
             throw new MapperException(sprintf('Unknown relation table *%s*', $table));
Please login to merge, or discard this patch.