Skip to content

Commit d4d1afe

Browse files
committed
Change indentation in stub files
1 parent 767dd1a commit d4d1afe

File tree

98 files changed

+874
-922
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

98 files changed

+874
-922
lines changed

src/MongoDB/BulkWrite.stub.php

Lines changed: 22 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -5,35 +5,34 @@
55
* @generate-function-entries static
66
*/
77

8-
namespace MongoDB\Driver
8+
namespace MongoDB\Driver;
9+
10+
final class BulkWrite implements \Countable
911
{
10-
final class BulkWrite implements \Countable
11-
{
12-
public final function __construct(array $options = []) {}
12+
public final function __construct(array $options = []) {}
1313

14-
public function count(): int {}
14+
public function count(): int {}
1515

1616
#if PHP_VERSION_ID >= 80000
17-
public function delete(array|object $filter, array $deleteOptions = []): void {}
17+
public function delete(array|object $filter, array $deleteOptions = []): void {}
1818

19-
public final function insert(array|object $document): mixed {}
19+
public final function insert(array|object $document): mixed {}
2020

21-
public function update(array|object $filter, array|object $newObj, array $updateOptions = []): void {}
21+
public function update(array|object $filter, array|object $newObj, array $updateOptions = []): void {}
2222
#else
23-
/** @param array|object $filter */
24-
public function delete($filter, array $deleteOptions = []): void {}
25-
26-
/**
27-
* @param array|object $document
28-
* @return mixed
29-
*/
30-
public final function insert($document) {}
31-
32-
/**
33-
* @param array|object $filter
34-
* @param array|object $newObj
35-
*/
36-
public function update($filter, $newObj, array $updateOptions = []): void {}
23+
/** @param array|object $filter */
24+
public function delete($filter, array $deleteOptions = []): void {}
25+
26+
/**
27+
* @param array|object $document
28+
* @return mixed
29+
*/
30+
public final function insert($document) {}
31+
32+
/**
33+
* @param array|object $filter
34+
* @param array|object $newObj
35+
*/
36+
public function update($filter, $newObj, array $updateOptions = []): void {}
3737
#endif
38-
}
3938
}

src/MongoDB/BulkWrite_arginfo.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/* This is a generated file, edit the .stub.php file instead.
2-
* Stub hash: ec9c23a8afe93c3ae9cd3c78733e67f808b48bcb */
2+
* Stub hash: 5b71b311ea4be170595b7616bf02af21b1379b1c */
33

44
ZEND_BEGIN_ARG_INFO_EX(arginfo_class_MongoDB_Driver_BulkWrite___construct, 0, 0, 0)
55
ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, options, IS_ARRAY, 0, "[]")

src/MongoDB/ClientEncryption.stub.php

Lines changed: 42 additions & 43 deletions
Original file line numberDiff line numberDiff line change
@@ -5,54 +5,53 @@
55
* @generate-function-entries static
66
*/
77

8-
namespace MongoDB\Driver
8+
namespace MongoDB\Driver;
9+
10+
final class ClientEncryption
911
{
10-
final class ClientEncryption
11-
{
12-
/**
13-
* @var string
14-
* @cvalue MONGOC_AEAD_AES_256_CBC_HMAC_SHA_512_DETERMINISTIC
15-
*/
16-
public const AEAD_AES_256_CBC_HMAC_SHA_512_DETERMINISTIC = UNKNOWN;
17-
18-
/**
19-
* @var string
20-
* @cvalue MONGOC_AEAD_AES_256_CBC_HMAC_SHA_512_RANDOM
21-
*/
22-
public const AEAD_AES_256_CBC_HMAC_SHA_512_RANDOM = UNKNOWN;
23-
24-
/**
25-
* @var string
26-
* @cvalue MONGOC_ENCRYPT_ALGORITHM_INDEXED
27-
*/
28-
public const ALGORITHM_INDEXED = UNKNOWN;
29-
30-
/**
31-
* @var string
32-
* @cvalue MONGOC_ENCRYPT_ALGORITHM_UNINDEXED
33-
*/
34-
public const ALGORITHM_UNINDEXED = UNKNOWN;
35-
36-
/**
37-
* @var string
38-
* @cvalue MONGOC_ENCRYPT_QUERY_TYPE_EQUALITY
39-
*/
40-
public const QUERY_TYPE_EQUALITY = UNKNOWN;
41-
42-
final public function __construct(array $options) {}
43-
44-
final public function createDataKey(string $kmsProvider, array $options = []): \MongoDB\BSON\Binary {}
12+
/**
13+
* @var string
14+
* @cvalue MONGOC_AEAD_AES_256_CBC_HMAC_SHA_512_DETERMINISTIC
15+
*/
16+
public const AEAD_AES_256_CBC_HMAC_SHA_512_DETERMINISTIC = UNKNOWN;
17+
18+
/**
19+
* @var string
20+
* @cvalue MONGOC_AEAD_AES_256_CBC_HMAC_SHA_512_RANDOM
21+
*/
22+
public const AEAD_AES_256_CBC_HMAC_SHA_512_RANDOM = UNKNOWN;
23+
24+
/**
25+
* @var string
26+
* @cvalue MONGOC_ENCRYPT_ALGORITHM_INDEXED
27+
*/
28+
public const ALGORITHM_INDEXED = UNKNOWN;
29+
30+
/**
31+
* @var string
32+
* @cvalue MONGOC_ENCRYPT_ALGORITHM_UNINDEXED
33+
*/
34+
public const ALGORITHM_UNINDEXED = UNKNOWN;
35+
36+
/**
37+
* @var string
38+
* @cvalue MONGOC_ENCRYPT_QUERY_TYPE_EQUALITY
39+
*/
40+
public const QUERY_TYPE_EQUALITY = UNKNOWN;
41+
42+
final public function __construct(array $options) {}
43+
44+
final public function createDataKey(string $kmsProvider, array $options = []): \MongoDB\BSON\Binary {}
4545

4646
#if PHP_VERSION_ID >= 80000
47-
final public function decrypt(\MongoDB\BSON\Binary $value): mixed {}
47+
final public function decrypt(\MongoDB\BSON\Binary $value): mixed {}
4848

49-
final public function encrypt(mixed $value, array $options = []): \MongoDB\BSON\Binary {}
49+
final public function encrypt(mixed $value, array $options = []): \MongoDB\BSON\Binary {}
5050
#else
51-
/** @return mixed */
52-
final public function decrypt(\MongoDB\BSON\Binary $value) {}
51+
/** @return mixed */
52+
final public function decrypt(\MongoDB\BSON\Binary $value) {}
5353

54-
/** @param mixed $value */
55-
final public function encrypt($value, array $options = []): \MongoDB\BSON\Binary {}
54+
/** @param mixed $value */
55+
final public function encrypt($value, array $options = []): \MongoDB\BSON\Binary {}
5656
#endif
57-
}
5857
}

src/MongoDB/ClientEncryption_arginfo.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/* This is a generated file, edit the .stub.php file instead.
2-
* Stub hash: 9ed4be3589f4aa9597adfc7104ab9c0f923d4c20 */
2+
* Stub hash: 8392a8f5e4e35893ddc65082a91cef47dde7facf */
33

44
ZEND_BEGIN_ARG_INFO_EX(arginfo_class_MongoDB_Driver_ClientEncryption___construct, 0, 0, 1)
55
ZEND_ARG_TYPE_INFO(0, options, IS_ARRAY, 0)

src/MongoDB/Command.stub.php

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,14 @@
55
* @generate-function-entries static
66
*/
77

8-
namespace MongoDB\Driver
8+
namespace MongoDB\Driver;
9+
10+
final class Command
911
{
10-
final class Command
11-
{
1212
#if PHP_VERSION_ID >= 80000
13-
final public function __construct(array|object $document, array $commandOptions = []) {}
13+
final public function __construct(array|object $document, array $commandOptions = []) {}
1414
#else
15-
/** @param array|object $document */
16-
final public function __construct($document, array $commandOptions = []) {}
15+
/** @param array|object $document */
16+
final public function __construct($document, array $commandOptions = []) {}
1717
#endif
18-
}
1918
}

src/MongoDB/Command_arginfo.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/* This is a generated file, edit the .stub.php file instead.
2-
* Stub hash: 4a6cf8ddc65e71bb5ba6f061b5129701ed49934f */
2+
* Stub hash: 7d4cd783815b6655add5530cfb6e4b085560687d */
33

44
#if PHP_VERSION_ID >= 80000
55
ZEND_BEGIN_ARG_INFO_EX(arginfo_class_MongoDB_Driver_Command___construct, 0, 0, 1)

src/MongoDB/Cursor.stub.php

Lines changed: 16 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -5,35 +5,34 @@
55
* @generate-function-entries static
66
*/
77

8-
namespace MongoDB\Driver
8+
namespace MongoDB\Driver;
9+
10+
final class Cursor implements \Iterator, CursorInterface
911
{
10-
final class Cursor implements \Iterator, CursorInterface
11-
{
12-
final private function __construct() {}
12+
final private function __construct() {}
1313

1414
#if PHP_VERSION_ID >= 80000
15-
public function current(): array|object|null {}
15+
public function current(): array|object|null {}
1616
#else
17-
/** @return array|object|null */
18-
public function current() {}
17+
/** @return array|object|null */
18+
public function current() {}
1919
#endif
2020

21-
final public function getId(): CursorId {}
21+
final public function getId(): CursorId {}
2222

23-
final public function getServer(): Server {}
23+
final public function getServer(): Server {}
2424

25-
final public function isDead(): bool {}
25+
final public function isDead(): bool {}
2626

27-
public function key(): ?int {}
27+
public function key(): ?int {}
2828

29-
public function next(): void {}
29+
public function next(): void {}
3030

31-
public function rewind(): void {}
31+
public function rewind(): void {}
3232

33-
final public function setTypeMap(array $typemap): void {}
33+
final public function setTypeMap(array $typemap): void {}
3434

35-
final public function toArray(): array {}
35+
final public function toArray(): array {}
3636

37-
public function valid(): bool {}
38-
}
37+
public function valid(): bool {}
3938
}

src/MongoDB/CursorId.stub.php

Lines changed: 11 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -5,23 +5,22 @@
55
* @generate-function-entries static
66
*/
77

8-
namespace MongoDB\Driver
8+
namespace MongoDB\Driver;
9+
10+
final class CursorId implements \Serializable
911
{
10-
final class CursorId implements \Serializable
11-
{
12-
private final function __construct() {}
12+
private final function __construct() {}
1313

14-
public static function __set_state(array $properties): CursorId {}
14+
public static function __set_state(array $properties): CursorId {}
1515

16-
final public function __toString(): string {}
16+
final public function __toString(): string {}
1717

18-
final public function serialize(): string {}
18+
final public function serialize(): string {}
1919

20-
/** @param string $serialized */
21-
final public function unserialize($serialized): void {}
20+
/** @param string $serialized */
21+
final public function unserialize($serialized): void {}
2222

23-
final public function __unserialize(array $data): void {}
23+
final public function __unserialize(array $data): void {}
2424

25-
final public function __serialize(): array {}
26-
}
25+
final public function __serialize(): array {}
2726
}

src/MongoDB/CursorId_arginfo.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/* This is a generated file, edit the .stub.php file instead.
2-
* Stub hash: 4070f01bd322843b52b6086ca6af8b88a721acd9 */
2+
* Stub hash: da0685e03cb26f923e8fee5c93a7cf6f82641f40 */
33

44
ZEND_BEGIN_ARG_INFO_EX(arginfo_class_MongoDB_Driver_CursorId___construct, 0, 0, 0)
55
ZEND_END_ARG_INFO()

src/MongoDB/CursorInterface.stub.php

Lines changed: 13 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -5,23 +5,22 @@
55
* @generate-function-entries
66
*/
77

8-
namespace MongoDB\Driver
8+
namespace MongoDB\Driver;
9+
10+
interface CursorInterface extends \Traversable
911
{
10-
interface CursorInterface extends \Traversable
11-
{
12-
/** @tentative-return-type */
13-
public function getId(): CursorId;
12+
/** @tentative-return-type */
13+
public function getId(): CursorId;
1414

15-
/** @tentative-return-type */
16-
public function getServer(): Server;
15+
/** @tentative-return-type */
16+
public function getServer(): Server;
1717

18-
/** @tentative-return-type */
19-
public function isDead(): bool;
18+
/** @tentative-return-type */
19+
public function isDead(): bool;
2020

21-
/** @tentative-return-type */
22-
public function setTypeMap(array $typemap): void;
21+
/** @tentative-return-type */
22+
public function setTypeMap(array $typemap): void;
2323

24-
/** @tentative-return-type */
25-
public function toArray(): array;
26-
}
24+
/** @tentative-return-type */
25+
public function toArray(): array;
2726
}

src/MongoDB/CursorInterface_arginfo.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/* This is a generated file, edit the .stub.php file instead.
2-
* Stub hash: 54bb649a2d68fff4d9b05bae9a8e4f21d051cc86 */
2+
* Stub hash: 001f88edb710125420178d78e291fffc10bbfa1b */
33

44
ZEND_BEGIN_ARG_WITH_TENTATIVE_RETURN_OBJ_INFO_EX(arginfo_class_MongoDB_Driver_CursorInterface_getId, 0, 0, MongoDB\\Driver\\CursorId, 0)
55
ZEND_END_ARG_INFO()

src/MongoDB/Cursor_arginfo.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/* This is a generated file, edit the .stub.php file instead.
2-
* Stub hash: 717c37325f8163f830e30da1f9ea1371a3fe002d */
2+
* Stub hash: b94c509926df512855559d2c0ab4263b9d7dec63 */
33

44
ZEND_BEGIN_ARG_INFO_EX(arginfo_class_MongoDB_Driver_Cursor___construct, 0, 0, 0)
55
ZEND_END_ARG_INFO()

src/MongoDB/Exception/AuthenticationException.stub.php

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,8 @@
55
* @generate-function-entries static
66
*/
77

8-
namespace MongoDB\Driver\Exception
8+
namespace MongoDB\Driver\Exception;
9+
10+
class AuthenticationException extends ConnectionException
911
{
10-
class AuthenticationException extends ConnectionException
11-
{
12-
}
1312
}

src/MongoDB/Exception/AuthenticationException_arginfo.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/* This is a generated file, edit the .stub.php file instead.
2-
* Stub hash: fe7a688ceb0d1279b05338f8c92c4cbdfe6ff80b */
2+
* Stub hash: dfb57a5b65b8a075b239be872177213a182faf60 */
33

44

55

src/MongoDB/Exception/BulkWriteException.stub.php

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,8 @@
55
* @generate-function-entries static
66
*/
77

8-
namespace MongoDB\Driver\Exception
8+
namespace MongoDB\Driver\Exception;
9+
10+
class BulkWriteException extends WriteException
911
{
10-
class BulkWriteException extends WriteException
11-
{
12-
}
1312
}

src/MongoDB/Exception/BulkWriteException_arginfo.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/* This is a generated file, edit the .stub.php file instead.
2-
* Stub hash: 4ffb6d0849ef79d13f83c3f61ca59adfa52e9016 */
2+
* Stub hash: 330d290dbbcd19c7f10afd7a08b3f57ad4497cd7 */
33

44

55

0 commit comments

Comments
 (0)