Showing 288 of 288 total issues
The variable $_instances is not named in camelCase. Open
private function _rebindHookFxToFakeInstance(\Closure $fx): \Closure
{
$fxThis = (new \ReflectionFunction($fx))->getClosureThis();
$instanceWithoutConstructorCache = new class {
- Read upRead up
- Create a ticketCreate a ticket
- Exclude checks
CamelCaseVariableName
Since: 0.2
It is considered best practice to use the camelCase notation to name variables.
Example
class ClassName {
public function doSomething() {
$data_module = new DataModule();
}
}
Source
The variable $_instances is not named in camelCase. Open
private function _rebindHookFxToFakeInstance(\Closure $fx): \Closure
{
$fxThis = (new \ReflectionFunction($fx))->getClosureThis();
$instanceWithoutConstructorCache = new class {
- Read upRead up
- Create a ticketCreate a ticket
- Exclude checks
CamelCaseVariableName
Since: 0.2
It is considered best practice to use the camelCase notation to name variables.
Example
class ClassName {
public function doSomething() {
$data_module = new DataModule();
}
}
Source
The method _newObject is not named in camelCase. Open
protected function _newObject(string $className, array $ctorArgs): object
{
return new $className(...$ctorArgs);
}
- Read upRead up
- Create a ticketCreate a ticket
- 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 _hasInCollection is not named in camelCase. Open
protected function _hasInCollection(string $name, string $collection): bool
{
return isset($this->{$collection}[$name]);
}
- Read upRead up
- Create a ticketCreate a ticket
- 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 _unbindHookFxIfBoundToThis is not named in camelCase. Open
private function _unbindHookFxIfBoundToThis(\Closure $fx, bool $isShort): \Closure
{
$fxThis = (new \ReflectionFunction($fx))->getClosureThis();
if ($fxThis !== $this) {
return $fx;
- Read upRead up
- Create a ticketCreate a ticket
- 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 _getFromCollection is not named in camelCase. Open
protected function _getFromCollection(string $name, string $collection): object
{
$res = $this->{$collection}[$name] ?? null;
if ($res === null) {
throw (new Exception('Element is not in the collection'))
- Read upRead up
- Create a ticketCreate a ticket
- 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 _lookupConfigElement is not named in camelCase. Open
private function &_lookupConfigElement(string $path, bool $createElements = false)
{
$path = explode('/', $path);
$pos = &$this->config;
foreach ($path as $el) {
- Read upRead up
- Create a ticketCreate a ticket
- 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 _uniqueElementName is not named in camelCase. Open
protected function _uniqueElementName(string $desired): string
{
if (!isset($this->_elementNameCounts[$desired])) {
$this->_elementNameCounts[$desired] = 1;
$postfix = '';
- Read upRead up
- Create a ticketCreate a ticket
- 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 _rebindHooksIfCloned is not named in camelCase. Open
private function _rebindHooksIfCloned(): void
{
if ($this->_hookOrigThis !== null) {
$hookOrigThis = $this->_hookOrigThis->get();
if ($hookOrigThis === $this) {
- Read upRead up
- Create a ticketCreate a ticket
- 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 _ is not named in camelCase. Open
public function _(string $message, array $parameters = [], ?string $domain = null, ?string $locale = null): string
{
$definition = $this->getDefinition($message, $domain ?? 'atk', $locale ?? 'en');
if ($definition === null) {
- Read upRead up
- Create a ticketCreate a ticket
- 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 _ is not named in camelCase. Open
public function _(string $message, array $parameters = [], ?string $domain = null, ?string $locale = null): string;
- Read upRead up
- Create a ticketCreate a ticket
- 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 _removeFromCollection is not named in camelCase. Open
protected function _removeFromCollection(string $name, string $collection): void
{
if (!$this->_hasInCollection($name, $collection)) {
throw (new Exception('Element is not in the collection'))
->addMoreInfo('collection', $collection)
- Read upRead up
- Create a ticketCreate a ticket
- 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 _fromSeedPrecheck is not named in camelCase. Open
private static function _fromSeedPrecheck($seed, bool $unsafe): void
{
if (!is_object($seed)) {
if (!is_array($seed)) { // @phpstan-ignore function.alreadyNarrowedType
throw (new Exception('Seed must be an array or an object'))
- Read upRead up
- Create a ticketCreate a ticket
- 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 _factory is not named in camelCase. Open
protected function _factory($seed, array $defaults): object
{
if (!is_array($seed) && !is_object($seed)) { // @phpstan-ignore function.alreadyNarrowedType, booleanAnd.alwaysFalse
throw new Exception('Use of non-array (' . gettype($seed) . ') seed is not supported');
}
- Read upRead up
- Create a ticketCreate a ticket
- 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 _rebindHookFxToFakeInstance is not named in camelCase. Open
private function _rebindHookFxToFakeInstance(\Closure $fx): \Closure
{
$fxThis = (new \ReflectionFunction($fx))->getClosureThis();
$instanceWithoutConstructorCache = new class {
- Read upRead up
- Create a ticketCreate a ticket
- 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 _shorten is not named in camelCase. Open
protected function _shorten(string $ownerName, string $itemShortName, ?string $origItemName): string
{
$desired = $origItemName ?? $ownerName . '_' . $itemShortName;
if (TraitUtil::hasAppScopeTrait($this)
- Read upRead up
- Create a ticketCreate a ticket
- 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 _echoStderr is not named in camelCase. Open
protected function _echoStderr(string $message): void
{
file_put_contents('php://stderr', $message, \FILE_APPEND);
}
- Read upRead up
- Create a ticketCreate a ticket
- 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 _ is not named in camelCase. Open
public function _(string $message, array $parameters = [], ?string $domain = null, ?string $locale = null): string
{
return $this->adapter
? $this->adapter->_($message, $parameters, $domain, $locale)
: Translator::instance()->_($message, $parameters, $domain, $locale);
- Read upRead up
- Create a ticketCreate a ticket
- 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 _mergeSeeds is not named in camelCase. Open
protected function _mergeSeeds(...$seeds)
{
// merge seeds but prefer seed over seed2
// move numerical keys to the beginning and sort them
$arguments = [];
- Read upRead up
- Create a ticketCreate a ticket
- 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 _onNotSuccessfulTest is not named in camelCase. Open
protected function _onNotSuccessfulTest(\Throwable $e): void
{
// release objects from uncaught exception as it is never released
$this->releaseObjectsFromExceptionTrace($e);
- Read upRead up
- Create a ticketCreate a ticket
- 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() {
}
}