src/Account/Account.php
Possibly zero write references to private property \amocrm\Account\Account->language
Open
Open
private $language;
- Exclude checks
Possibly zero references to public method \amocrm\Account\Account::getTimezone()
Open
Open
public function getTimezone()
- Exclude checks
Possibly zero references to public method \amocrm\Account\Account::getDatePattern()
Open
Open
public function getDatePattern()
- Exclude checks
Possibly zero write references to private property \amocrm\Account\Account->datePattern
Open
Open
private $datePattern;
- Exclude checks
Possibly zero references to public method \amocrm\Account\Account::getPaidFrom()
Open
Open
public function getPaidFrom()
- Exclude checks
Possibly zero references to public method \amocrm\Account\Account::getPaidTill()
Open
Open
public function getPaidTill()
- Exclude checks
Possibly zero write references to private property \amocrm\Account\Account->id
Open
Open
private $id;
- Exclude checks
Possibly zero references to public method \amocrm\Account\Account::getId()
Open
Open
public function getId()
- Exclude checks
Possibly zero references to public method \amocrm\Account\Account::getLanguage()
Open
Open
public function getLanguage()
- Exclude checks
Possibly zero write references to private property \amocrm\Account\Account->subdomain
Open
Open
private $subdomain;
- Exclude checks
Possibly zero references to public method \amocrm\Account\Account::getSubdomain()
Open
Open
public function getSubdomain()
- Exclude checks
Possibly zero references to public method \amocrm\Account\Account::getCurrency()
Open
Open
public function getCurrency()
- Exclude checks
Possibly zero write references to private property \amocrm\Account\Account->timezone
Open
Open
private $timezone;
- Exclude checks
Possibly zero write references to private property \amocrm\Account\Account->name
Open
Open
private $name;
- Exclude checks
Possibly zero write references to private property \amocrm\Account\Account->currency
Open
Open
private $currency;
- Exclude checks
Possibly zero write references to private property \amocrm\Account\Account->paidTill
Open
Open
private $paidTill;
- Exclude checks
Possibly zero write references to private property \amocrm\Account\Account->paidFrom
Open
Open
private $paidFrom;
- Exclude checks
Possibly zero references to public method \amocrm\Account\Account::getName()
Open
Open
public function getName()
- Exclude checks
Avoid variables with short names like $id. Configured minimum length is 3. Open
Open
private $id;
- Read upRead up
- Exclude checks
ShortVariable
Since: 0.2
Detects when a field, local, or parameter has a very short name.
Example
class Something {
private $q = 15; // VIOLATION - Field
public static function main( array $as ) { // VIOLATION - Formal
$r = 20 + $this->q; // VIOLATION - Local
for (int $i = 0; $i < 10; $i++) { // Not a Violation (inside FOR)
$r += $this->q;
}
}
}