Passed
Push — master ( d814c6...992283 )
by
unknown
08:39 queued 07:16
created
Exception/Cli.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -18,7 +18,7 @@
 block discarded – undo
18 18
      *
19 19
      * @return array|string|false
20 20
      */
21
-    public function getMessageSafe(): array|string|false
21
+    public function getMessageSafe(): array | string | false
22 22
     {
23 23
         return mb_convert_encoding($this->getMessage(), 'UTF-8', 'UTF-8');
24 24
     }
Please login to merge, or discard this patch.
CryptoProCli.php 1 patch
Spacing   +11 added lines, -11 removed lines patch added patch discarded remove patch
@@ -76,7 +76,7 @@  discard block
 block discarded – undo
76 76
      *
77 77
      * @return string|false|null
78 78
      */
79
-    public function getSigns(): string|false|null
79
+    public function getSigns(): string | false | null
80 80
     {
81 81
         return shell_exec(self::getExec($this->certmgrExec) . ' -list -store uMy');
82 82
     }
@@ -91,7 +91,7 @@  discard block
 block discarded – undo
91 91
      * @param bool $detached Создать открепленную подпись
92 92
      * @throws Cli
93 93
      */
94
-    public function signFile(string $file, string|array $thumbprint, string $toFile = '', bool $detached = false): void
94
+    public function signFile(string $file, string | array $thumbprint, string $toFile = '', bool $detached = false): void
95 95
     {
96 96
         list($hash, $pin) = is_array($thumbprint) ? $thumbprint : [$thumbprint, ''];
97 97
         $shellCommand = self::getExec($this->cryptcpExec)
@@ -117,7 +117,7 @@  discard block
 block discarded – undo
117 117
      * @return string|false
118 118
      * @throws Cli
119 119
      */
120
-    public function signData(string $data, string|array $thumbprint): string|false
120
+    public function signData(string $data, string | array $thumbprint): string | false
121 121
     {
122 122
         $from = tempnam('/tmp', 'cpsign');
123 123
         $to = tempnam('/tmp', 'cpsign');
@@ -140,7 +140,7 @@  discard block
 block discarded – undo
140 140
      * @param string|array $thumbprint SHA1 hash подписи, либо неассоциативный массив содержащий thumbprint и pin пароль ключевого контейнера
141 141
      * @throws Cli
142 142
      */
143
-    public function addSignToFile(string $file, string|array $thumbprint): void
143
+    public function addSignToFile(string $file, string | array $thumbprint): void
144 144
     {
145 145
         list($hash, $pin) = is_array($thumbprint) ? $thumbprint : [$thumbprint, ''];
146 146
         $shellCommand = self::getExec($this->cryptcpExec)
@@ -165,7 +165,7 @@  discard block
 block discarded – undo
165 165
      * @throws Cli
166 166
      * @throws SignatureError
167 167
      */
168
-    public function verifyFileContent(string $fileContent): string|false|null
168
+    public function verifyFileContent(string $fileContent): string | false | null
169 169
     {
170 170
         $file = tempnam(sys_get_temp_dir(), 'cpc');
171 171
         file_put_contents($file, $fileContent);
@@ -188,7 +188,7 @@  discard block
 block discarded – undo
188 188
      * @throws Cli
189 189
      * @throws SignatureError
190 190
      */
191
-    public function verifyFileContentDetached(string $fileToBeSignedContent, string $fileSignContent): string|false|null
191
+    public function verifyFileContentDetached(string $fileToBeSignedContent, string $fileSignContent): string | false | null
192 192
     {
193 193
         $fileToBeSigned = tempnam(sys_get_temp_dir(), 'detach');
194 194
         $fileSign = $fileToBeSigned . '.sgn';
@@ -213,7 +213,7 @@  discard block
 block discarded – undo
213 213
      * @throws Cli
214 214
      * @throws SignatureError
215 215
      */
216
-    public function verifyFile(string $file): string|false|null
216
+    public function verifyFile(string $file): string | false | null
217 217
     {
218 218
         return $this->getVerifyShellCommandResult(
219 219
             self::getExec($this->cryptcpExec)
@@ -233,7 +233,7 @@  discard block
 block discarded – undo
233 233
      * @throws Cli
234 234
      * @throws SignatureError
235 235
      */
236
-    public function verifyFileDetached(string $fileToBeSigned, string $fileSign): string|false|null
236
+    public function verifyFileDetached(string $fileToBeSigned, string $fileSign): string | false | null
237 237
     {
238 238
         return $this->getVerifyShellCommandResult(
239 239
             self::getExec($this->cryptcpExec)
@@ -253,7 +253,7 @@  discard block
 block discarded – undo
253 253
      * @throws Cli
254 254
      * @throws SignatureError
255 255
      */
256
-    private function getVerifyShellCommandResult(string $shellCommand): string|false|null
256
+    private function getVerifyShellCommandResult(string $shellCommand): string | false | null
257 257
     {
258 258
         $result = shell_exec($shellCommand);
259 259
 
@@ -288,11 +288,11 @@  discard block
 block discarded – undo
288 288
      */
289 289
     public function proxyCurl(
290 290
         string $url,
291
-        string|array $thumbprint,
291
+        string | array $thumbprint,
292 292
         string $method = 'GET',
293 293
         ?array $headers = null,
294 294
         ?string $data = null
295
-    ): string|false|null
295
+    ): string | false | null
296 296
     {
297 297
         list($hash, $pin) = is_array($thumbprint) ? $thumbprint : [$thumbprint, ''];
298 298
         $shellCommand = self::getExec($this->curlExec)
Please login to merge, or discard this patch.