@@ -49,7 +49,7 @@ discard block |
||
| 49 | 49 | } |
| 50 | 50 | |
| 51 | 51 | foreach ($this->records as $knownKey => $knownRecord) { |
| 52 | - if ( !isset($toProcess[$knownKey]) ) { // not twice |
|
| 52 | + if (!isset($toProcess[$knownKey])) { // not twice |
|
| 53 | 53 | continue; |
| 54 | 54 | } |
| 55 | 55 | if ($usePks && !in_array($objectKey, $this->getPrimaryKeys())) { // is not PK |
@@ -58,17 +58,17 @@ discard block |
||
| 58 | 58 | if ($wantFromStorage && !$knownRecord->getEntry($objectKey)->isFromStorage()) { // look through only values known in storage |
| 59 | 59 | continue; |
| 60 | 60 | } |
| 61 | - if ( !$knownRecord->offsetExists($objectKey) ) { // unknown relation key in record is not allowed into compare |
|
| 61 | + if (!$knownRecord->offsetExists($objectKey)) { // unknown relation key in record is not allowed into compare |
|
| 62 | 62 | // @codeCoverageIgnoreStart |
| 63 | 63 | unset($toProcess[$knownKey]); |
| 64 | 64 | continue; |
| 65 | 65 | } |
| 66 | 66 | // @codeCoverageIgnoreEnd |
| 67 | - if ( empty($knownRecord->offsetGet($objectKey)) ) { // empty input is not need to compare |
|
| 67 | + if (empty($knownRecord->offsetGet($objectKey))) { // empty input is not need to compare |
|
| 68 | 68 | unset($toProcess[$knownKey]); |
| 69 | 69 | continue; |
| 70 | 70 | } |
| 71 | - if ( strval($knownRecord->offsetGet($objectKey)) != strval($record->offsetGet($objectKey)) ) { |
|
| 71 | + if (strval($knownRecord->offsetGet($objectKey)) != strval($record->offsetGet($objectKey))) { |
|
| 72 | 72 | unset($toProcess[$knownKey]); |
| 73 | 73 | continue; |
| 74 | 74 | } |
@@ -75,7 +75,7 @@ |
||
| 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 | /** |
@@ -50,7 +50,7 @@ |
||
| 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 | } |