Passed
Push — master ( 08368b...d03553 )
by Sebastian
02:27
created
src/VariableInfo.php 1 patch
Indentation   +41 added lines, -41 removed lines patch added patch discarded remove patch
@@ -19,25 +19,25 @@  discard block
 block discarded – undo
19 19
     const TYPE_UNKNOWN = 'unknown type';
20 20
     const TYPE_CALLABLE = 'callable';
21 21
 
22
-   /**
23
-    * @var string
24
-    */
22
+    /**
23
+     * @var string
24
+     */
25 25
     protected $string;
26 26
     
27
-   /**
28
-    * @var mixed
29
-    */
27
+    /**
28
+     * @var mixed
29
+     */
30 30
     protected $value;
31 31
     
32
-   /**
33
-    * @var string
34
-    */
32
+    /**
33
+     * @var string
34
+     */
35 35
     protected $type;
36 36
     
37
-   /**
38
-    * @param mixed $value
39
-    * @param array|null $serialized
40
-    */
37
+    /**
38
+     * @param mixed $value
39
+     * @param array|null $serialized
40
+     */
41 41
     public function __construct($value, $serialized=null)
42 42
     {
43 43
         if(is_array($serialized))
@@ -50,26 +50,26 @@  discard block
 block discarded – undo
50 50
         }
51 51
     }
52 52
     
53
-   /**
54
-    * Creates a new variable info instance from a PHP variable
55
-    * of any type.
56
-    * 
57
-    * @param mixed $variable
58
-    * @return VariableInfo
59
-    */
53
+    /**
54
+     * Creates a new variable info instance from a PHP variable
55
+     * of any type.
56
+     * 
57
+     * @param mixed $variable
58
+     * @return VariableInfo
59
+     */
60 60
     public static function fromVariable($variable) : VariableInfo
61 61
     {
62 62
         return new VariableInfo($variable);
63 63
     }
64 64
     
65
-   /**
66
-    * Restores a variable info instance using a previously serialized
67
-    * array using the serialize() method.
68
-    * 
69
-    * @param array $serialized
70
-    * @return VariableInfo
71
-    * @see VariableInfo::serialize()
72
-    */
65
+    /**
66
+     * Restores a variable info instance using a previously serialized
67
+     * array using the serialize() method.
68
+     * 
69
+     * @param array $serialized
70
+     * @return VariableInfo
71
+     * @see VariableInfo::serialize()
72
+     */
73 73
     public static function fromSerialized(array $serialized) : VariableInfo
74 74
     {
75 75
         return new VariableInfo(null, $serialized);
@@ -100,12 +100,12 @@  discard block
 block discarded – undo
100 100
         return $this->value;
101 101
     }
102 102
     
103
-   /**
104
-    * The variable type - this is the same string that
105
-    * is returned by the PHP function `gettype`.
106
-    * 
107
-    * @return string
108
-    */
103
+    /**
104
+     * The variable type - this is the same string that
105
+     * is returned by the PHP function `gettype`.
106
+     * 
107
+     * @return string
108
+     */
109 109
     public function getType() : string
110 110
     {
111 111
         return $this->type;
@@ -119,13 +119,13 @@  discard block
 block discarded – undo
119 119
         );
120 120
     }
121 121
     
122
-   /**
123
-    * Whether to prepend the variable type before the value, 
124
-    * like the var_dump function. Example: <code>string "Some text"</code>.
125
-    * 
126
-    * @param bool $enable
127
-    * @return VariableInfo
128
-    */
122
+    /**
123
+     * Whether to prepend the variable type before the value, 
124
+     * like the var_dump function. Example: <code>string "Some text"</code>.
125
+     * 
126
+     * @param bool $enable
127
+     * @return VariableInfo
128
+     */
129 129
     public function enableType(bool $enable=true) : VariableInfo
130 130
     {
131 131
         return $this->setOption('prepend-type', $enable);
Please login to merge, or discard this patch.