Passed
Push — master ( b66df7...5c9391 )
by Nikita
07:39 queued 06:15
created
CryptoProCli.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -63,7 +63,7 @@  discard block
 block discarded – undo
63 63
      *
64 64
      * @return string|false|null
65 65
      */
66
-    public function getSigns(): string|false|null
66
+    public function getSigns(): string | false | null
67 67
     {
68 68
         return shell_exec(self::getExec($this->certmgrExec) . ' -list -store uMy');
69 69
     }
@@ -78,7 +78,7 @@  discard block
 block discarded – undo
78 78
      * @param bool $detached Создать открепленную подпись
79 79
      * @throws Cli
80 80
      */
81
-    public function signFile(string $file, string|array $thumbprint, string $toFile = '', bool $detached = false): void
81
+    public function signFile(string $file, string | array $thumbprint, string $toFile = '', bool $detached = false): void
82 82
     {
83 83
         list($hash, $pin) = is_array($thumbprint) ? $thumbprint : [$thumbprint, ''];
84 84
         $shellCommand = self::getExec($this->cryptcpExec)
@@ -105,7 +105,7 @@  discard block
 block discarded – undo
105 105
      * @return bool|string
106 106
      * @throws Cli
107 107
      */
108
-    public function signData(string $data, string|array $thumbprint): bool|string
108
+    public function signData(string $data, string | array $thumbprint): bool | string
109 109
     {
110 110
         $from = tempnam('/tmp', 'cpsign');
111 111
         $to = tempnam('/tmp', 'cpsign');
@@ -127,7 +127,7 @@  discard block
 block discarded – undo
127 127
      * @param string|array $thumbprint SHA1 hash подписи, либо неассоциативный массив собержащий thumbprint и pin пароль ключевого контейнера
128 128
      * @throws Cli
129 129
      */
130
-    public function addSignToFile(string $file, string|array $thumbprint): void
130
+    public function addSignToFile(string $file, string | array $thumbprint): void
131 131
     {
132 132
         list($hash, $pin) = is_array($thumbprint) ? $thumbprint : [$thumbprint, ''];
133 133
         $shellCommand = self::getExec($this->cryptcpExec)
@@ -276,12 +276,12 @@  discard block
 block discarded – undo
276 276
      */
277 277
     public function proxyCurl(
278 278
         string $url,
279
-        string|array $thumbprint,
279
+        string | array $thumbprint,
280 280
         string $method = 'GET',
281 281
         string $bearer = null,
282 282
         string $contentType = null,
283 283
         string $data = null
284
-    ): bool|string
284
+    ): bool | string
285 285
     {
286 286
         list($hash, $pin) = is_array($thumbprint) ? $thumbprint : [$thumbprint, ''];
287 287
         $shellCommand = self::getExec($this->curlExec)
Please login to merge, or discard this patch.