Skip to content

Commit 90c8b30

Browse files
committed
Clean up code formatting and remove unused imports in ExportPrivateKeyTest and SimpleCliWrapper.
1 parent d09e03b commit 90c8b30

2 files changed

Lines changed: 8 additions & 10 deletions

File tree

Crypt/Console/SimpleCliWrapper.php

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -43,14 +43,14 @@ class SimpleCliWrapper
4343
public function parseCli()
4444
{
4545
$shortOpts = implode('', [
46-
self::VERBOSE_SHORT. self::OPTIONAL_INDICATOR,
47-
self::LOG_SHORT. self::OPTIONAL_INDICATOR,
46+
self::VERBOSE_SHORT . self::OPTIONAL_INDICATOR,
47+
self::LOG_SHORT . self::OPTIONAL_INDICATOR,
4848
self::HELP_SHORT . self::OPTIONAL_INDICATOR
4949
]);
5050

5151
$longOpts = [
52-
self::VERBOSE_LONG. self::OPTIONAL_INDICATOR,
53-
self::LOG_LONG. self::OPTIONAL_INDICATOR,
52+
self::VERBOSE_LONG . self::OPTIONAL_INDICATOR,
53+
self::LOG_LONG . self::OPTIONAL_INDICATOR,
5454
self::HELP_LONG . self::OPTIONAL_INDICATOR
5555
];
5656

@@ -96,7 +96,8 @@ public function parseCli()
9696
* @param $msg
9797
* @return void
9898
*/
99-
public function writeToErrOrEcho($msg) {
99+
public function writeToErrOrEcho($msg)
100+
{
100101
if (defined('STDERR')) {
101102
fwrite(STDERR, $msg);
102103
} else {
@@ -129,7 +130,6 @@ private function printHelp()
129130

130131

131132
/**
132-
* we keep the current
133133
* @param array $opts
134134
*
135135
* @return int
@@ -149,15 +149,15 @@ public static function getVerbosityLevel(array $opts)
149149
}
150150

151151
// the first v will be stripped -v so we count the amounts of v's after that
152-
return (int) mb_strlen($opts[self::VERBOSE_SHORT]);
152+
return (int)mb_strlen($opts[self::VERBOSE_SHORT]);
153153
}
154154

155155
if (isset($opts[self::VERBOSE_LONG]) && !is_numeric($opts[self::VERBOSE_LONG])) {
156156
return self::INVALID_INPUT;
157157
}
158158

159159
if (isset($opts[self::VERBOSE_LONG])) {
160-
return (int) $opts[self::VERBOSE_LONG];
160+
return (int)$opts[self::VERBOSE_LONG];
161161
}
162162

163163
return self::INVALID_INPUT;

tests/ExportPrivateKeyTest.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,6 @@
4444
* Base test case.
4545
*/
4646

47-
use function PHPUnit\Framework\isTrue;
48-
4947
require_once 'TestCase.php';
5048

5149
/**

0 commit comments

Comments
 (0)