Completed
Push — master ( ce0f57...3a576c )
by Michael
03:48 queued 02:22
created
examples/Aes256Base64.php 1 patch
Braces   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -2,8 +2,8 @@
 block discarded – undo
2 2
 
3 3
 namespace Dcrypt\Examples;
4 4
 
5
-class Aes256Base64 extends \Dcrypt\Aes256Gcm
6
-{
5
+class Aes256Base64 extends \Dcrypt\Aes256Gcm
6
+{
7 7
     public static function decrypt(string $data, string $key): string
8 8
     {
9 9
         return parent::decrypt(\base64_decode($data), $key);
Please login to merge, or discard this patch.
examples/support.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -8,7 +8,7 @@  discard block
 block discarded – undo
8 8
  * Displays supported ciphers and algos
9 9
  */
10 10
 
11
-require __DIR__ . '/../vendor/autoload.php';
11
+require __DIR__.'/../vendor/autoload.php';
12 12
 
13 13
 $key = \Dcrypt\OpensslKey::create();
14 14
 
@@ -27,7 +27,7 @@  discard block
 block discarded – undo
27 27
         $d = \Dcrypt\OpensslStatic::decrypt($e, $key, $meth, 'sha256');
28 28
 
29 29
         echo " [pass] ";
30
-    } catch (\Exception|\Error $e) {
30
+    } catch (\Exception | \Error $e) {
31 31
         $m = $e->getMessage();
32 32
         echo " [fail] [!!!]";
33 33
     } finally {
@@ -50,7 +50,7 @@  discard block
 block discarded – undo
50 50
         $d = \Dcrypt\OpensslStatic::decrypt($e, $key, 'aes-256-gcm', $algo);
51 51
 
52 52
         echo " [pass] ";
53
-    } catch (\Exception|\Error $e) {
53
+    } catch (\Exception | \Error $e) {
54 54
         $m = $e->getMessage();
55 55
         echo " [fail] [!!!]";
56 56
     } finally {
Please login to merge, or discard this patch.