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; } }