Showing 139 of 139 total issues
The method get_protocol is not named in camelCase. Open
public function get_protocol()
{
return $this->protocol;
}
- 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_auth_type is not named in camelCase. Open
public function get_auth_type()
{
return $this->auth_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 get_http_client is not named in camelCase. Open
public function get_http_client()
{
return $this->http_client;
}
- 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_host is not named in camelCase. Open
public function get_host()
{
return $this->host;
}
- 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_auth_type is not named in camelCase. Open
public function set_auth_type($auth_type)
{
if ($auth_type != 'hash' && $auth_type != 'pass') {
throw new Exception('the only two allowable auth types arehash and path');
}
- 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 password_auth is not named in camelCase. Open
public function password_auth($user, $pass)
{
$this->set_password($pass);
$this->set_user($user);
}
- 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_password is not named in camelCase. Open
public function set_password($pass)
{
$this->auth_type = 'pass';
$this->auth = $pass;
}
- 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_output is not named in camelCase. Open
public function get_output()
{
return $this->output;
}
- 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_output is not named in camelCase. Open
public function set_output($output)
{
if ($output != 'json' && $output != 'xml' && $output != 'array' && $output != 'simplexml') {
throw new Exception('json, xml, array and simplexml are the only allowed values for set_output');
}
- 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 curl_query is not named in camelCase. Open
private function curl_query($url, $postdata, $authstr)
{
$curl = curl_init();
curl_setopt($curl, CURLOPT_SSL_VERIFYPEER, 0);
// Return contents of transfer on curl_exec
- 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_user is not named in camelCase. Open
public function get_user()
{
return $this->user;
}
- 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 return_object is not named in camelCase. Open
public function return_object()
{
$this->set_output('simplexml');
}
- 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_host is not named in camelCase. Open
public function set_host($host)
{
$this->host = $host;
}
- 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_port is not named in camelCase. Open
public function set_port($port)
{
if (!is_int($port)) {
$port = intval($port);
}
- 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_user is not named in camelCase. Open
public function set_user($user)
{
$this->user = $user;
}
- 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 api1_query is not named in camelCase. Open
public function api1_query($user, $module, $function, $args = [])
{
if (!isset($module) || !isset($function) || !isset($user)) {
error_log("api1_query requires that a module and function are passed to it");
- 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 xmlapi_query is not named in camelCase. Open
public function xmlapi_query($function, $vars = [])
{
// Check to make sure all the data needed to perform the query is in place
if (!$function) {
throw new Exception('xmlapi_query() requires a function to be passed to it');
- 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_protocol is not named in camelCase. Open
public function set_protocol($proto)
{
if ($proto != 'https' && $proto != 'http') {
throw new Exception('https and http are the only protocols that can be passed to set_protocol');
}
- 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_hash is not named in camelCase. Open
public function set_hash($hash)
{
$this->auth_type = 'hash';
$this->auth = preg_replace("/(\n|\r|\s)/", '', $hash);
}
- 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() {
}
}