Showing 4,652 of 306,333 total issues
Method clear
has 36 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public static function clear(): void
{
if ('TEST' === getenv('INSTALL_MODE')) {
return;
}
Method getAdditionalButtons
has 36 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function getAdditionalButtons(): array
{
$return = [];
if (\App\Security\AdminAccess::isPermitted('RecordCollector')) {
$return[] = \Vtiger_Link_Model::getInstanceFromValues([
Method getAdditionalButtons
has 36 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function getAdditionalButtons(): array
{
$return = [];
if (\App\Security\AdminAccess::isPermitted('RecordCollector')) {
$return[] = \Vtiger_Link_Model::getInstanceFromValues([
Method getAdditionalButtons
has 36 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function getAdditionalButtons(): array
{
$return = [];
if (\App\Security\AdminAccess::isPermitted('RecordCollector')) {
$return[] = \Vtiger_Link_Model::getInstanceFromValues([
Method getFooterScripts
has 36 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function getFooterScripts(\App\Request $request)
{
$moduleName = $request->getModule();
$jsFileNames = [
'modules.Vtiger.resources.Menu',
Method getAdditionalButtons
has 36 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function getAdditionalButtons(): array
{
$return = [];
if (\App\Security\AdminAccess::isPermitted('RecordCollector')) {
$return[] = \Vtiger_Link_Model::getInstanceFromValues([
Method getAdditionalButtons
has 36 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function getAdditionalButtons(): array
{
$return = [];
if (\App\Security\AdminAccess::isPermitted('RecordCollector')) {
$return[] = \Vtiger_Link_Model::getInstanceFromValues([
Method verifySpf
has 36 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function verifySpf(): array
{
if (isset($this->spfCache)) {
return $this->spfCache;
}
Method getHeaderCss
has 36 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function getHeaderCss(\App\Request $request)
{
return $this->checkAndConvertCssStyles([
'~layouts/resources/icons/adminIcon.css',
'~layouts/resources/icons/additionalIcons.css',
Method getAdditionalButtons
has 36 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function getAdditionalButtons(): array
{
$return = [];
if (\App\Security\AdminAccess::isPermitted('RecordCollector')) {
$return[] = \Vtiger_Link_Model::getInstanceFromValues([
Method getAdditionalButtons
has 36 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function getAdditionalButtons(): array
{
$return = [];
if (\App\Security\AdminAccess::isPermitted('RecordCollector')) {
$return[] = \Vtiger_Link_Model::getInstanceFromValues([
Method getAdditionalButtons
has 36 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function getAdditionalButtons(): array
{
$links = [
\Vtiger_Link_Model::getInstanceFromValues([
'linklabel' => 'Website',
Method getAdditionalButtons
has 36 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function getAdditionalButtons(): array
{
$return = [];
if (\App\Security\AdminAccess::isPermitted('RecordCollector')) {
$return[] = \Vtiger_Link_Model::getInstanceFromValues([
Method getByModule
has 36 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public static function getByModule(string $moduleName, ?bool $onlyActive = false, ?string $relatedModuleName = null): array
{
if (Cache::has('App\Relation::getByModule', $moduleName)) {
$allRelations = Cache::get('App\Relation::getByModule', $moduleName);
} else {
Method getAdditionalButtons
has 36 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function getAdditionalButtons(): array
{
$return = [];
if (\App\Security\AdminAccess::isPermitted('RecordCollector')) {
$return[] = \Vtiger_Link_Model::getInstanceFromValues([
Method getAdditionalButtons
has 36 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function getAdditionalButtons(): array
{
$return = [];
if (\App\Security\AdminAccess::isPermitted('RecordCollector')) {
$return[] = \Vtiger_Link_Model::getInstanceFromValues([
Method getAdditionalButtons
has 36 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function getAdditionalButtons(): array
{
$links = [
\Vtiger_Link_Model::getInstanceFromValues([
'linklabel' => 'Website',
Method getAdditionalButtons
has 36 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function getAdditionalButtons(): array
{
$return = [];
if (\App\Security\AdminAccess::isPermitted('RecordCollector')) {
$return[] = \Vtiger_Link_Model::getInstanceFromValues([
Method getAdditionalButtons
has 36 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function getAdditionalButtons(): array
{
$return = [];
if (\App\Security\AdminAccess::isPermitted('RecordCollector')) {
$return[] = \Vtiger_Link_Model::getInstanceFromValues([
Method getAdditionalButtons
has 36 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function getAdditionalButtons(): array
{
$return = [];
if (\App\Security\AdminAccess::isPermitted('RecordCollector')) {
$return[] = \Vtiger_Link_Model::getInstanceFromValues([