Completed
Push — master ( 66dfdd...399717 )
by Scott
02:35 queued 23s
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/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/data_types/StringType.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -3,7 +3,7 @@  discard block
 block discarded – undo
3 3
 
4 4
 class StringType extends AbstractAtom
5 5
 {
6
-    public function __construct($token, $dontFormat=false)
6
+    public function __construct($token, $dontFormat = false)
7 7
     {
8 8
         if ($dontFormat) {
9 9
             $this->setValue($token);
@@ -20,6 +20,6 @@  discard block
 block discarded – undo
20 20
             '/\\\n/' // New lines (\n)
21 21
         ];
22 22
         $replaces = ['', '"', "\n"];
23
-        return preg_replace($searches, $replaces , $string);
23
+        return preg_replace($searches, $replaces, $string);
24 24
     }
25 25
 }
Please login to merge, or discard this patch.
src/data_types/AbstractCollection.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -7,7 +7,7 @@  discard block
 block discarded – undo
7 7
 
8 8
     abstract protected function ends();
9 9
 
10
-    public function __construct(array $elements=[])
10
+    public function __construct(array $elements = [])
11 11
     {
12 12
         $this->collection = $elements;
13 13
     }
@@ -18,7 +18,7 @@  discard block
 block discarded – undo
18 18
             ? $this->collection[$key] : null;
19 19
     }
20 20
 
21
-    public function set($value, $key=null)
21
+    public function set($value, $key = null)
22 22
     {
23 23
         if (null !== $key) {
24 24
             $this->collection[$key] = $value;
@@ -57,8 +57,8 @@  discard block
 block discarded – undo
57 57
             $separator = $first ? '' : ', ';
58 58
             $first = false;
59 59
             $string .=
60
-                $separator.
61
-                (is_string($key) ? $key. ' ' : '').
60
+                $separator .
61
+                (is_string($key) ? $key . ' ' : '') .
62 62
                 (method_exists($val, '__toString') ? $val->__toString() : $val);
63 63
         }
64 64
         return $this->ends()[0] . $string . $this->ends()[1];
Please login to merge, or discard this patch.
src/functions/core/Subtract.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
         $value = $args[0]->value();
19 19
         array_shift($args);
20 20
         if (empty($args)) {
21
-            return new NumberType($value - $value - $value);
21
+            return new NumberType($value-$value-$value);
22 22
         }
23 23
         foreach ($args as $number) {
24 24
             $value -= $number->value();
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
@@ -12,7 +12,7 @@
 block discarded – undo
12 12
         }
13 13
         $last = end($args);
14 14
         array_pop($args);
15
-        foreach($args as $arg) {
15
+        foreach ($args as $arg) {
16 16
             $this->eval->getReturn($arg);
17 17
         }
18 18
         return $this->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 = $this->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 = $this->eval->getReturn($element->rest()[0]);
22 21
                         $list->set($newValue, $index);
Please login to merge, or discard this patch.
src/functions/special/NamespaceBlock.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
         $last = end($args);
24 24
         array_pop($args);
25 25
         array_shift($args);
26
-        foreach($args as $arg) {
26
+        foreach ($args as $arg) {
27 27
             $this->eval->getReturn($arg);
28 28
         }
29 29
         $return = $this->eval->getReturn($last);
Please login to merge, or discard this patch.