Passed
Push — main ( c1f98d...69b186 )
by Sammy
06:34 queued 05:03
created
Element.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -32,7 +32,7 @@
 block discarded – undo
32 32
 
33 33
         foreach ($this->attributeList as $k => $v) {
34 34
             if (!is_null($v) && $v !== '' && !is_array($v)) {
35
-                $ret .=  is_int($k) ? " $v" : sprintf(' %s="%s"', $k, $v);
35
+                $ret .= is_int($k) ? " $v" : sprintf(' %s="%s"', $k, $v);
36 36
             }
37 37
         }
38 38
 
Please login to merge, or discard this patch.
Form.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -12,10 +12,10 @@  discard block
 block discarded – undo
12 12
     {
13 13
       // arguments [name, value, [attributes], [errors]]
14 14
         $i = 0;
15
-        $field_name =  $arguments[$i++] ?? null;
15
+        $field_name = $arguments[$i++] ?? null;
16 16
         $field_value = $arguments[$i++] ?? null;
17
-        $attributes =  $arguments[$i++] ?? [];
18
-        $errors =      $arguments[$i++] ?? [];
17
+        $attributes = $arguments[$i++] ?? [];
18
+        $errors = $arguments[$i++] ?? [];
19 19
 
20 20
 
21 21
         $attributes['type'] = $element_type;
@@ -63,7 +63,7 @@  discard block
 block discarded – undo
63 63
         foreach ($option_list as $value => $label) {
64 64
             $option_attributes = ['value' => $value];
65 65
             if ($selected == $value) {
66
-                $option_attributes['selected'] =  'selected';
66
+                $option_attributes['selected'] = 'selected';
67 67
             }
68 68
 
69 69
             $options .= new Element('option', $label, $option_attributes);
@@ -113,6 +113,6 @@  discard block
 block discarded – undo
113 113
         }
114 114
 
115 115
       // vd($attributes, $tag);
116
-        return $label . (new Element($tag, $content, $attributes));
116
+        return $label.(new Element($tag, $content, $attributes));
117 117
     }
118 118
 }
Please login to merge, or discard this patch.
Marker.php 2 patches
Indentation   +124 added lines, -124 removed lines patch added patch discarded remove patch
@@ -5,130 +5,130 @@
 block discarded – undo
5 5
  * Marker, hommage to Christian François Bouche-Villeneuve aka Chris Marker
6 6
  */
7 7
 
8
- /**
9
-  * show off @method
10
-  *
11
-  * @method string abbr(string $innertext, array $attributes) creates an abbreviation or an acronym
12
-  * @method string acronym(string $innertext, array $attributes) creates an acronym (not supported in HTML5. use abbr() instead)
13
-  * @method string address(string $innertext, array $attributes) creates contact information for the author/owner of a document
14
-  * @method string applet(string $innertext, array $attributes) creates an embedded applet (not supported in HTML5. use embed() or <object> instead)
15
-  * @method string area(string $innertext, array $attributes) creates an area inside an image map
16
-  * @method string article(string $innertext, array $attributes) creates an article
17
-  * @method string aside(string $innertext, array $attributes) creates content aside from the page content
18
-  * @method string audio(string $innertext, array $attributes) creates embedded sound content
19
-  * @method string b(string $innertext, array $attributes) creates bold text
20
-  * @method string base(string $innertext, array $attributes) creates an element that specifies the base url/target for all relative urls in a document
21
-  * @method string basefont(string $innertext, array $attributes) creates an element that specifies a default color, size, and font for all text in a document (not supported in HTML5. use CSS instead)
22
-  * @method string bdi(string $innertext, array $attributes) creates an element that isolates a part of text that might be formatted in a different direction from other text outside it
23
-  * @method string bdo(string $innertext, array $attributes) creates an element that overrides the current text direction
24
-  * @method string big(string $innertext, array $attributes) creates an element that defines big text (not supported in HTML5. use CSS instead)
25
-  * @method string blockquote(string $innertext, array $attributes) creates a section that is quoted from another source
26
-  * @method string body(string $innertext, array $attributes) creates the document's body
27
-  * @method string br(string $innertext, array $attributes) creates a single line break
28
-  * @method string button(string $innertext, array $attributes) creates a clickable button
29
-  * @method string canvas(string $innertext, array $attributes) used to draw graphics, on the fly, via scripting (usually javascript)
30
-  * @method string caption(string $innertext, array $attributes) creates a table caption
31
-  * @method string center(string $innertext, array $attributes) defines centered text (not supported in HTML5. use CSS instead)
32
-  * @method string cite(string $innertext, array $attributes) creates the title of a work
33
-  * @method string code(string $innertext, array $attributes) creates a piece of computer code
34
-  * @method string col(string $innertext, array $attributes) specifies column properties for each column within a <colgroup> element
35
-  * @method string colgroup(string $innertext, array $attributes) specifies a group of one or more columns in a table for formatting
36
-  * @method string data(string $innertext, array $attributes) adds a machine-readable translation of a given content
37
-  * @method string datalist(string $innertext, array $attributes) specifies a list of pre-defined options for input controls
38
-  * @method string dd(string $innertext, array $attributes) creates a description/value of a term in a description list
39
-  * @method string del(string $innertext, array $attributes) creates text that has been deleted from a document
40
-  * @method string details(string $innertext, array $attributes) creates additional details that the user can view or hide
41
-  * @method string dfn(string $innertext, array $attributes) specifies a term that is going to be defined within the content
42
-  * @method string dialog(string $innertext, array $attributes) creates a dialog box or window
43
-  * @method string dir(string $innertext, array $attributes) defines a directory list (not supported in HTML5. use ul() instead)
44
-  * @method string div(string $innertext, array $attributes) creates a section in a document
45
-  * @method string dl(string $innertext, array $attributes) creates a description list
46
-  * @method string dt(string $innertext, array $attributes) creates a term/name in a description list
47
-  * @method string em(string $innertext, array $attributes) creates emphasized text
48
-  * @method string embed(string $innertext, array $attributes) creates a container for an external application
49
-  * @method string fieldset(string $innertext, array $attributes) groups related elements in a form
50
-  * @method string figcaption(string $innertext, array $attributes) creates a caption for a <figure> element
51
-  * @method string figure(string $innertext, array $attributes) specifies self-contained content
52
-  * @method string font(string $innertext, array $attributes) defines font, color, and size for text    (not supported in HTML5. use CSS instead)
53
-  * @method string footer(string $innertext, array $attributes) creates a footer for a document or section
54
-  * @method string form(string $innertext, array $attributes) creates an HTML form for user input
55
-  * @method string frame(string $innertext, array $attributes) defines a window (a frame) in a frameset (not supported in HTML5)
56
-  * @method string frameset(string $innertext, array $attributes) defines a set of frames   (not supported in HTML5)
57
-  * @method string h1(string $innertext, array $attributes) creates HTML headings 1
58
-  * @method string h2(string $innertext, array $attributes) creates HTML headings 2
59
-  * @method string h3(string $innertext, array $attributes) creates HTML headings 3
60
-  * @method string h4(string $innertext, array $attributes) creates HTML headings 4
61
-  * @method string h5(string $innertext, array $attributes) creates HTML headings 5
62
-  * @method string h6(string $innertext, array $attributes) creates HTML headings 6
63
-  * @method string head(string $innertext, array $attributes) contains metadata/information for the document
64
-  * @method string header(string $innertext, array $attributes) creates a header for a document or section
65
-  * @method string hr(string $innertext, array $attributes) creates a thematic change in the content
66
-  * @method string html(string $innertext, array $attributes) creates the root of an HTML document
67
-  * @method string i(string $innertext, array $attributes) creates a part of text in an alternate voice or mood
68
-  * @method string iframe(string $innertext, array $attributes) creates an inline frame
69
-  * @method string input(string $innertext, array $attributes) creates an input control
70
-  * @method string ins(string $innertext, array $attributes) creates a text that has been inserted into a document
71
-  * @method string kbd(string $innertext, array $attributes) creates keyboard input
72
-  * @method string label(string $innertext, array $attributes) creates a label for an <input> element
73
-  * @method string legend(string $innertext, array $attributes) creates a caption for a <fieldset> element
74
-  * @method string li(string $innertext, array $attributes) creates a list item
75
-  * @method string link(string $innertext, array $attributes) creates the relationship between a document and an external resource (most used to link to style sheets)
76
-  * @method string main(string $innertext, array $attributes) specifies the main content of a document
77
-  * @method string map(string $innertext, array $attributes) creates an image map
78
-  * @method string mark(string $innertext, array $attributes) creates marked/highlighted text
79
-  * @method string meta(string $innertext, array $attributes) creates metadata about an HTML document
80
-  * @method string meter(string $innertext, array $attributes) creates a scalar measurement within a known range (a gauge)
81
-  * @method string nav(string $innertext, array $attributes) creates navigation links
82
-  * @method string noframes(string $innertext, array $attributes) defines an alternate content for users that do not support frames (not supported in HTML5)
83
-  * @method string noscript(string $innertext, array $attributes) creates an alternate content for users that do not support client-side scripts
84
-  * @method string object(string $innertext, array $attributes) creates a container for an external application
85
-  * @method string ol(string $innertext, array $attributes) creates an ordered list
86
-  * @method string optgroup(string $innertext, array $attributes) creates a group of related options in a drop-down list
87
-  * @method string option(string $innertext, array $attributes) creates an option in a drop-down list
88
-  * @method string output(string $innertext, array $attributes) creates the result of a calculation
89
-  * @method string p(string $innertext, array $attributes) creates a paragraph
90
-  * @method string param(string $innertext, array $attributes) creates a parameter for an object
91
-  * @method string picture(string $innertext, array $attributes) creates a container for multiple image resources
92
-  * @method string pre(string $innertext, array $attributes) creates preformatted text
93
-  * @method string progress(string $innertext, array $attributes) represents the progress of a task
94
-  * @method string q(string $innertext, array $attributes) creates a short quotation
95
-  * @method string rp(string $innertext, array $attributes) creates what to show in browsers that do not support ruby annotations
96
-  * @method string rt(string $innertext, array $attributes) creates an explanation/pronunciation of characters (for east asian typography)
97
-  * @method string ruby(string $innertext, array $attributes) creates a ruby annotation (for east asian typography)
98
-  * @method string s(string $innertext, array $attributes) creates text that is no longer correct
99
-  * @method string samp(string $innertext, array $attributes) creates sample output from a computer program
100
-  * @method string script(string $innertext, array $attributes) creates a client-side script
101
-  * @method string section(string $innertext, array $attributes) creates a section in a document
102
-  * @method string select(string $innertext, array $attributes) creates a drop-down list
103
-  * @method string small(string $innertext, array $attributes) creates smaller text
104
-  * @method string source(string $innertext, array $attributes) creates multiple media resources for media elements (<video> and <audio>)
105
-  * @method string span(string $innertext, array $attributes) creates a section in a document
106
-  * @method string strike(string $innertext, array $attributes) defines strikethrough text  not supported in HTML5. use del() or s() instead.
107
-  * @method string strong(string $innertext, array $attributes) creates important text
108
-  * @method string style(string $innertext, array $attributes) creates style information for a document
109
-  * @method string sub(string $innertext, array $attributes) creates subscripted text
110
-  * @method string summary(string $innertext, array $attributes) creates a visible heading for a <details> element
111
-  * @method string sup(string $innertext, array $attributes) creates superscripted text
112
-  * @method string svg(string $innertext, array $attributes) creates a container for svg graphics
113
-  * @method string table(string $innertext, array $attributes) creates a table
114
-  * @method string tbody(string $innertext, array $attributes) groups the body content in a table
115
-  * @method string td(string $innertext, array $attributes) creates a cell in a table
116
-  * @method string template(string $innertext, array $attributes) creates a container for content that should be hidden when the page loads
117
-  * @method string textarea(string $innertext, array $attributes) creates a multiline input control (text area)
118
-  * @method string tfoot(string $innertext, array $attributes) groups the footer content in a table
119
-  * @method string th(string $innertext, array $attributes) creates a header cell in a table
120
-  * @method string thead(string $innertext, array $attributes) groups the header content in a table
121
-  * @method string time(string $innertext, array $attributes) creates a specific time (or datetime)
122
-  * @method string title(string $innertext, array $attributes) creates a title for the document
123
-  * @method string tr(string $innertext, array $attributes) creates a row in a table
124
-  * @method string track(string $innertext, array $attributes) creates text tracks for media elements (<video> and <audio>)
125
-  * @method string tt(string $innertext, array $attributes) creates an element that defines teletype text (not supported in HTML5. use CSS instead)
126
-  * @method string u(string $innertext, array $attributes) creates some text that is unarticulated and styled differently from normal text
127
-  * @method string ul(string $innertext, array $attributes) creates an unordered list
128
-  * @method string var(string $innertext, array $attributes) creates a variable
129
-  * @method string video(string $innertext, array $attributes) creates embedded video content
130
-  * @method string wbr(string $innertext, array $attributes) creates a possible line-break
131
-  */
8
+  /**
9
+   * show off @method
10
+   *
11
+   * @method string abbr(string $innertext, array $attributes) creates an abbreviation or an acronym
12
+   * @method string acronym(string $innertext, array $attributes) creates an acronym (not supported in HTML5. use abbr() instead)
13
+   * @method string address(string $innertext, array $attributes) creates contact information for the author/owner of a document
14
+   * @method string applet(string $innertext, array $attributes) creates an embedded applet (not supported in HTML5. use embed() or <object> instead)
15
+   * @method string area(string $innertext, array $attributes) creates an area inside an image map
16
+   * @method string article(string $innertext, array $attributes) creates an article
17
+   * @method string aside(string $innertext, array $attributes) creates content aside from the page content
18
+   * @method string audio(string $innertext, array $attributes) creates embedded sound content
19
+   * @method string b(string $innertext, array $attributes) creates bold text
20
+   * @method string base(string $innertext, array $attributes) creates an element that specifies the base url/target for all relative urls in a document
21
+   * @method string basefont(string $innertext, array $attributes) creates an element that specifies a default color, size, and font for all text in a document (not supported in HTML5. use CSS instead)
22
+   * @method string bdi(string $innertext, array $attributes) creates an element that isolates a part of text that might be formatted in a different direction from other text outside it
23
+   * @method string bdo(string $innertext, array $attributes) creates an element that overrides the current text direction
24
+   * @method string big(string $innertext, array $attributes) creates an element that defines big text (not supported in HTML5. use CSS instead)
25
+   * @method string blockquote(string $innertext, array $attributes) creates a section that is quoted from another source
26
+   * @method string body(string $innertext, array $attributes) creates the document's body
27
+   * @method string br(string $innertext, array $attributes) creates a single line break
28
+   * @method string button(string $innertext, array $attributes) creates a clickable button
29
+   * @method string canvas(string $innertext, array $attributes) used to draw graphics, on the fly, via scripting (usually javascript)
30
+   * @method string caption(string $innertext, array $attributes) creates a table caption
31
+   * @method string center(string $innertext, array $attributes) defines centered text (not supported in HTML5. use CSS instead)
32
+   * @method string cite(string $innertext, array $attributes) creates the title of a work
33
+   * @method string code(string $innertext, array $attributes) creates a piece of computer code
34
+   * @method string col(string $innertext, array $attributes) specifies column properties for each column within a <colgroup> element
35
+   * @method string colgroup(string $innertext, array $attributes) specifies a group of one or more columns in a table for formatting
36
+   * @method string data(string $innertext, array $attributes) adds a machine-readable translation of a given content
37
+   * @method string datalist(string $innertext, array $attributes) specifies a list of pre-defined options for input controls
38
+   * @method string dd(string $innertext, array $attributes) creates a description/value of a term in a description list
39
+   * @method string del(string $innertext, array $attributes) creates text that has been deleted from a document
40
+   * @method string details(string $innertext, array $attributes) creates additional details that the user can view or hide
41
+   * @method string dfn(string $innertext, array $attributes) specifies a term that is going to be defined within the content
42
+   * @method string dialog(string $innertext, array $attributes) creates a dialog box or window
43
+   * @method string dir(string $innertext, array $attributes) defines a directory list (not supported in HTML5. use ul() instead)
44
+   * @method string div(string $innertext, array $attributes) creates a section in a document
45
+   * @method string dl(string $innertext, array $attributes) creates a description list
46
+   * @method string dt(string $innertext, array $attributes) creates a term/name in a description list
47
+   * @method string em(string $innertext, array $attributes) creates emphasized text
48
+   * @method string embed(string $innertext, array $attributes) creates a container for an external application
49
+   * @method string fieldset(string $innertext, array $attributes) groups related elements in a form
50
+   * @method string figcaption(string $innertext, array $attributes) creates a caption for a <figure> element
51
+   * @method string figure(string $innertext, array $attributes) specifies self-contained content
52
+   * @method string font(string $innertext, array $attributes) defines font, color, and size for text    (not supported in HTML5. use CSS instead)
53
+   * @method string footer(string $innertext, array $attributes) creates a footer for a document or section
54
+   * @method string form(string $innertext, array $attributes) creates an HTML form for user input
55
+   * @method string frame(string $innertext, array $attributes) defines a window (a frame) in a frameset (not supported in HTML5)
56
+   * @method string frameset(string $innertext, array $attributes) defines a set of frames   (not supported in HTML5)
57
+   * @method string h1(string $innertext, array $attributes) creates HTML headings 1
58
+   * @method string h2(string $innertext, array $attributes) creates HTML headings 2
59
+   * @method string h3(string $innertext, array $attributes) creates HTML headings 3
60
+   * @method string h4(string $innertext, array $attributes) creates HTML headings 4
61
+   * @method string h5(string $innertext, array $attributes) creates HTML headings 5
62
+   * @method string h6(string $innertext, array $attributes) creates HTML headings 6
63
+   * @method string head(string $innertext, array $attributes) contains metadata/information for the document
64
+   * @method string header(string $innertext, array $attributes) creates a header for a document or section
65
+   * @method string hr(string $innertext, array $attributes) creates a thematic change in the content
66
+   * @method string html(string $innertext, array $attributes) creates the root of an HTML document
67
+   * @method string i(string $innertext, array $attributes) creates a part of text in an alternate voice or mood
68
+   * @method string iframe(string $innertext, array $attributes) creates an inline frame
69
+   * @method string input(string $innertext, array $attributes) creates an input control
70
+   * @method string ins(string $innertext, array $attributes) creates a text that has been inserted into a document
71
+   * @method string kbd(string $innertext, array $attributes) creates keyboard input
72
+   * @method string label(string $innertext, array $attributes) creates a label for an <input> element
73
+   * @method string legend(string $innertext, array $attributes) creates a caption for a <fieldset> element
74
+   * @method string li(string $innertext, array $attributes) creates a list item
75
+   * @method string link(string $innertext, array $attributes) creates the relationship between a document and an external resource (most used to link to style sheets)
76
+   * @method string main(string $innertext, array $attributes) specifies the main content of a document
77
+   * @method string map(string $innertext, array $attributes) creates an image map
78
+   * @method string mark(string $innertext, array $attributes) creates marked/highlighted text
79
+   * @method string meta(string $innertext, array $attributes) creates metadata about an HTML document
80
+   * @method string meter(string $innertext, array $attributes) creates a scalar measurement within a known range (a gauge)
81
+   * @method string nav(string $innertext, array $attributes) creates navigation links
82
+   * @method string noframes(string $innertext, array $attributes) defines an alternate content for users that do not support frames (not supported in HTML5)
83
+   * @method string noscript(string $innertext, array $attributes) creates an alternate content for users that do not support client-side scripts
84
+   * @method string object(string $innertext, array $attributes) creates a container for an external application
85
+   * @method string ol(string $innertext, array $attributes) creates an ordered list
86
+   * @method string optgroup(string $innertext, array $attributes) creates a group of related options in a drop-down list
87
+   * @method string option(string $innertext, array $attributes) creates an option in a drop-down list
88
+   * @method string output(string $innertext, array $attributes) creates the result of a calculation
89
+   * @method string p(string $innertext, array $attributes) creates a paragraph
90
+   * @method string param(string $innertext, array $attributes) creates a parameter for an object
91
+   * @method string picture(string $innertext, array $attributes) creates a container for multiple image resources
92
+   * @method string pre(string $innertext, array $attributes) creates preformatted text
93
+   * @method string progress(string $innertext, array $attributes) represents the progress of a task
94
+   * @method string q(string $innertext, array $attributes) creates a short quotation
95
+   * @method string rp(string $innertext, array $attributes) creates what to show in browsers that do not support ruby annotations
96
+   * @method string rt(string $innertext, array $attributes) creates an explanation/pronunciation of characters (for east asian typography)
97
+   * @method string ruby(string $innertext, array $attributes) creates a ruby annotation (for east asian typography)
98
+   * @method string s(string $innertext, array $attributes) creates text that is no longer correct
99
+   * @method string samp(string $innertext, array $attributes) creates sample output from a computer program
100
+   * @method string script(string $innertext, array $attributes) creates a client-side script
101
+   * @method string section(string $innertext, array $attributes) creates a section in a document
102
+   * @method string select(string $innertext, array $attributes) creates a drop-down list
103
+   * @method string small(string $innertext, array $attributes) creates smaller text
104
+   * @method string source(string $innertext, array $attributes) creates multiple media resources for media elements (<video> and <audio>)
105
+   * @method string span(string $innertext, array $attributes) creates a section in a document
106
+   * @method string strike(string $innertext, array $attributes) defines strikethrough text  not supported in HTML5. use del() or s() instead.
107
+   * @method string strong(string $innertext, array $attributes) creates important text
108
+   * @method string style(string $innertext, array $attributes) creates style information for a document
109
+   * @method string sub(string $innertext, array $attributes) creates subscripted text
110
+   * @method string summary(string $innertext, array $attributes) creates a visible heading for a <details> element
111
+   * @method string sup(string $innertext, array $attributes) creates superscripted text
112
+   * @method string svg(string $innertext, array $attributes) creates a container for svg graphics
113
+   * @method string table(string $innertext, array $attributes) creates a table
114
+   * @method string tbody(string $innertext, array $attributes) groups the body content in a table
115
+   * @method string td(string $innertext, array $attributes) creates a cell in a table
116
+   * @method string template(string $innertext, array $attributes) creates a container for content that should be hidden when the page loads
117
+   * @method string textarea(string $innertext, array $attributes) creates a multiline input control (text area)
118
+   * @method string tfoot(string $innertext, array $attributes) groups the footer content in a table
119
+   * @method string th(string $innertext, array $attributes) creates a header cell in a table
120
+   * @method string thead(string $innertext, array $attributes) groups the header content in a table
121
+   * @method string time(string $innertext, array $attributes) creates a specific time (or datetime)
122
+   * @method string title(string $innertext, array $attributes) creates a title for the document
123
+   * @method string tr(string $innertext, array $attributes) creates a row in a table
124
+   * @method string track(string $innertext, array $attributes) creates text tracks for media elements (<video> and <audio>)
125
+   * @method string tt(string $innertext, array $attributes) creates an element that defines teletype text (not supported in HTML5. use CSS instead)
126
+   * @method string u(string $innertext, array $attributes) creates some text that is unarticulated and styled differently from normal text
127
+   * @method string ul(string $innertext, array $attributes) creates an unordered list
128
+   * @method string var(string $innertext, array $attributes) creates a variable
129
+   * @method string video(string $innertext, array $attributes) creates embedded video content
130
+   * @method string wbr(string $innertext, array $attributes) creates a possible line-break
131
+   */
132 132
 namespace HexMakina\Marker;
133 133
 
134 134
 class Marker
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -170,7 +170,7 @@
 block discarded – undo
170 170
         return
171 171
         Marker::div(
172 172
             Marker::label(
173
-                Form::input($field_name, $field_value, $attributes) . Marker::span($field_label),
173
+                Form::input($field_name, $field_value, $attributes).Marker::span($field_label),
174 174
                 ['for' => $attributes['id']]
175 175
             ),
176 176
             ['class' => 'checkbutton']
Please login to merge, or discard this patch.