Showing 9,653 of 9,653 total issues
The method get_slides is not named in camelCase. Open
public function get_slides()
{
$args = [
'force_no_custom_order' => true,
'orderby' => 'menu_order',
- Read upRead up
- Exclude checks
CamelCaseMethodName
Since: 0.2
It is considered best practice to use the camelCase notation to name methods.
Example
class ClassName {
public function get_name() {
}
}
Source
The method render_public_slides is not named in camelCase. Open
public function render_public_slides()
{
$html[] = '<!-- meta slider -->';
$html[] = '<div style="' . $this->get_container_style() . '" class="' . $this->get_container_class() . '">';
$html[] = ' ' . $this->get_inline_css();
- Read upRead up
- Exclude checks
CamelCaseMethodName
Since: 0.2
It is considered best practice to use the camelCase notation to name methods.
Example
class ClassName {
public function get_name() {
}
}
Source
The method get_custom_javascript_after is not named in camelCase. Open
private function get_custom_javascript_after()
{
$type = $this->get_setting('type');
$custom_js = apply_filters("metaslider_{$type}_slider_javascript", '', $this->id);
- Read upRead up
- Exclude checks
CamelCaseMethodName
Since: 0.2
It is considered best practice to use the camelCase notation to name methods.
Example
class ClassName {
public function get_name() {
}
}
Source
The method delete_slide is not named in camelCase. Open
private function delete_slide($slide_id)
{
// Get the existing terms and only keep the ones we don't want removed
$new_terms = [];
$current_terms = wp_get_object_terms($slide_id, 'ml-slider', ['fields' => 'ids']);
- Read upRead up
- Exclude checks
CamelCaseMethodName
Since: 0.2
It is considered best practice to use the camelCase notation to name methods.
Example
class ClassName {
public function get_name() {
}
}
Source
The method get_image_url is not named in camelCase. Open
public function get_image_url()
{
// Get the image file path
if (!mb_strlen($this->path)) {
return $this->url;
- Read upRead up
- Exclude checks
CamelCaseMethodName
Since: 0.2
It is considered best practice to use the camelCase notation to name methods.
Example
class ClassName {
public function get_name() {
}
}
Source
The method use_wp_image_editor is not named in camelCase. Open
public function use_wp_image_editor()
{
return apply_filters('metaslider_use_image_editor', $this->is_valid_image());
}
- Read upRead up
- Exclude checks
CamelCaseMethodName
Since: 0.2
It is considered best practice to use the camelCase notation to name methods.
Example
class ClassName {
public function get_name() {
}
}
Source
The method render_admin_slides is not named in camelCase. Open
public function render_admin_slides()
{
foreach ($this->slides as $slide) {
echo $slide;
}
- Read upRead up
- Exclude checks
CamelCaseMethodName
Since: 0.2
It is considered best practice to use the camelCase notation to name methods.
Example
class ClassName {
public function get_name() {
}
}
Source
The method slide_is_unassigned_or_image_slide is not named in camelCase. Open
public function slide_is_unassigned_or_image_slide($slider_id, $slide_id)
{
$type = get_post_meta($slide_id, 'ml-slider_type', true);
return !mb_strlen($type) || 'image' === $type;
- Read upRead up
- Exclude checks
CamelCaseMethodName
Since: 0.2
It is considered best practice to use the camelCase notation to name methods.
Example
class ClassName {
public function get_name() {
}
}
Source
The method update_slides is not named in camelCase. Open
private function update_slides($data)
{
foreach ($data as $slide_id => $fields) {
do_action("metaslider_save_{$fields['type']}_slide", $slide_id, $this->id, $fields);
}
- Read upRead up
- Exclude checks
CamelCaseMethodName
Since: 0.2
It is considered best practice to use the camelCase notation to name methods.
Example
class ClassName {
public function get_name() {
}
}
Source
The method get_param is not named in camelCase. Open
protected function get_param($param)
{
$params = [
'effect' => 'animation',
'width' => 'width',
- Read upRead up
- Exclude checks
CamelCaseMethodName
Since: 0.2
It is considered best practice to use the camelCase notation to name methods.
Example
class ClassName {
public function get_name() {
}
}
Source
The method set_slider is not named in camelCase. Open
public function set_slider($id)
{
$this->slider = get_post($id);
$this->settings = get_post_meta($id, 'ml-slider_settings', true);
}
- Read upRead up
- Exclude checks
CamelCaseMethodName
Since: 0.2
It is considered best practice to use the camelCase notation to name methods.
Example
class ClassName {
public function get_name() {
}
}
Source
The method get_html_after is not named in camelCase. Open
private function get_html_after()
{
$type = $this->get_setting('type');
$html = apply_filters("metaslider_{$type}_slider_html_after", '', $this->id, $this->settings);
- Read upRead up
- Exclude checks
CamelCaseMethodName
Since: 0.2
It is considered best practice to use the camelCase notation to name methods.
Example
class ClassName {
public function get_name() {
}
}
Source
The method enqueue_scripts is not named in camelCase. Open
public function enqueue_scripts()
{
if ('true' === $this->get_setting('printJs')) {
wp_enqueue_script('metaslider-' . $this->get_setting('type') . '-slider', METASLIDER_ASSETS_URL . $this->js_path, ['jquery'], METASLIDER_VERSION);
}
- Read upRead up
- Exclude checks
CamelCaseMethodName
Since: 0.2
It is considered best practice to use the camelCase notation to name methods.
Example
class ClassName {
public function get_name() {
}
}
Source
The method get_html is not named in camelCase. Open
protected function get_html()
{
$return_value = "<div id='" . $this->get_identifier() . "' class='coin-slider'>";
foreach ($this->slides as $slide) {
- Read upRead up
- Exclude checks
CamelCaseMethodName
Since: 0.2
It is considered best practice to use the camelCase notation to name methods.
Example
class ClassName {
public function get_name() {
}
}
Source
The method ajax_resize_slide is not named in camelCase. Open
public function ajax_resize_slide()
{
check_admin_referer('metaslider_resize');
$slider_id = (int)$_POST['slider_id'];
- Read upRead up
- Exclude checks
CamelCaseMethodName
Since: 0.2
It is considered best practice to use the camelCase notation to name methods.
Example
class ClassName {
public function get_name() {
}
}
Source
The method get_crop_dimensions is not named in camelCase. Open
private function get_crop_dimensions($image_width, $image_height)
{
if ('false' === $this->smart_crop) {
return ['width' => $this->container_width, 'height' => $this->container_height];
}
- Read upRead up
- Exclude checks
CamelCaseMethodName
Since: 0.2
It is considered best practice to use the camelCase notation to name methods.
Example
class ClassName {
public function get_name() {
}
}
Source
The method build_image_tag is not named in camelCase. Open
public function build_image_tag($attributes)
{
$html = '<img';
foreach ($attributes as $att => $val) {
- Read upRead up
- Exclude checks
CamelCaseMethodName
Since: 0.2
It is considered best practice to use the camelCase notation to name methods.
Example
class ClassName {
public function get_name() {
}
}
Source
The method get_public_slide is not named in camelCase. Open
protected function get_public_slide()
{
// get the image url (and handle cropping)
// disable wp_image_editor if metadata does not exist for the slide
$imageHelper = new MetaSliderImageHelper($this->slide->ID, $this->settings['width'], $this->settings['height'], isset($this->settings['smartCrop']) ? $this->settings['smartCrop'] : 'false', $this->use_wp_image_editor());
- Read upRead up
- Exclude checks
CamelCaseMethodName
Since: 0.2
It is considered best practice to use the camelCase notation to name methods.
Example
class ClassName {
public function get_name() {
}
}
Source
The method populate_slides is not named in camelCase. Open
private function populate_slides()
{
$slides = [];
$query = $this->get_slides();
- Read upRead up
- Exclude checks
CamelCaseMethodName
Since: 0.2
It is considered best practice to use the camelCase notation to name methods.
Example
class ClassName {
public function get_name() {
}
}
Source
The method get_container_style is not named in camelCase. Open
private function get_container_style()
{
// default
$style = "max-width: {$this->get_setting('width')}px;";
- Read upRead up
- Exclude checks
CamelCaseMethodName
Since: 0.2
It is considered best practice to use the camelCase notation to name methods.
Example
class ClassName {
public function get_name() {
}
}