Passed
Branch master (79773e)
by Anne Jan
03:36
created
Category
src/Crypter.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -54,7 +54,7 @@
 block discarded – undo
54 54
      */
55 55
     public function decrypt($data)
56 56
     {
57
-        $data =  openssl_decrypt(
57
+        $data = openssl_decrypt(
58 58
             $data,
59 59
             'AES-128-ECB', 
60 60
             $this->key, 
Please login to merge, or discard this patch.
benchmarks/benchmarks.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -18,11 +18,11 @@
 block discarded – undo
18 18
 
19 19
 $stopwatch->start('encrypt');
20 20
 
21
-for ($i = 0; $i < $amount; $i++ ) {
21
+for ($i = 0; $i < $amount; $i++) {
22 22
     $encrypted = $crypter->encrypt(uniqid('', true));
23 23
     $decrypted = $crypter->decrypt($encrypted);
24 24
 }
25 25
 
26 26
 $event = $stopwatch->stop('encrypt');
27 27
 
28
-echo sprintf('%s items in %s seconds (%s ms), max. memory usage %sKB (%sB)', $amount, $event->getDuration()/1000, $event->getDuration(), $event->getMemory()/1024, $event->getMemory()) . PHP_EOL;
29 28
\ No newline at end of file
29
+echo sprintf('%s items in %s seconds (%s ms), max. memory usage %sKB (%sB)', $amount, $event->getDuration() / 1000, $event->getDuration(), $event->getMemory() / 1024, $event->getMemory()) . PHP_EOL;
30 30
\ No newline at end of file
Please login to merge, or discard this patch.