Completed
Push — master ( 12d765...9c067a )
by Scott
02:40
created
src/ArgumentHelper.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -52,7 +52,7 @@
 block discarded – undo
52 52
         return $object instanceof $class;
53 53
     }
54 54
 
55
-    public function newReturnType($type, $arg=null)
55
+    public function newReturnType($type, $arg = null)
56 56
     {
57 57
         $class = $this->typeClassPath($type);
58 58
         return $arg === null ? new $class() : new $class($arg);
Please login to merge, or discard this patch.
src/data_types/HashType.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -15,7 +15,7 @@
 block discarded – undo
15 15
         foreach ($this->collection as $key => $val) {
16 16
             $separator = $first ? '' : ', ';
17 17
             $first = false;
18
-            $string .= $separator. $key. ' '. $val->value();
18
+            $string .= $separator . $key . ' ' . $val->value();
19 19
         }
20 20
         return $this->ends()[0] . $string . $this->ends()[1];
21 21
     }
Please login to merge, or discard this patch.
src/data_types/LambdaType.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -23,7 +23,7 @@
 block discarded – undo
23 23
         $env = &$this->evaluator->currentEnv;
24 24
         $newEnv = $env->makeChild();
25 25
         $env = $env->values[$newEnv];
26
-        for ($i=0; $i<$this->args->count(); $i++) {
26
+        for ($i = 0; $i < $this->args->count(); $i++) {
27 27
             $env->set($this->args->get($i)->value(), $params[$i]);
28 28
         }
29 29
         $funcVal = $this->evaluator->getReturn($this->body);
Please login to merge, or discard this patch.
src/Environment.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -7,7 +7,7 @@
 block discarded – undo
7 7
     public $values = [];
8 8
     private $upperEnv = null;
9 9
 
10
-    public function __construct(Environment $upperEnvironment=null)
10
+    public function __construct(Environment $upperEnvironment = null)
11 11
     {
12 12
         $this->upperEnv = $upperEnvironment;
13 13
     }
Please login to merge, or discard this patch.
src/Reader.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -24,6 +24,6 @@
 block discarded – undo
24 24
 
25 25
     public function hasNext()
26 26
     {
27
-        return isset($this->characters[$this->position + 1]);
27
+        return isset($this->characters[$this->position+1]);
28 28
     }
29 29
 }
Please login to merge, or discard this patch.
src/functions/core/First.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -13,7 +13,7 @@
 block discarded – undo
13 13
 
14 14
     public function run(array $args)
15 15
     {
16
-        if (!isset($args[0])|| !($args[0] instanceof AbstractCollection)) {
16
+        if (!isset($args[0]) || !($args[0] instanceof AbstractCollection)) {
17 17
             throw new ArgumentException('First expects argument to be a collection.');
18 18
         }
19 19
         return $args[0]->first();
Please login to merge, or discard this patch.
src/functions/core/Rest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -18,7 +18,7 @@
 block discarded – undo
18 18
 
19 19
     public function run(array $args)
20 20
     {
21
-        if (!isset($args[0])|| !($args[0] instanceof AbstractCollection)) {
21
+        if (!isset($args[0]) || !($args[0] instanceof AbstractCollection)) {
22 22
             throw new ArgumentException('Rest expects argument to be a collection.');
23 23
         }
24 24
         return new VectorType(array_values($args[0]->rest()));
Please login to merge, or discard this patch.
src/functions/special/DoBlock.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -8,7 +8,7 @@
 block discarded – undo
8 8
     {
9 9
         $last = end($args);
10 10
         array_pop($args);
11
-        foreach($args as $arg) {
11
+        foreach ($args as $arg) {
12 12
             $eval->getReturn($arg);
13 13
         }
14 14
         return $eval->getReturn($last);
Please login to merge, or discard this patch.
src/functions/special/Quasiquote.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -15,8 +15,7 @@
 block discarded – undo
15 15
                 if ($element->value() == 'unquote') {
16 16
                     $newValue = $eval->getReturn($list->rest()[0]);
17 17
                     $list = $newValue;
18
-                }
19
-                else if ($element instanceof ListType && !empty($element->value())) {
18
+                } else if ($element instanceof ListType && !empty($element->value())) {
20 19
                     if ($element->first()->value() == 'unquote') {
21 20
                         $newValue = $eval->getReturn($element->rest()[0]);
22 21
                         $list->set($newValue, $index);
Please login to merge, or discard this patch.