@@ -1,6 +1,6 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | |
| 3 | -declare(strict_types=1); |
|
| 3 | +declare(strict_types = 1); |
|
| 4 | 4 | |
| 5 | 5 | /** |
| 6 | 6 | * balloon |
@@ -1,6 +1,6 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | |
| 3 | -declare(strict_types=1); |
|
| 3 | +declare(strict_types = 1); |
|
| 4 | 4 | |
| 5 | 5 | /** |
| 6 | 6 | * balloon |
@@ -1,6 +1,6 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | |
| 3 | -declare(strict_types=1); |
|
| 3 | +declare(strict_types = 1); |
|
| 4 | 4 | |
| 5 | 5 | /** |
| 6 | 6 | * balloon |
@@ -1,6 +1,6 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | |
| 3 | -declare(strict_types=1); |
|
| 3 | +declare(strict_types = 1); |
|
| 4 | 4 | |
| 5 | 5 | /** |
| 6 | 6 | * balloon |
@@ -1,6 +1,6 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | |
| 3 | -declare(strict_types=1); |
|
| 3 | +declare(strict_types = 1); |
|
| 4 | 4 | |
| 5 | 5 | /** |
| 6 | 6 | * balloon |
@@ -1,6 +1,6 @@ discard block |
||
| 1 | 1 | <?php |
| 2 | 2 | |
| 3 | -declare(strict_types=1); |
|
| 3 | +declare(strict_types = 1); |
|
| 4 | 4 | |
| 5 | 5 | /** |
| 6 | 6 | * balloon |
@@ -85,8 +85,8 @@ discard block |
||
| 85 | 85 | public function start(): bool |
| 86 | 86 | { |
| 87 | 87 | return $this->migration->start( |
| 88 | - (bool) $this->getopt->getOption('force'), |
|
| 89 | - (bool) $this->getopt->getOption('ignore') |
|
| 88 | + (bool)$this->getopt->getOption('force'), |
|
| 89 | + (bool)$this->getopt->getOption('ignore') |
|
| 90 | 90 | ); |
| 91 | 91 | } |
| 92 | 92 | } |
@@ -1,6 +1,6 @@ discard block |
||
| 1 | 1 | <?php |
| 2 | 2 | |
| 3 | -declare(strict_types=1); |
|
| 3 | +declare(strict_types = 1); |
|
| 4 | 4 | |
| 5 | 5 | /** |
| 6 | 6 | * balloon |
@@ -192,8 +192,8 @@ discard block |
||
| 192 | 192 | */ |
| 193 | 193 | public function findRawNode(ObjectId $id): array |
| 194 | 194 | { |
| 195 | - if (isset($this->cache[(string) $id])) { |
|
| 196 | - return $this->cache[(string) $id]->getRawAttributes(); |
|
| 195 | + if (isset($this->cache[(string)$id])) { |
|
| 196 | + return $this->cache[(string)$id]->getRawAttributes(); |
|
| 197 | 197 | } |
| 198 | 198 | |
| 199 | 199 | $node = $this->db->storage->findOne(['_id' => $id]); |
@@ -218,8 +218,8 @@ discard block |
||
| 218 | 218 | */ |
| 219 | 219 | public function findNodeById($id, ?string $class = null, int $deleted = NodeInterface::DELETED_INCLUDE): NodeInterface |
| 220 | 220 | { |
| 221 | - if (isset($this->cache[(string) $id])) { |
|
| 222 | - return $this->cache[(string) $id]; |
|
| 221 | + if (isset($this->cache[(string)$id])) { |
|
| 222 | + return $this->cache[(string)$id]; |
|
| 223 | 223 | } |
| 224 | 224 | |
| 225 | 225 | if (!is_string($id) && !($id instanceof ObjectId)) { |
@@ -597,7 +597,7 @@ discard block |
||
| 597 | 597 | throw new Exception\Conflict('node is not available anymore'); |
| 598 | 598 | } |
| 599 | 599 | |
| 600 | - $this->cache[(string) $node['_id']] = $instance; |
|
| 600 | + $this->cache[(string)$node['_id']] = $instance; |
|
| 601 | 601 | |
| 602 | 602 | return $instance; |
| 603 | 603 | } |
@@ -180,7 +180,7 @@ discard block |
||
| 180 | 180 | /** |
| 181 | 181 | * Find raw node. |
| 182 | 182 | * |
| 183 | - * @param ObjectId $id |
|
| 183 | + * @param ObjectId|null $id |
|
| 184 | 184 | * |
| 185 | 185 | * @return array |
| 186 | 186 | */ |
@@ -301,7 +301,7 @@ discard block |
||
| 301 | 301 | * |
| 302 | 302 | * @param array $id |
| 303 | 303 | * @param string $class Force check node type |
| 304 | - * @param bool $deleted |
|
| 304 | + * @param integer $deleted |
|
| 305 | 305 | * |
| 306 | 306 | * @return Generator |
| 307 | 307 | */ |
@@ -421,7 +421,7 @@ discard block |
||
| 421 | 421 | * @param string $class Force set node type |
| 422 | 422 | * @param bool $multiple Allow $id to be an array |
| 423 | 423 | * @param bool $allow_root Allow instance of root collection |
| 424 | - * @param bool $deleted How to handle deleted node |
|
| 424 | + * @param integer $deleted How to handle deleted node |
|
| 425 | 425 | * |
| 426 | 426 | * @return NodeInterface |
| 427 | 427 | */ |
@@ -1,6 +1,6 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | |
| 3 | -declare(strict_types=1); |
|
| 3 | +declare(strict_types = 1); |
|
| 4 | 4 | |
| 5 | 5 | /** |
| 6 | 6 | * balloon |
@@ -1,6 +1,6 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | |
| 3 | -declare(strict_types=1); |
|
| 3 | +declare(strict_types = 1); |
|
| 4 | 4 | |
| 5 | 5 | /** |
| 6 | 6 | * balloon |