Passed
Push — master ( fcca9c...5c491b )
by Jean
07:47
created
src/ExportTrait.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -41,7 +41,7 @@  discard block
 block discarded – undo
41 41
      * @param  array  $options target: mixed | max_parameter_length: int | short_objects: bool
42 42
      * @return string The PHP code corresponding to this call chain
43 43
      */
44
-    public function toString(array $options=[])
44
+    public function toString(array $options = [])
45 45
     {
46 46
         $target = isset($options['target']) ? $options['target'] : $this->expectedTarget;
47 47
         $max_param_length = isset($options['max_parameter_length']) ? $options['max_parameter_length'] : 56;
@@ -57,7 +57,7 @@  discard block
 block discarded – undo
57 57
         foreach ($this->stack as $i => $call) {
58 58
             if (isset($call['method'])) {
59 59
                 $string .= '->';
60
-                $string .= $call['method'].'(';
60
+                $string .= $call['method'] . '(';
61 61
                 $string .= implode(', ', array_map(function($argument) use ($max_param_length, $short_objects) {
62 62
                     return static::varExport($argument, [
63 63
                         'short_objects' => $short_objects, 
@@ -73,7 +73,7 @@  discard block
 block discarded – undo
73 73
                 ]) . ']';
74 74
             }
75 75
             
76
-            if (! empty($options['limit']) && $options['limit'] == $i) {
76
+            if (!empty($options['limit']) && $options['limit'] == $i) {
77 77
                 break;
78 78
             }
79 79
         }
@@ -88,10 +88,10 @@  discard block
 block discarded – undo
88 88
      * @param  array  $options max_length: int | short_objects: bool
89 89
      * @return string The PHP code of the variable
90 90
      */
91
-    protected static function varExport($variable, array $options=[])
91
+    protected static function varExport($variable, array $options = [])
92 92
     {
93 93
         $options['max_length']    = isset($options['max_length']) ? $options['max_length'] : 56;
94
-        $options['short_objects'] = (! empty($options['short_objects'])) || in_array('short_objects', $options);
94
+        $options['short_objects'] = (!empty($options['short_objects'])) || in_array('short_objects', $options);
95 95
         
96 96
         $export = var_export($variable, true);
97 97
         
Please login to merge, or discard this patch.