Issues (1386)

model/network_button.php (8 issues)

1
<?php
0 ignored issues
show
Filenames should be all lowercase with hyphens as word separators. Expected network-button.php, but found network_button.php.
Loading history...
Class file names should be based on the class name with "class-" prepended. Expected class-networkbutton.php, but found network_button.php.
Loading history...
This file is missing a doc comment.
Loading history...
2
namespace PodloveSubscribeButton\Model;
3
4
class NetworkButton extends Button {
0 ignored issues
show
Coding Style Documentation introduced by
Missing class doc comment
Loading history...
5
6
	public static function table_name() {
0 ignored issues
show
Coding Style Documentation introduced by
Missing function doc comment
Loading history...
Method name "NetworkButton::table_name" is not in camel caps format
Loading history...
7
		global $wpdb;
8
		
9
		// prefix with $wpdb prefix
0 ignored issues
show
Inline comments must end in full-stops, exclamation marks, or question marks
Loading history...
10
		return $wpdb->base_prefix . self::name();
11
	}
0 ignored issues
show
Expected 1 blank line before closing function brace; 0 found
Loading history...
12
13
}
14
15
NetworkButton::property( 'id', 'INT NOT NULL AUTO_INCREMENT PRIMARY KEY' );
16
NetworkButton::property( 'name', 'VARCHAR(255)' );
17
NetworkButton::property( 'title', 'VARCHAR(255)' );
18
NetworkButton::property( 'subtitle', 'VARCHAR(255)' );
19
NetworkButton::property( 'description', 'TEXT' );
20
NetworkButton::property( 'cover', 'VARCHAR(255)' );
21
NetworkButton::property( 'feeds', 'TEXT' );