GitHub Access Token became invalid

It seems like the GitHub access token used for retrieving details about this repository from GitHub became invalid. This might prevent certain types of inspections from being run (in particular, everything related to pull requests).
Please ask an admin of your repository to re-new the access token on this website.

Issues (1495)

model/button.php (131 issues)

1
<?php
0 ignored issues
show
This file is missing a doc comment.
Loading history...
2
namespace PodloveSubscribeButton\Model;
3
4
class Button extends Base {
0 ignored issues
show
Coding Style Documentation introduced by
Missing doc comment for class Button
Loading history...
5
6
	public static $properties = array(
0 ignored issues
show
Coding Style Documentation introduced by
Missing member variable doc comment
Loading history...
7
		// $property => $default value
8
		'size' => 'big',
9
		'color' => '#599677',
10
		'autowidth' => 'on',
11
		'style' => 'filled',
12
		'format' => 'rectangle',
13
		'hide' => 'false'
14
		// Note: the fields 'language' and 'json-data' cannot be set here (No function call allowed within class variables)
0 ignored issues
show
Inline comments must end in full-stops, exclamation marks, or question marks
Loading history...
15
	);
16
17
	public static $style = array(
0 ignored issues
show
Coding Style Documentation introduced by
Missing member variable doc comment
Loading history...
18
		'filled' => 'Filled',
19
		'outline' => 'Outline',
20
		'frameless' => 'Frameless'
21
	);
22
23
	public static $format = array(
0 ignored issues
show
Coding Style Documentation introduced by
Missing member variable doc comment
Loading history...
24
		'rectangle' => 'Rectangle',
25
		'square' => 'Square',
26
		'cover' => 'Cover'
27
	);
28
29
	public static $width = array(
0 ignored issues
show
Coding Style Documentation introduced by
Missing member variable doc comment
Loading history...
30
		'on' => 'Yes',
31
		'off' => 'No'
32
	);
33
34
	public static $size = array(
0 ignored issues
show
Coding Style Documentation introduced by
Missing member variable doc comment
Loading history...
35
		'small' => 'Small',
36
		'medium' => 'Medium',
37
		'big' => 'Big'
38
	);
39
40
41
	/**
42
	 * Fetches a Button or Network Button with a specific name
43
	 * @param  string $name
0 ignored issues
show
There must be exactly one blank line before the tags in a doc comment
Loading history...
Coding Style Documentation introduced by
Missing parameter comment
Loading history...
44
	 * @return object||FALSE
45
	 */
46
	public static function get_button_by_name($name) {
0 ignored issues
show
Method name "Button::get_button_by_name" is not in camel caps format
Loading history...
Expected 1 spaces after opening parenthesis; 0 found
Loading history...
47
		if ( $button = \PodloveSubscribeButton\Model\Button::find_one_by_property('name', $name) ) {
0 ignored issues
show
Assignments must be the first block of code on a line
Loading history...
As per coding style, self should be used for accessing local static members.

This check looks for accesses to local static members using the fully qualified name instead of self::.

<?php

class Certificate {
    const TRIPLEDES_CBC = 'ASDFGHJKL';

    private $key;

    public function __construct()
    {
        $this->key = Certificate::TRIPLEDES_CBC;
    }
}

While this is perfectly valid, the fully qualified name of Certificate::TRIPLEDES_CBC could just as well be replaced by self::TRIPLEDES_CBC. Referencing local members with self:: assured the access will still work when the class is renamed, makes it perfectly clear that the member is in fact local and will usually be shorter.

Loading history...
Expected 1 spaces after opening parenthesis; 0 found
Loading history...
Expected 1 spaces before closing parenthesis; 0 found
Loading history...
48
			return $button;
49
		}
50
51
		if ( $network_button = \PodloveSubscribeButton\Model\NetworkButton::find_one_by_property('name', $name) ) {
0 ignored issues
show
Assignments must be the first block of code on a line
Loading history...
Expected 1 spaces after opening parenthesis; 0 found
Loading history...
Expected 1 spaces before closing parenthesis; 0 found
Loading history...
52
			$network_button->id = $network_button->id . 'N';
53
			return $network_button;
54
		}
55
56
		return false;
57
	}
0 ignored issues
show
Expected 1 blank line before closing function brace; 0 found
Loading history...
58
59
	/**
0 ignored issues
show
Coding Style Documentation introduced by
Doc comment for parameter "$settings" missing
Loading history...
60
	 * Returns either global buttons settings or the default settings
61
	 * @param  array
0 ignored issues
show
There must be exactly one blank line before the tags in a doc comment
Loading history...
Missing parameter name
Loading history...
62
	 * @return array
63
	 */
64
	public static function get_global_setting_with_fallback( $settings=array() ) {
0 ignored issues
show
Method name "Button::get_global_setting_with_fallback" is not in camel caps format
Loading history...
Incorrect spacing between argument "$settings" and equals sign; expected 1 but found 0
Loading history...
Incorrect spacing between default value and equals sign for argument "$settings"; expected 1 but found 0
Loading history...
65
		foreach (self::$properties as $property => $default) {
66
			$settings[$property] = ( get_option('podlove_subscribe_button_default_' . $property) ? get_option('podlove_subscribe_button_default_' . $property) : $default );
0 ignored issues
show
Expected 1 spaces after opening parenthesis; 0 found
Loading history...
Expected 1 spaces before closing parenthesis; 0 found
Loading history...
67
		}
68
69
		return $settings;
70
	}
0 ignored issues
show
Expected 1 blank line before closing function brace; 0 found
Loading history...
71
72
	/**
0 ignored issues
show
Coding Style Documentation introduced by
Doc comment for parameter "$buttonid" missing
Loading history...
Coding Style Documentation introduced by
Doc comment for parameter "$language" missing
Loading history...
73
	 * Gathers all information and renders the Subscribe button.
74
	 * @param  string  $size
0 ignored issues
show
There must be exactly one blank line before the tags in a doc comment
Loading history...
Coding Style Documentation introduced by
Missing parameter comment
Loading history...
75
	 * @param  string  $autowidth
0 ignored issues
show
Coding Style Documentation introduced by
Missing parameter comment
Loading history...
76
	 * @param  string  $style
0 ignored issues
show
Coding Style Documentation introduced by
Missing parameter comment
Loading history...
77
	 * @param  string  $format
0 ignored issues
show
Coding Style Documentation introduced by
Missing parameter comment
Loading history...
78
	 * @param  string  $color
0 ignored issues
show
Coding Style Documentation introduced by
Missing parameter comment
Loading history...
79
	 * @param  boolean $hide
0 ignored issues
show
Coding Style Documentation introduced by
Missing parameter comment
Loading history...
80
	 * @return string
81
	 */
82
	public function render( $size='big', $autowidth='on', $style='filled', $format='rectangle', $color='#599677', $hide = false, $buttonid = false, $language='en' ) {
0 ignored issues
show
Incorrect spacing between argument "$size" and equals sign; expected 1 but found 0
Loading history...
Incorrect spacing between default value and equals sign for argument "$size"; expected 1 but found 0
Loading history...
Incorrect spacing between argument "$autowidth" and equals sign; expected 1 but found 0
Loading history...
Incorrect spacing between default value and equals sign for argument "$autowidth"; expected 1 but found 0
Loading history...
Incorrect spacing between argument "$style" and equals sign; expected 1 but found 0
Loading history...
Incorrect spacing between default value and equals sign for argument "$style"; expected 1 but found 0
Loading history...
Incorrect spacing between argument "$format" and equals sign; expected 1 but found 0
Loading history...
Incorrect spacing between default value and equals sign for argument "$format"; expected 1 but found 0
Loading history...
Incorrect spacing between argument "$color" and equals sign; expected 1 but found 0
Loading history...
Incorrect spacing between default value and equals sign for argument "$color"; expected 1 but found 0
Loading history...
Incorrect spacing between argument "$language" and equals sign; expected 1 but found 0
Loading history...
Incorrect spacing between default value and equals sign for argument "$language"; expected 1 but found 0
Loading history...
83
		$button_styling = array_merge(
84
				$this->get_button_styling($size, $autowidth, $style, $format, $color),
0 ignored issues
show
This line of the multi-line function call does not seem to be indented correctly. Expected 12 spaces, but found 16.
Loading history...
Expected 1 spaces after opening parenthesis; 0 found
Loading history...
Expected 1 spaces before closing parenthesis; 0 found
Loading history...
85
				array(
0 ignored issues
show
This line of the multi-line function call does not seem to be indented correctly. Expected 12 spaces, but found 16.
Loading history...
86
						'hide' => $hide,
87
						'language' => $language
88
					)
89
			);
0 ignored issues
show
This line of the multi-line function call does not seem to be indented correctly. Expected 8 spaces, but found 12.
Loading history...
90
91
		return $this->provide_button_html(
92
			array(
93
				'title' => sanitize_text_field($this->title),
0 ignored issues
show
Expected 1 spaces after opening parenthesis; 0 found
Loading history...
Expected 1 spaces before closing parenthesis; 0 found
Loading history...
94
				'subtitle' => sanitize_text_field($this->subtitle),
0 ignored issues
show
Expected 1 spaces after opening parenthesis; 0 found
Loading history...
Expected 1 spaces before closing parenthesis; 0 found
Loading history...
95
				'description' => sanitize_textarea_field($this->description),
0 ignored issues
show
Expected 1 spaces after opening parenthesis; 0 found
Loading history...
Expected 1 spaces before closing parenthesis; 0 found
Loading history...
96
				'cover' => sanitize_text_field($this->cover),
0 ignored issues
show
Expected 1 spaces after opening parenthesis; 0 found
Loading history...
Expected 1 spaces before closing parenthesis; 0 found
Loading history...
97
				'feeds' => $this->get_feeds_as_array($this->feeds)
0 ignored issues
show
Expected 1 spaces after opening parenthesis; 0 found
Loading history...
Expected 1 spaces before closing parenthesis; 0 found
Loading history...
98
			), $button_styling );
0 ignored issues
show
This line of the multi-line function call does not seem to be indented correctly. Expected 8 spaces, but found 12.
Loading history...
For multi-line function calls, each argument should be on a separate line.

For a function calls that spawns multiple lines, the coding style suggests to split arguments to separate lines like this:

someFunctionCall(
    $firstArgument,
    $secondArgument,
    $thirdArgument
);
Loading history...
For multi-line function calls, the closing parenthesis should be on a new line.

If a function call spawns multiple lines, the coding standard suggests to move the closing parenthesis to a new line:

someFunctionCall(
    $firstArgument,
    $secondArgument,
    $thirdArgument
); // Closing parenthesis on a new line.
Loading history...
99
	}
0 ignored issues
show
Expected 1 blank line before closing function brace; 0 found
Loading history...
100
101
	/**
0 ignored issues
show
Coding Style Documentation introduced by
Doc comment for parameter "$feeds" missing
Loading history...
102
	 * Provides the feed as an array in the required format
103
	 * @return array
0 ignored issues
show
There must be exactly one blank line before the tags in a doc comment
Loading history...
104
	 */
105
	private function get_feeds_as_array( $feeds=array() ) {
0 ignored issues
show
Method name "Button::get_feeds_as_array" is not in camel caps format
Loading history...
Incorrect spacing between argument "$feeds" and equals sign; expected 1 but found 0
Loading history...
Incorrect spacing between default value and equals sign for argument "$feeds"; expected 1 but found 0
Loading history...
106
		$returnedFeeds = array();
107
108
		if (! $feeds)
0 ignored issues
show
Coding Style Best Practice introduced by
It is generally a best practice to always use braces with control structures.

Adding braces to control structures avoids accidental mistakes as your code changes:

// Without braces (not recommended)
if (true)
    doSomething();

// Recommended
if (true) {
    doSomething();
}
Loading history...
109
			return $returnedFeeds;
110
111
		foreach ($feeds as $feed) {
112
			if ( isset(\PodloveSubscribeButton\MediaTypes::$audio[$feed['format']]['extension']) ) {
0 ignored issues
show
Expected 1 spaces after opening parenthesis; 0 found
Loading history...
Expected 1 spaces before closing parenthesis; 0 found
Loading history...
113
				$new_feed = array(
114
						'type' => 'audio',
115
						'format' => \PodloveSubscribeButton\MediaTypes::$audio[$feed['format']]['extension'],
116
						'url' => $feed['url'],
117
						'variant' => 'high'
118
					);
119
120
				if ( isset($feed['itunesfeedid']) && $feed['itunesfeedid'] > 0 )
0 ignored issues
show
Coding Style Best Practice introduced by
It is generally a best practice to always use braces with control structures.

Adding braces to control structures avoids accidental mistakes as your code changes:

// Without braces (not recommended)
if (true)
    doSomething();

// Recommended
if (true) {
    doSomething();
}
Loading history...
Expected 1 spaces after opening parenthesis; 0 found
Loading history...
Expected 1 spaces before closing parenthesis; 0 found
Loading history...
121
					$new_feed['directory-url-itunes'] = "https://itunes.apple.com/podcast/id" . $feed['itunesfeedid'];
0 ignored issues
show
Coding Style Comprehensibility introduced by
The string literal https://itunes.apple.com/podcast/id does not require double quotes, as per coding-style, please use single quotes.

PHP provides two ways to mark string literals. Either with single quotes 'literal' or with double quotes "literal". The difference between these is that string literals in double quotes may contain variables with are evaluated at run-time as well as escape sequences.

String literals in single quotes on the other hand are evaluated very literally and the only two characters that needs escaping in the literal are the single quote itself (\') and the backslash (\\). Every other character is displayed as is.

Double quoted string literals may contain other variables or more complex escape sequences.

<?php

$singleQuoted = 'Value';
$doubleQuoted = "\tSingle is $singleQuoted";

print $doubleQuoted;

will print an indented: Single is Value

If your string literal does not contain variables or escape sequences, it should be defined using single quotes to make that fact clear.

For more information on PHP string literals and available escape sequences see the PHP core documentation.

Loading history...
122
123
				$returnedFeeds[] = $new_feed;
124
			}
125
		}
126
127
		return $returnedFeeds;
128
	}
0 ignored issues
show
Expected 1 blank line before closing function brace; 0 found
Loading history...
129
130
	/**
131
	 * Provides the HTML source of the Subscribe Button
132
	 * @param  array $podcast_data
0 ignored issues
show
There must be exactly one blank line before the tags in a doc comment
Loading history...
Coding Style Documentation introduced by
Missing parameter comment
Loading history...
Expected 2 spaces after parameter type; 1 found
Loading history...
133
	 * @param  array $button_styling
0 ignored issues
show
Coding Style Documentation introduced by
Missing parameter comment
Loading history...
Expected 2 spaces after parameter type; 1 found
Loading history...
134
	 * @param  string $data_attributes
0 ignored issues
show
Coding Style Documentation introduced by
Missing parameter comment
Loading history...
135
	 * @return string
136
	 */
137
	private function provide_button_html($podcast_data, $button_styling, $data_attributes="") {
0 ignored issues
show
Method name "Button::provide_button_html" is not in camel caps format
Loading history...
Expected 1 spaces after opening parenthesis; 0 found
Loading history...
Incorrect spacing between argument "$data_attributes" and equals sign; expected 1 but found 0
Loading history...
Incorrect spacing between default value and equals sign for argument "$data_attributes"; expected 1 but found 0
Loading history...
Coding Style Comprehensibility introduced by
The string literal does not require double quotes, as per coding-style, please use single quotes.

PHP provides two ways to mark string literals. Either with single quotes 'literal' or with double quotes "literal". The difference between these is that string literals in double quotes may contain variables with are evaluated at run-time as well as escape sequences.

String literals in single quotes on the other hand are evaluated very literally and the only two characters that needs escaping in the literal are the single quote itself (\') and the backslash (\\). Every other character is displayed as is.

Double quoted string literals may contain other variables or more complex escape sequences.

<?php

$singleQuoted = 'Value';
$doubleQuoted = "\tSingle is $singleQuoted";

print $doubleQuoted;

will print an indented: Single is Value

If your string literal does not contain variables or escape sequences, it should be defined using single quotes to make that fact clear.

For more information on PHP string literals and available escape sequences see the PHP core documentation.

Loading history...
138
		// Create data attributes for Button
0 ignored issues
show
Inline comments must end in full-stops, exclamation marks, or question marks
Loading history...
139
		foreach ($button_styling as $attribute => $value) {
140
			$data_attributes .= 'data-' . $attribute . '="' . $value . '" ';
141
		}
142
143
		return"
0 ignored issues
show
Language constructs must be followed by a single space; expected "return "
" but found "return"
"
Loading history...
Coding Style Comprehensibility introduced by
The string literal \n <script>\n podcastData does not require double quotes, as per coding-style, please use single quotes.

PHP provides two ways to mark string literals. Either with single quotes 'literal' or with double quotes "literal". The difference between these is that string literals in double quotes may contain variables with are evaluated at run-time as well as escape sequences.

String literals in single quotes on the other hand are evaluated very literally and the only two characters that needs escaping in the literal are the single quote itself (\') and the backslash (\\). Every other character is displayed as is.

Double quoted string literals may contain other variables or more complex escape sequences.

<?php

$singleQuoted = 'Value';
$doubleQuoted = "\tSingle is $singleQuoted";

print $doubleQuoted;

will print an indented: Single is Value

If your string literal does not contain variables or escape sequences, it should be defined using single quotes to make that fact clear.

For more information on PHP string literals and available escape sequences see the PHP core documentation.

Loading history...
144
			<script>
145
				podcastData".$this->id . " = ".json_encode($podcast_data)."
0 ignored issues
show
Concat operator must be surrounded by a single space
Loading history...
Coding Style Comprehensibility introduced by
The string literal = does not require double quotes, as per coding-style, please use single quotes.

PHP provides two ways to mark string literals. Either with single quotes 'literal' or with double quotes "literal". The difference between these is that string literals in double quotes may contain variables with are evaluated at run-time as well as escape sequences.

String literals in single quotes on the other hand are evaluated very literally and the only two characters that needs escaping in the literal are the single quote itself (\') and the backslash (\\). Every other character is displayed as is.

Double quoted string literals may contain other variables or more complex escape sequences.

<?php

$singleQuoted = 'Value';
$doubleQuoted = "\tSingle is $singleQuoted";

print $doubleQuoted;

will print an indented: Single is Value

If your string literal does not contain variables or escape sequences, it should be defined using single quotes to make that fact clear.

For more information on PHP string literals and available escape sequences see the PHP core documentation.

Loading history...
Expected 1 spaces after opening parenthesis; 0 found
Loading history...
Expected 1 spaces before closing parenthesis; 0 found
Loading history...
Coding Style Comprehensibility introduced by
The string literal \n </script>\n <scri...n/javascripts/app.js\" does not require double quotes, as per coding-style, please use single quotes.

PHP provides two ways to mark string literals. Either with single quotes 'literal' or with double quotes "literal". The difference between these is that string literals in double quotes may contain variables with are evaluated at run-time as well as escape sequences.

String literals in single quotes on the other hand are evaluated very literally and the only two characters that needs escaping in the literal are the single quote itself (\') and the backslash (\\). Every other character is displayed as is.

Double quoted string literals may contain other variables or more complex escape sequences.

<?php

$singleQuoted = 'Value';
$doubleQuoted = "\tSingle is $singleQuoted";

print $doubleQuoted;

will print an indented: Single is Value

If your string literal does not contain variables or escape sequences, it should be defined using single quotes to make that fact clear.

For more information on PHP string literals and available escape sequences see the PHP core documentation.

Loading history...
146
			</script>
147
			<script
148
				class=\"podlove-subscribe-button\"
149
				src=\"https://cdn.podlove.org/subscribe-button/javascripts/app.js\" " . $data_attributes . ">
0 ignored issues
show
Coding Style Comprehensibility introduced by
The string literal >\n </script>\n does not require double quotes, as per coding-style, please use single quotes.

PHP provides two ways to mark string literals. Either with single quotes 'literal' or with double quotes "literal". The difference between these is that string literals in double quotes may contain variables with are evaluated at run-time as well as escape sequences.

String literals in single quotes on the other hand are evaluated very literally and the only two characters that needs escaping in the literal are the single quote itself (\') and the backslash (\\). Every other character is displayed as is.

Double quoted string literals may contain other variables or more complex escape sequences.

<?php

$singleQuoted = 'Value';
$doubleQuoted = "\tSingle is $singleQuoted";

print $doubleQuoted;

will print an indented: Single is Value

If your string literal does not contain variables or escape sequences, it should be defined using single quotes to make that fact clear.

For more information on PHP string literals and available escape sequences see the PHP core documentation.

Loading history...
150
			</script>
151
		";
152
	}
0 ignored issues
show
Expected 1 blank line before closing function brace; 0 found
Loading history...
153
154
	/**
155
	 * Returns an array with either the set or default values
156
	 * @param  string $size
0 ignored issues
show
There must be exactly one blank line before the tags in a doc comment
Loading history...
Coding Style Documentation introduced by
Missing parameter comment
Loading history...
157
	 * @param  string $autowidth
0 ignored issues
show
Coding Style Documentation introduced by
Missing parameter comment
Loading history...
158
	 * @param  string $style
0 ignored issues
show
Coding Style Documentation introduced by
Missing parameter comment
Loading history...
159
	 * @param  string $format
0 ignored issues
show
Coding Style Documentation introduced by
Missing parameter comment
Loading history...
160
	 * @param  string $color
0 ignored issues
show
Coding Style Documentation introduced by
Missing parameter comment
Loading history...
161
	 * @return array
162
	 */
163
	public function get_button_styling($size, $autowidth, $style, $format, $color) {
0 ignored issues
show
Method name "Button::get_button_styling" is not in camel caps format
Loading history...
Expected 1 spaces after opening parenthesis; 0 found
Loading history...
164
165
		return array(
166
				// $attribute => $value
167
				'size' => ( $size == 'default' ? get_option('podlove_subscribe_button_default_size', $size) : $size )
0 ignored issues
show
Expected 1 spaces after opening parenthesis; 0 found
Loading history...
Expected 1 spaces before closing parenthesis; 0 found
Loading history...
168
			 	. self::interpret_autowidth_attribute($autowidth),
0 ignored issues
show
Expected 1 spaces after opening parenthesis; 0 found
Loading history...
Expected 1 spaces before closing parenthesis; 0 found
Loading history...
169
				'style' => ( $style == 'default' ? get_option('podlove_subscribe_button_default_style', $style) : $style ),
0 ignored issues
show
Expected 1 spaces after opening parenthesis; 0 found
Loading history...
Expected 1 spaces before closing parenthesis; 0 found
Loading history...
170
				'format' => ( $format == 'default' ? get_option('podlove_subscribe_button_default_format', $format) : $format ),
0 ignored issues
show
Expected 1 spaces after opening parenthesis; 0 found
Loading history...
Expected 1 spaces before closing parenthesis; 0 found
Loading history...
171
				'color' => ( isset($color) ? $color : get_option('podlove_subscribe_button_default_color', $color) ),
0 ignored issues
show
Expected 1 spaces after opening parenthesis; 0 found
Loading history...
Expected 1 spaces before closing parenthesis; 0 found
Loading history...
172
				'json-data' => 'podcastData' . $this->id
173
			);
174
	}
0 ignored issues
show
Expected 1 blank line before closing function brace; 0 found
Loading history...
175
176
	/**
177
	 * Helper function to interpret the given $autowidth value correctly
178
	 * @param  string $autowidth
0 ignored issues
show
There must be exactly one blank line before the tags in a doc comment
Loading history...
Coding Style Documentation introduced by
Missing parameter comment
Loading history...
179
	 * @return string
180
	 */
181
	private static function interpret_autowidth_attribute($autowidth) {
0 ignored issues
show
Method name "Button::interpret_autowidth_attribute" is not in camel caps format
Loading history...
Expected 1 spaces after opening parenthesis; 0 found
Loading history...
182
		if ( $autowidth == 'default' && get_option('podlove_subscribe_button_default_autowidth') !== 'on' )
0 ignored issues
show
Coding Style Best Practice introduced by
It is generally a best practice to always use braces with control structures.

Adding braces to control structures avoids accidental mistakes as your code changes:

// Without braces (not recommended)
if (true)
    doSomething();

// Recommended
if (true) {
    doSomething();
}
Loading history...
Expected 1 spaces after opening parenthesis; 0 found
Loading history...
Expected 1 spaces before closing parenthesis; 0 found
Loading history...
183
			return '';
184
185
		if ( $autowidth !== 'default' && $autowidth !== 'on' )
0 ignored issues
show
Coding Style Best Practice introduced by
It is generally a best practice to always use braces with control structures.

Adding braces to control structures avoids accidental mistakes as your code changes:

// Without braces (not recommended)
if (true)
    doSomething();

// Recommended
if (true) {
    doSomething();
}
Loading history...
186
			return '';
187
188
		return ' auto';
189
	}
0 ignored issues
show
Expected 1 blank line before closing function brace; 0 found
Loading history...
190
}
191
192
Button::property( 'id', 'INT NOT NULL AUTO_INCREMENT PRIMARY KEY' );
193
Button::property( 'name', 'VARCHAR(255)' );
194
Button::property( 'title', 'VARCHAR(255)' );
195
Button::property( 'subtitle', 'VARCHAR(255)' );
196
Button::property( 'description', 'TEXT' );
197
Button::property( 'cover', 'VARCHAR(255)' );
198
Button::property( 'feeds', 'TEXT' );
199