Skip to content

Commit c409cc4

Browse files
committed
Fix CS
1 parent cefbfba commit c409cc4

File tree

13 files changed

+18
-18
lines changed

13 files changed

+18
-18
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -606,7 +606,7 @@ $client->execute('CREATE TABLE users ("id" INTEGER PRIMARY KEY AUTOINCREMENT, "n
606606
$stmt = $client->prepare('INSERT INTO users VALUES(null, ?)');
607607
for ($i = 1; $i <= 100; ++$i) {
608608
$stmt->execute("name_$i");
609-
// you can also use executeSelect() and executeUpdate(), e.g.:
609+
// You can also use executeSelect() and executeUpdate(), e.g.:
610610
// $lastInsertIds = $stmt->executeUpdate("name_$i")->getAutoincrementIds();
611611
}
612612
$stmt->close();

examples/logging/SlowRequestHandler.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ public function __construct(HandlerInterface $handler, int $thresholdMs, int $le
4040

4141
public function isHandling(array $record) : bool
4242
{
43-
// handle all levels
43+
// Handle all levels
4444
return true;
4545
}
4646

examples/protocol/prepare.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
$stmt = $client->prepare('INSERT INTO users VALUES(null, ?)');
2323
for ($i = 1; $i <= 100; ++$i) {
2424
$stmt->execute("name_$i");
25-
// you can also use executeSelect() and executeUpdate(), e.g.:
25+
// You can also use executeSelect() and executeUpdate(), e.g.:
2626
// $lastInsertIds = $stmt->executeUpdate("name_$i")->getAutoincrementIds();
2727
}
2828
$stmt->close();

src/Keys.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,12 +44,12 @@ final class Keys
4444
public const STMT_ID = 0x43;
4545
public const ERROR = 0x52;
4646

47-
// sql info map keys
47+
// Sql info map keys
4848
// https://github.com/tarantool/tarantool/blob/master/src/box/execute.h
4949
public const SQL_INFO_ROW_COUNT = 0;
5050
public const SQL_INFO_AUTO_INCREMENT_IDS = 1;
5151

52-
// metadata map keys
52+
// Metadata map keys
5353
// https://github.com/tarantool/tarantool/blob/master/src/box/iproto_constants.h
5454
public const METADATA_FIELD_NAME = 0;
5555
public const METADATA_FIELD_TYPE = 1;
@@ -58,7 +58,7 @@ final class Keys
5858
public const METADATA_FIELD_IS_AUTOINCREMENT = 4;
5959
public const METADATA_FIELD_SPAN = 5;
6060

61-
// error map keys
61+
// Error map keys
6262
// https://github.com/tarantool/tarantool/blob/master/src/box/mp_error.cc
6363
public const ERROR_STACK = 0;
6464
public const ERROR_TYPE = 0;

src/Packer/PeclPacker.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ public function unpack(string $packet) : Response
5555
}
5656
$body = $this->unpacker->data();
5757

58-
// with PHP_ONLY = true an empty array
58+
// With PHP_ONLY = true an empty array
5959
// will be unpacked to stdClass
6060
if ($body instanceof \stdClass) {
6161
$body = (array) $body;

src/Packer/PurePacker.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ public static function fromAvailableExtensions() : self
7474

7575
public function pack(Request $request, int $sync) : string
7676
{
77-
// hot path optimization
77+
// Hot path optimization
7878
$packet = \pack('C*', 0x82, Keys::CODE, $request->getType(), Keys::SYNC).
7979
$this->packer->packInt($sync).
8080
$this->packer->packMap($request->getBody());

tests/Integration/ClientMiddlewareTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ public function process(Request $request, Handler $handler) : Response
4141
}
4242
};
4343

44-
// cache the space
44+
// Cache the space
4545
$this->client->getSpaceById(Space::VSPACE_ID)->select(Criteria::key([]));
4646

4747
$clientWithMiddleware = $this->client->withMiddleware($middleware);
@@ -97,7 +97,7 @@ public function testRetry() : void
9797
$retryableClient = $clientBuilder->setOptions(['max_retries' => 1])->build();
9898

9999
$client->evaluate($luaInit = 'create_space("connection_retry")');
100-
// trigger an error only on the first call
100+
// Trigger an error only on the first call
101101
$retryableClient->evaluate($luaCall = '
102102
if box.space.connection_retry then
103103
box.space.connection_retry:drop()

tests/Integration/Connection/ConnectionTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -207,11 +207,11 @@ public function testOpenConnectionHandlesTheMissingGreetingCorrectly() : void
207207
self::fail('Connection not established');
208208
} catch (CommunicationFailed $e) {
209209
self::assertSame('Unable to read greeting', $e->getMessage());
210-
// at that point the connection was successfully established,
210+
// At that point the connection was successfully established,
211211
// but the greeting message was not read
212212
}
213213

214-
// the second call should correctly handle
214+
// The second call should correctly handle
215215
// the missing greeting from the previous call
216216
$connection->open();
217217
}

tests/Integration/ExamplesTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ public function provideExampleData() : iterable
4545
if ('bootstrap' === $basename) {
4646
continue;
4747
}
48-
// ignore classes
48+
// Ignore classes
4949
if (strtolower($basename[0]) !== $basename[0]) {
5050
continue;
5151
}

tests/Integration/Requests/AuthenticateTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ public function testAuthenticateOnceOnOpenedPersistentConnection() : void
102102
->setOptions(['username' => 'guest'])
103103
->build();
104104

105-
// ensure that no persistent connection is opened
105+
// Ensure that no persistent connection is opened
106106
$connection = $client->getHandler()->getConnection();
107107
$connection->open();
108108
$connection->close();
@@ -130,7 +130,7 @@ public function testReauthenticateOnClosedPersistentConnection() : void
130130
->setOptions(['username' => 'guest'])
131131
->build();
132132

133-
// ensure that no persistent connection is opened
133+
// Ensure that no persistent connection is opened
134134
$connection = $client->getHandler()->getConnection();
135135
$connection->open();
136136
$connection->close();

0 commit comments

Comments
 (0)