Showing 287 of 287 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 method _shortenMl is not named in camelCase. Open
protected function _shortenMl(string $ownerName, string $collectionName, string $itemShortName, ?string $origItemName): string
{
$ownerName .= '-' . $collectionName;
if (TraitUtil::hasContainerTrait($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 _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 _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-line
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 _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 _ is not named in camelCase. Open
public function _(string $message, array $parameters = [], ?string $domain = null, ?string $locale = null): string
{
return $this->getAdapter()->_($message, $parameters, $domain ?? $this->defaultDomain, $locale ?? $this->defaultLocale);
}
- 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 _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
{
if (TraitUtil::hasAppScopeTrait($this) && $this->issetApp() && method_exists($this->getApp(), '_')) {
return $this->getApp()->_($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 _ 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 _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 _addIntoCollection is not named in camelCase. Open
protected function _addIntoCollection(string $name, object $item, string $collection): void
{
if (!isset($this->{$collection}) || !is_array($this->{$collection})) {
throw (new Exception('Collection does not exist'))
->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 _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 _addToAdd is not named in camelCase. Open
private static function _addToAdd(object $parent, object $object, array $addArgs, bool $skipAdd = false): void
{
if (!$skipAdd) {
$parent->add($object, ...$addArgs);
}
- 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 _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 _cloneCollection is not named in camelCase. Open
protected function _cloneCollection(string $collectionName): void
{
$this->{$collectionName} = array_map(function ($item) {
$item = clone $item;
if (TraitUtil::hasTrackableTrait($item) && $item->issetOwner()) {
- 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 _addContainer is not named in camelCase. Open
protected function _addContainer(object $element, array $args): void
{
// carry on reference to application if we have appScopeTraits set
if (TraitUtil::hasAppScopeTrait($this) && TraitUtil::hasAppScopeTrait($element)
&& (!$element->issetApp() || $element->getApp() !== $this->getApp())
- 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 _makeHookDynamicFx is not named in camelCase. Open
private function _makeHookDynamicFx(?\Closure $getFxThisFx, \Closure $fx, bool $isShort): \Closure
{
if ($getFxThisFx !== null) {
$getFxThisFxThis = (new \ReflectionFunction($getFxThisFx))->getClosureThis();
if ($getFxThisFxThis !== 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() {
}
}