Skip to content

Commit

Permalink
Fix code style
Browse files Browse the repository at this point in the history
  • Loading branch information
trowski committed Nov 10, 2020
1 parent 8729495 commit 03c6954
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Internal/Processor.php
Expand Up @@ -1405,7 +1405,7 @@ private function parsePayload(string $packet): void
$this->sendHandshake();
break;
case "caching_sha2_password":
switch (\ord(substr($packet, 1, 1))) {
switch (\ord(\substr($packet, 1, 1))) {
case 3: // success
return; // expecting OK afterwards
case 4: // fast auth failure
Expand All @@ -1416,7 +1416,7 @@ private function parsePayload(string $packet): void
}
break;
case 0x2d: // certificate
$pubkey = substr($packet, 1);
$pubkey = \substr($packet, 1);
$this->write($this->sha256Auth($this->config->getPassword(), $this->authPluginData, $pubkey));
break;
}
Expand Down Expand Up @@ -1558,7 +1558,7 @@ private function sendHandshake(bool $inSSL = false): void
$auth = "\x01";
}
}
break;
break;
case "caching_sha2_password":
$auth = $this->sha2Auth($this->config->getPassword(), $this->authPluginData);
break;
Expand Down

0 comments on commit 03c6954

Please sign in to comment.