Missing class import via use statement (line '65', column '61'). Open
array_walk($groupIds, function(&$item) {$item = new \MongoId($item);});
- Read upRead up
- Create a ticketCreate a ticket
- Exclude checks
MissingImport
Since: 2.7.0
Importing all external classes in a file through use statements makes them clearly visible.
Example
function make() {
return new \stdClass();
}
Source http://phpmd.org/rules/cleancode.html#MissingImport
Missing class import via use statement (line '144', column '50'). Open
$filter['labels.' . $language] = new \MongoRegex('/.*'.$label.'.*/i');
- Read upRead up
- Create a ticketCreate a ticket
- Exclude checks
MissingImport
Since: 2.7.0
Importing all external classes in a file through use statements makes them clearly visible.
Example
function make() {
return new \stdClass();
}
Source http://phpmd.org/rules/cleancode.html#MissingImport
Missing class import via use statement (line '166', column '45'). Open
->field('site.$id')->equals(new \MongoId($siteId))
- Read upRead up
- Create a ticketCreate a ticket
- Exclude checks
MissingImport
Since: 2.7.0
Importing all external classes in a file through use statements makes them clearly visible.
Example
function make() {
return new \stdClass();
}
Source http://phpmd.org/rules/cleancode.html#MissingImport
Missing class import via use statement (line '124', column '34'). Open
$siteIds[$key] = new \MongoId($siteId);
- Read upRead up
- Create a ticketCreate a ticket
- Exclude checks
MissingImport
Since: 2.7.0
Importing all external classes in a file through use statements makes them clearly visible.
Example
function make() {
return new \stdClass();
}
Source http://phpmd.org/rules/cleancode.html#MissingImport
Missing class import via use statement (line '194', column '45'). Open
->field('site.$id')->equals(new \MongoId($siteId))
- Read upRead up
- Create a ticketCreate a ticket
- Exclude checks
MissingImport
Since: 2.7.0
Importing all external classes in a file through use statements makes them clearly visible.
Example
function make() {
return new \stdClass();
}
Source http://phpmd.org/rules/cleancode.html#MissingImport
Missing class import via use statement (line '148', column '39'). Open
$filter['site.$id'] = new \MongoId($siteId);
- Read upRead up
- Create a ticketCreate a ticket
- Exclude checks
MissingImport
Since: 2.7.0
Importing all external classes in a file through use statements makes them clearly visible.
Example
function make() {
return new \stdClass();
}
Source http://phpmd.org/rules/cleancode.html#MissingImport
Call to method getSkip
from undeclared class \OpenOrchestra\Pagination\Configuration\PaginateFinderConfiguration
Open
$qa->skip($configuration->getSkip());
- Create a ticketCreate a ticket
- Exclude checks
Parameter $site
has undeclared type \OpenOrchestra\ModelInterface\Model\SiteInterface
Open
public function softDeleteGroupsBySite(SiteInterface $site)
- Create a ticketCreate a ticket
- Exclude checks
Call to method getSearchIndex
from undeclared class \OpenOrchestra\Pagination\Configuration\PaginateFinderConfiguration
Open
$language = $configuration->getSearchIndex('language');
- Create a ticketCreate a ticket
- Exclude checks
Call to method __construct
from undeclared class \MongoRegex
Open
$filter['labels.' . $language] = new \MongoRegex('/.*'.$label.'.*/i');
- Create a ticketCreate a ticket
- Exclude checks
Call to undeclared method \OpenOrchestra\GroupBundle\Repository\GroupRepository::hydrateAggregateQuery
Open
return $this->hydrateAggregateQuery($qa);
- Create a ticketCreate a ticket
- Exclude checks
@throws type of removeGroups
has undeclared type \Doctrine\ODM\MongoDB\MongoDBException
Open
public function removeGroups(array $groupIds)
- Create a ticketCreate a ticket
- Exclude checks
@throws type of softDeleteGroupsBySite
has undeclared type \Doctrine\ODM\MongoDB\MongoDBException
Open
public function softDeleteGroupsBySite(SiteInterface $site)
- Create a ticketCreate a ticket
- Exclude checks
Call to method getSearchIndex
from undeclared class \OpenOrchestra\Pagination\Configuration\PaginateFinderConfiguration
Open
$label = $configuration->getSearchIndex('label');
- Create a ticketCreate a ticket
- Exclude checks
Call to undeclared method \OpenOrchestra\GroupBundle\Repository\GroupRepository::createQueryBuilder
Open
$this->createQueryBuilder()
- Create a ticketCreate a ticket
- Exclude checks
Call to method limit
from undeclared class \Solution\MongoAggregation\Pipeline\Stage
Open
$qa->limit($configuration->getLimit());
- Create a ticketCreate a ticket
- Exclude checks
Parameter $configuration
has undeclared type \OpenOrchestra\Pagination\Configuration\PaginateFinderConfiguration
Open
public function countWithFilter(PaginateFinderConfiguration $configuration, array $siteIds)
- Create a ticketCreate a ticket
- Exclude checks
Call to method sort
from undeclared class \Solution\MongoAggregation\Pipeline\Stage
Open
$qa->sort($order);
- Create a ticketCreate a ticket
- Exclude checks
Call to method getSearchIndex
from undeclared class \OpenOrchestra\Pagination\Configuration\PaginateFinderConfiguration
Open
$siteId = $configuration->getSearchIndex('site');
- Create a ticketCreate a ticket
- Exclude checks
Parameter $configuration
has undeclared type \OpenOrchestra\Pagination\Configuration\PaginateFinderConfiguration
Open
public function findForPaginate(PaginateFinderConfiguration $configuration, array $siteIds)
- Create a ticketCreate a ticket
- Exclude checks
Call to method skip
from undeclared class \Solution\MongoAggregation\Pipeline\Stage
Open
$qa->skip($configuration->getSkip());
- Create a ticketCreate a ticket
- Exclude checks
Parameter $configuration
has undeclared type \OpenOrchestra\Pagination\Configuration\PaginateFinderConfiguration
Open
protected function createQueryWithFilter(
- Create a ticketCreate a ticket
- Exclude checks
Call to method match
from undeclared class \Solution\MongoAggregation\Pipeline\Stage
Open
$qa->match($filters);
- Create a ticketCreate a ticket
- Exclude checks
Call to method __construct
from undeclared class \MongoId
Open
array_walk($groupIds, function(&$item) {$item = new \MongoId($item);});
- Create a ticketCreate a ticket
- Exclude checks
Call to undeclared method \OpenOrchestra\GroupBundle\Repository\GroupRepository::createAggregationQuery
Open
$qa = $this->createAggregationQuery();
- Create a ticketCreate a ticket
- Exclude checks
Call to method getLimit
from undeclared class \OpenOrchestra\Pagination\Configuration\PaginateFinderConfiguration
Open
$qa->limit($configuration->getLimit());
- Create a ticketCreate a ticket
- Exclude checks
Call to undeclared method \OpenOrchestra\GroupBundle\Repository\GroupRepository::countDocumentAggregateQuery
Open
return $this->countDocumentAggregateQuery($qa);
- Create a ticketCreate a ticket
- Exclude checks
Call to undeclared method \OpenOrchestra\GroupBundle\Repository\GroupRepository::createQueryBuilder
Open
$this->createQueryBuilder()
- Create a ticketCreate a ticket
- Exclude checks
Call to method getOrder
from undeclared class \OpenOrchestra\Pagination\Configuration\PaginateFinderConfiguration
Open
$order = $configuration->getOrder();
- Create a ticketCreate a ticket
- Exclude checks
Return type of createAggregationQueryBuilderWithSiteIds()
is undeclared type \Solution\MongoAggregation\Pipeline\Stage
Open
protected function createAggregationQueryBuilderWithSiteIds(array $siteIds)
- Create a ticketCreate a ticket
- Exclude checks
Return type of createQueryWithFilter()
is undeclared type \Solution\MongoAggregation\Pipeline\Stage
Open
protected function createQueryWithFilter(
- Create a ticketCreate a ticket
- Exclude checks
Call to undeclared method \OpenOrchestra\GroupBundle\Repository\GroupRepository::createQueryBuilder
Open
$this->createQueryBuilder()
- Create a ticketCreate a ticket
- Exclude checks
Class extends undeclared class \OpenOrchestra\Repository\AbstractAggregateRepository
Open
class GroupRepository extends AbstractAggregateRepository implements GroupRepositoryInterface
- Create a ticketCreate a ticket
- Exclude checks
Call to undeclared method \OpenOrchestra\GroupBundle\Repository\GroupRepository::countDocumentAggregateQuery
Open
return $this->countDocumentAggregateQuery($qa);
- Create a ticketCreate a ticket
- Exclude checks
Call to method __construct
from undeclared class \MongoId
Open
->field('site.$id')->equals(new \MongoId($siteId))
- Create a ticketCreate a ticket
- Exclude checks
Parameter $configuration
has undeclared type \OpenOrchestra\Pagination\Configuration\PaginateFinderConfiguration
Open
protected function getFilterSearch(PaginateFinderConfiguration $configuration) {
- Create a ticketCreate a ticket
- Exclude checks
Call to method __construct
from undeclared class \MongoId
Open
$filter['site.$id'] = new \MongoId($siteId);
- Create a ticketCreate a ticket
- Exclude checks
Call to undeclared method \OpenOrchestra\GroupBundle\Repository\GroupRepository::createQueryBuilder
Open
$this->createQueryBuilder()
- Create a ticketCreate a ticket
- Exclude checks
Call to method __construct
from undeclared class \MongoId
Open
->field('site.$id')->equals(new \MongoId($siteId))
- Create a ticketCreate a ticket
- Exclude checks
Call to method __construct
from undeclared class \MongoId
Open
$siteIds[$key] = new \MongoId($siteId);
- Create a ticketCreate a ticket
- Exclude checks
Avoid variables with short names like $qa. Configured minimum length is 3. Open
$qa = $this->createAggregationQueryBuilderWithSiteIds($siteIds);
- Read upRead up
- Create a ticketCreate a ticket
- 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;
}
}
}
Source https://phpmd.org/rules/naming.html#shortvariable
Avoid variables with short names like $qa. Configured minimum length is 3. Open
$qa = $this->createAggregationQueryBuilderWithSiteIds($siteIds);
- Read upRead up
- Create a ticketCreate a ticket
- 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;
}
}
}
Source https://phpmd.org/rules/naming.html#shortvariable
Avoid variables with short names like $qa. Configured minimum length is 3. Open
$qa = $this->createQueryWithFilter($configuration, $siteIds);
- Read upRead up
- Create a ticketCreate a ticket
- 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;
}
}
}
Source https://phpmd.org/rules/naming.html#shortvariable
Avoid variables with short names like $qa. Configured minimum length is 3. Open
$qa = $this->createAggregationQuery();
- Read upRead up
- Create a ticketCreate a ticket
- 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;
}
}
}
Source https://phpmd.org/rules/naming.html#shortvariable
Avoid variables with short names like $qa. Configured minimum length is 3. Open
$qa = $this->createQueryWithFilter($configuration, $siteIds, $order);
- Read upRead up
- Create a ticketCreate a ticket
- 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;
}
}
}
Source https://phpmd.org/rules/naming.html#shortvariable
Expected 1 space after FUNCTION keyword; 0 found Open
array_walk($groupIds, function(&$item) {$item = new \MongoId($item);});
- Create a ticketCreate a ticket
- Exclude checks
Each PHP statement must be on a line by itself Open
array_walk($groupIds, function(&$item) {$item = new \MongoId($item);});
- Create a ticketCreate a ticket
- Exclude checks
Expected 0 spaces before closing bracket; 1 found Open
if (null !== $label && $label !== '' && null !== $language && $language !== '' ) {
- Create a ticketCreate a ticket
- Exclude checks
Opening brace must be the last content on the line Open
array_walk($groupIds, function(&$item) {$item = new \MongoId($item);});
- Create a ticketCreate a ticket
- Exclude checks
Closing brace must be on a line by itself Open
array_walk($groupIds, function(&$item) {$item = new \MongoId($item);});
- Create a ticketCreate a ticket
- Exclude checks
Opening brace should be on a new line Open
protected function getFilterSearch(PaginateFinderConfiguration $configuration) {
- Create a ticketCreate a ticket
- Exclude checks