From a8d4418f282cdd2978558bbb755192d88ae67401 Mon Sep 17 00:00:00 2001 From: Pavel Djundik Date: Wed, 21 Oct 2015 16:21:57 +0300 Subject: [PATCH] Disable more camelcase goodness --- .codeclimate.yml | 4 ++++ SourceQuery/Buffer.php | 12 +++++------- 2 files changed, 9 insertions(+), 7 deletions(-) diff --git a/.codeclimate.yml b/.codeclimate.yml index aaa494f..4e52508 100644 --- a/.codeclimate.yml +++ b/.codeclimate.yml @@ -13,6 +13,10 @@ engines: enabled: false Controversial/CamelCaseParameterName: enabled: false + Controversial/CamelCaseVariableName: + enabled: false + Controversial/CamelCasePropertyName: + enabled: false ratings: paths: - "SourceQuery/**.php" diff --git a/SourceQuery/Buffer.php b/SourceQuery/Buffer.php index 15d8c54..f7d2051 100644 --- a/SourceQuery/Buffer.php +++ b/SourceQuery/Buffer.php @@ -173,15 +173,13 @@ if( $ZeroBytePosition === false ) { - $String = ""; - } - else - { - $String = $this->Get( $ZeroBytePosition - $this->Position ); - - $this->Position++; + return ''; } + $String = $this->Get( $ZeroBytePosition - $this->Position ); + + $this->Position++; + return $String; } }