From c5d336e3b3a22dbe4ca0ac67572d5de15d81fff4 Mon Sep 17 00:00:00 2001
From: Alex Pott <alex.a.pott@googlemail.com>
Date: Wed, 5 Jun 2013 08:33:20 +0100
Subject: [PATCH] Issue #2003538 by jeroen12345, toddtomlinson, nathangervais:
 Rename Views method op_not_starts() to opNotStartsWith().

---
 .../views/lib/Drupal/views/Plugin/views/filter/Combine.php    | 2 +-
 .../views/lib/Drupal/views/Plugin/views/filter/String.php     | 4 ++--
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/core/modules/views/lib/Drupal/views/Plugin/views/filter/Combine.php b/core/modules/views/lib/Drupal/views/Plugin/views/filter/Combine.php
index af5630305e26..6e1f087edde4 100644
--- a/core/modules/views/lib/Drupal/views/Plugin/views/filter/Combine.php
+++ b/core/modules/views/lib/Drupal/views/Plugin/views/filter/Combine.php
@@ -106,7 +106,7 @@ protected function opStartsWith($expression) {
     $this->query->add_where_expression($this->options['group'], "$expression LIKE $placeholder", array($placeholder => db_like($this->value) . '%'));
   }
 
-  function op_not_starts($expression) {
+  protected function opNotStartsWith($expression) {
     $placeholder = $this->placeholder();
     $this->query->add_where_expression($this->options['group'], "$expression NOT LIKE $placeholder", array($placeholder => db_like($this->value) . '%'));
   }
diff --git a/core/modules/views/lib/Drupal/views/Plugin/views/filter/String.php b/core/modules/views/lib/Drupal/views/Plugin/views/filter/String.php
index 31d01d699dd0..87a26f8c44b7 100644
--- a/core/modules/views/lib/Drupal/views/Plugin/views/filter/String.php
+++ b/core/modules/views/lib/Drupal/views/Plugin/views/filter/String.php
@@ -77,7 +77,7 @@ function operators() {
       'not_starts' => array(
         'title' => t('Does not start with'),
         'short' => t('not_begins'),
-        'method' => 'op_not_starts',
+        'method' => 'opNotStartsWith',
         'values' => 1,
       ),
       'ends' => array(
@@ -305,7 +305,7 @@ protected function opStartsWith($field) {
     $this->query->add_where($this->options['group'], $field, db_like($this->value) . '%', 'LIKE');
   }
 
-  function op_not_starts($field) {
+  protected function opNotStartsWith($field) {
     $this->query->add_where($this->options['group'], $field, db_like($this->value) . '%', 'NOT LIKE');
   }
 
-- 
GitLab