Completed
Push — master ( 0864bb...f3fc5f )
by Fede
08:54 queued 07:04
created
src/Environment/StdEnvironment.php 1 patch
Spacing   +17 added lines, -17 removed lines patch added patch discarded remove patch
@@ -7,56 +7,56 @@
 block discarded – undo
7 7
     public function __construct()
8 8
     {
9 9
         $this->container += [
10
-            '+' => function () {
10
+            '+' => function() {
11 11
                 return array_sum(func_get_arg(0));
12 12
             },
13
-            '-' => function () {
13
+            '-' => function() {
14 14
                 list($first, $second) = func_get_arg(0); // array [5, 3]
15 15
                 return $first - $second;
16 16
             },
17
-            '*' => function () {
17
+            '*' => function() {
18 18
                 return array_product(func_get_arg(0));
19 19
             },
20
-            '/' => function () {
20
+            '/' => function() {
21 21
                 return func_get_arg(0)[0] / func_get_arg(0)[1];
22 22
             },
23
-            '>' => function () {
23
+            '>' => function() {
24 24
                 return func_get_arg(0)[0] > func_get_arg(0)[1];
25 25
             },
26
-            '>=' => function () {
26
+            '>=' => function() {
27 27
                 return func_get_arg(0)[0] >= func_get_arg(0)[1];
28 28
             },
29
-            '<' => function () {
29
+            '<' => function() {
30 30
                 return func_get_arg(0)[0] < func_get_arg(0)[1];
31 31
             },
32
-            '<=' => function () {
32
+            '<=' => function() {
33 33
                 return func_get_arg(0)[0] <= func_get_arg(0)[1];
34 34
             },
35
-            '=' => function () {
35
+            '=' => function() {
36 36
                 return func_get_arg(0)[0] == func_get_arg(0)[1];
37 37
             },
38
-            'abs' => function () {
38
+            'abs' => function() {
39 39
                 return abs(func_get_arg(0));
40 40
             },
41
-            'not' => function () {
41
+            'not' => function() {
42 42
                 return !func_get_arg(0);
43 43
             },
44
-            'first' => function () {
44
+            'first' => function() {
45 45
                 return func_get_arg(0)[0][0];
46 46
             },
47
-            'list' => function () {
47
+            'list' => function() {
48 48
                 return func_get_args()[0];
49 49
             },
50
-            'eq?' => function () {
50
+            'eq?' => function() {
51 51
                 return func_get_arg(0)[0] == func_get_arg(0)[1];
52 52
             },
53
-            'number?' => function () {
53
+            'number?' => function() {
54 54
                 return is_numeric(func_get_arg(0));
55 55
             },
56
-            'quote' => function () {
56
+            'quote' => function() {
57 57
                 return implode(' ', func_get_arg(0));
58 58
             },
59
-            'define' => function () {
59
+            'define' => function() {
60 60
                 list($name, $value) = func_get_arg(0);
61 61
                 $this[$name] = $value;
62 62
             },
Please login to merge, or discard this patch.