Skip to content

Commit 876c7e4

Browse files
Merge pull request #6 from tomkiernan120/Development
Development
2 parents 3a797c6 + d9fe390 commit 876c7e4

File tree

5 files changed

+2
-34
lines changed

5 files changed

+2
-34
lines changed

src/Form/Handler.php

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@ public function open( $formSettings = [] ){
5151

5252
$this->tag->output([ "tag" => "input", "attr" => [ "type" => "hidden", "name" => "http-friend-name" ] ] );
5353
echo ob_get_clean();
54+
return $this;
5455
}
5556

5657
public function close(){
@@ -134,12 +135,6 @@ public function color( $attr = [], $options = [] )
134135
$this->tag->output( [ "tag" => "input", "attr" => $attr ] );
135136
}
136137

137-
public function color( $attr = [], $options = [] )
138-
{
139-
$attr["type"] = strtolower( __METHOD__ );
140-
$this->tag->output( [ "tag" => "input", "attr" => $attr ] );
141-
}
142-
143138
public function date( $attr = [], $options = [] )
144139
{
145140
$attr["type"] = strtolower( __METHOD__ );
@@ -219,7 +214,7 @@ public function select( $attr = [], $options = [] )
219214
if( !empty( $options ) ) {
220215

221216
foreach( $options as $ak => $av ){
222-
echo "<option "
217+
echo "<option ";
223218
if( isset( $attr["valueOnly"] ) ){
224219
echo " value=\"{$av}\" ";
225220
}

src/Tags/Tag.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,6 @@ public function createElement( $tag, $attr = [], $selfClosing = false, $close =
5454

5555

5656
$element .= (( $selfClosing ) ? "/" : "" ) . ">";
57-
error_log( print_r( $element,1 ) );
5857

5958
return $element;
6059
}

test/index.php

Lines changed: 0 additions & 20 deletions
This file was deleted.

test/php-error.log

Lines changed: 0 additions & 6 deletions
This file was deleted.

test/testimg.jpg

-8.81 KB
Binary file not shown.

0 commit comments

Comments
 (0)