Completed
Push — master ( 0abe3d...0bc5ab )
by Nathan
02:48
created
src/NatePage/EasyHtmlElement/ElementInterface.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -13,14 +13,14 @@  discard block
 block discarded – undo
13 13
      *
14 14
      * @return ElementInterface
15 15
      */
16
-    public function setType(?string $type = null): self;
16
+    public function setType(? string $type = null) : self;
17 17
 
18 18
     /**
19 19
      * Get element type.
20 20
      *
21 21
      * @return null|string
22 22
      */
23
-    public function getType(): ?string;
23
+    public function getType(): ? string;
24 24
 
25 25
     /**
26 26
      * Set element text.
@@ -29,14 +29,14 @@  discard block
 block discarded – undo
29 29
      *
30 30
      * @return ElementInterface
31 31
      */
32
-    public function setText(?string $text = null): self;
32
+    public function setText(? string $text = null) : self;
33 33
 
34 34
     /**
35 35
      * Get element text.
36 36
      *
37 37
      * @return null|string
38 38
      */
39
-    public function getText(): ?string;
39
+    public function getText(): ? string;
40 40
 
41 41
     /**
42 42
      * Add element attribute.
@@ -114,14 +114,14 @@  discard block
 block discarded – undo
114 114
      *
115 115
      * @return ElementInterface
116 116
      */
117
-    public function setParent(?ElementInterface $parent = null): self;
117
+    public function setParent(? ElementInterface $parent = null) : self;
118 118
 
119 119
     /**
120 120
      * Get element parent.
121 121
      *
122 122
      * @return ElementInterface|null
123 123
      */
124
-    public function getParent(): ?self;
124
+    public function getParent(): ? self;
125 125
 
126 126
     /**
127 127
      * Render element.
Please login to merge, or discard this patch.
src/NatePage/EasyHtmlElement/Element.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -23,8 +23,8 @@  discard block
 block discarded – undo
23 23
     protected $parent;
24 24
 
25 25
     public function __construct(
26
-        ?string $type = null,
27
-        ?string $text = null,
26
+        ? string $type = null,
27
+        ? string $text = null,
28 28
         array $attributes = array(),
29 29
         array $children = array()
30 30
     )
@@ -101,7 +101,7 @@  discard block
 block discarded – undo
101 101
     /**
102 102
      * {@inheritdoc}
103 103
      */
104
-    public function getType(): ?string
104
+    public function getType(): ? string
105 105
     {
106 106
         return $this->type;
107 107
     }
@@ -109,7 +109,7 @@  discard block
 block discarded – undo
109 109
     /**
110 110
      * {@inheritdoc}
111 111
      */
112
-    public function setType(?string $type = null): ElementInterface
112
+    public function setType(? string $type = null) : ElementInterface
113 113
     {
114 114
         if (null !== $type) {
115 115
             $this->type = $type;
@@ -121,7 +121,7 @@  discard block
 block discarded – undo
121 121
     /**
122 122
      * {@inheritdoc}
123 123
      */
124
-    public function getText(): ?string
124
+    public function getText(): ? string
125 125
     {
126 126
         return $this->text;
127 127
     }
@@ -129,7 +129,7 @@  discard block
 block discarded – undo
129 129
     /**
130 130
      * {@inheritdoc}
131 131
      */
132
-    public function setText(?string $text = null): ElementInterface
132
+    public function setText(? string $text = null) : ElementInterface
133 133
     {
134 134
         if (null !== $text) {
135 135
             $this->text = $text;
@@ -233,7 +233,7 @@  discard block
 block discarded – undo
233 233
     /**
234 234
      * {@inheritdoc}
235 235
      */
236
-    public function setParent(?ElementInterface $parent = null): ElementInterface
236
+    public function setParent(? ElementInterface $parent = null) : ElementInterface
237 237
     {
238 238
         $this->parent = $parent;
239 239
 
Please login to merge, or discard this patch.