@@ -57,7 +57,7 @@ |
||
| 57 | 57 | ['sendEventRemindersPush', true], |
| 58 | 58 | ]; |
| 59 | 59 | $this->initialState->method('provideInitialState') |
| 60 | - ->willReturnCallback(function () use (&$calls) { |
|
| 60 | + ->willReturnCallback(function() use (&$calls) { |
|
| 61 | 61 | $expected = array_shift($calls); |
| 62 | 62 | $this->assertEquals($expected, func_get_args()); |
| 63 | 63 | }); |
@@ -47,12 +47,12 @@ |
||
| 47 | 47 | $this->userFolder = $this->createMock(Folder::class); |
| 48 | 48 | $userFolder = $this->userFolder; |
| 49 | 49 | |
| 50 | - $closure = function ($name) use ($userFolder) { |
|
| 51 | - $node = $userFolder->getFirstNodeById((int)$name); |
|
| 50 | + $closure = function($name) use ($userFolder) { |
|
| 51 | + $node = $userFolder->getFirstNodeById((int) $name); |
|
| 52 | 52 | return $node !== null; |
| 53 | 53 | }; |
| 54 | - $writeAccessClosure = function ($name) use ($userFolder) { |
|
| 55 | - $nodes = $userFolder->getById((int)$name); |
|
| 54 | + $writeAccessClosure = function($name) use ($userFolder) { |
|
| 55 | + $nodes = $userFolder->getById((int) $name); |
|
| 56 | 56 | foreach ($nodes as $node) { |
| 57 | 57 | if (($node->getPermissions() & Constants::PERMISSION_UPDATE) === Constants::PERMISSION_UPDATE) { |
| 58 | 58 | return true; |
@@ -85,7 +85,7 @@ discard block |
||
| 85 | 85 | ]; |
| 86 | 86 | $this->tree->expects($this->exactly(2)) |
| 87 | 87 | ->method('getNodeForPath') |
| 88 | - ->willReturnCallback(function (string $path) use (&$calls) { |
|
| 88 | + ->willReturnCallback(function(string $path) use (&$calls) { |
|
| 89 | 89 | $expected = array_shift($calls); |
| 90 | 90 | $this->assertSame($expected[0], $path); |
| 91 | 91 | if ($expected[1] instanceof \Throwable) { |
@@ -123,7 +123,7 @@ discard block |
||
| 123 | 123 | ]; |
| 124 | 124 | $this->tree->expects($this->exactly(2)) |
| 125 | 125 | ->method('getNodeForPath') |
| 126 | - ->willReturnCallback(function (string $path) use (&$calls) { |
|
| 126 | + ->willReturnCallback(function(string $path) use (&$calls) { |
|
| 127 | 127 | $expected = array_shift($calls); |
| 128 | 128 | $this->assertSame($expected[0], $path); |
| 129 | 129 | if ($expected[1] instanceof \Throwable) { |
@@ -170,7 +170,7 @@ discard block |
||
| 170 | 170 | ]; |
| 171 | 171 | $this->tree->expects($this->exactly(2)) |
| 172 | 172 | ->method('getNodeForPath') |
| 173 | - ->willReturnCallback(function (string $path) use (&$calls) { |
|
| 173 | + ->willReturnCallback(function(string $path) use (&$calls) { |
|
| 174 | 174 | $expected = array_shift($calls); |
| 175 | 175 | $this->assertSame($expected[0], $path); |
| 176 | 176 | if ($expected[1] instanceof \Throwable) { |