Completed
Push — master ( a88f5f...b66df7 )
by Nikita
22s queued 12s
created
CryptoProCli.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -58,7 +58,7 @@  discard block
 block discarded – undo
58 58
      *
59 59
      * @return string|false|null
60 60
      */
61
-    public function getSigns(): string|false|null
61
+    public function getSigns(): string | false | null
62 62
     {
63 63
         return shell_exec(self::getExec($this->certmgrExec) . ' -list -store uMy');
64 64
     }
@@ -73,7 +73,7 @@  discard block
 block discarded – undo
73 73
      * @param bool $detached Создать открепленную подпись
74 74
      * @throws Cli
75 75
      */
76
-    public function signFile(string $file, string|array $thumbprint, string $toFile = '', bool $detached = false): void
76
+    public function signFile(string $file, string | array $thumbprint, string $toFile = '', bool $detached = false): void
77 77
     {
78 78
         list($hash, $pin) = is_array($thumbprint) ? $thumbprint : [$thumbprint, ''];
79 79
         $shellCommand = self::getExec($this->cryptcpExec)
@@ -100,7 +100,7 @@  discard block
 block discarded – undo
100 100
      * @return bool|string
101 101
      * @throws Cli
102 102
      */
103
-    public function signData(string $data, string|array $thumbprint): bool|string
103
+    public function signData(string $data, string | array $thumbprint): bool | string
104 104
     {
105 105
         $from = tempnam('/tmp', 'cpsign');
106 106
         $to = tempnam('/tmp', 'cpsign');
@@ -122,7 +122,7 @@  discard block
 block discarded – undo
122 122
      * @param string|array $thumbprint SHA1 hash подписи, либо неассоциативный массив собержащий thumbprint и pin пароль ключевого контейнера
123 123
      * @throws Cli
124 124
      */
125
-    public function addSignToFile(string $file, string|array $thumbprint): void
125
+    public function addSignToFile(string $file, string | array $thumbprint): void
126 126
     {
127 127
         list($hash, $pin) = is_array($thumbprint) ? $thumbprint : [$thumbprint, ''];
128 128
         $shellCommand = self::getExec($this->cryptcpExec)
Please login to merge, or discard this patch.