@@ -21,7 +21,7 @@ |
||
21 | 21 | { |
22 | 22 | $instruction = $node->getInstruction($this); |
23 | 23 | |
24 | - if(!isset($instruction->date) && !isset($instruction->input)) { |
|
24 | + if (!isset($instruction->date) && !isset($instruction->input)) { |
|
25 | 25 | return; |
26 | 26 | } |
27 | 27 |
@@ -42,8 +42,7 @@ |
||
42 | 42 | } |
43 | 43 | |
44 | 44 | $result = $currency ? |
45 | - $number->formatCurrency($instruction->input, $currency) : |
|
46 | - $number->format($instruction->input); |
|
45 | + $number->formatCurrency($instruction->input, $currency) : $number->format($instruction->input); |
|
47 | 46 | |
48 | 47 | $node->setResult($result); |
49 | 48 | } |
@@ -4,7 +4,6 @@ |
||
4 | 4 | |
5 | 5 | use LegalThings\DataEnricher\Node; |
6 | 6 | use LegalThings\DataEnricher\Processor; |
7 | -use StephenHill\Base58; |
|
8 | 7 | |
9 | 8 | /** |
10 | 9 | * Hash processor |
@@ -50,8 +50,7 @@ discard block |
||
50 | 50 | public function md5($input, $hmac = null) |
51 | 51 | { |
52 | 52 | return $hmac ? |
53 | - hash_hmac('md5', $input, $hmac) : |
|
54 | - hash('md5', $input); |
|
53 | + hash_hmac('md5', $input, $hmac) : hash('md5', $input); |
|
55 | 54 | } |
56 | 55 | |
57 | 56 | /** |
@@ -63,8 +62,7 @@ discard block |
||
63 | 62 | public function sha1($input, $hmac = null) |
64 | 63 | { |
65 | 64 | return $hmac ? |
66 | - hash_hmac('sha1', $input, $hmac) : |
|
67 | - hash('sha1', $input); |
|
65 | + hash_hmac('sha1', $input, $hmac) : hash('sha1', $input); |
|
68 | 66 | } |
69 | 67 | |
70 | 68 | /** |
@@ -76,8 +74,7 @@ discard block |
||
76 | 74 | public function sha256($input, $hmac = null) |
77 | 75 | { |
78 | 76 | return $hmac ? |
79 | - hash_hmac('sha256', $input, $hmac) : |
|
80 | - hash('sha256', $input); |
|
77 | + hash_hmac('sha256', $input, $hmac) : hash('sha256', $input); |
|
81 | 78 | } |
82 | 79 | |
83 | 80 | /** |
@@ -89,8 +86,7 @@ discard block |
||
89 | 86 | public function sha512($input, $hmac = null) |
90 | 87 | { |
91 | 88 | return $hmac ? |
92 | - hash_hmac('sha512', $input, $hmac) : |
|
93 | - hash('sha512', $input); |
|
89 | + hash_hmac('sha512', $input, $hmac) : hash('sha512', $input); |
|
94 | 90 | } |
95 | 91 | |
96 | 92 | /** |