open-orchestra/open-orchestra-cms-bundle

View on GitHub
Backoffice/Form/Type/ApiClientType.php

Summary

Maintainability
A
0 mins
Test Coverage

Call to method add from undeclared class \Symfony\Component\Form\FormBuilderInterface
Open

        $builder->add('name', 'text', array('label' => 'open_orchestra_backoffice.form.api_client.name'));
Severity: Critical
Found in Backoffice/Form/Type/ApiClientType.php by phan

Call to method add from undeclared class \Symfony\Component\Form\FormBuilderInterface
Open

        $builder->add('key', 'text', array('disabled' => true, 'label' => 'open_orchestra_backoffice.form.api_client.key'));
Severity: Critical
Found in Backoffice/Form/Type/ApiClientType.php by phan

Call to method add from undeclared class \Symfony\Component\Form\FormBuilderInterface
Open

        $builder->add('secret', 'text', array('disabled' => true, 'label' => 'open_orchestra_backoffice.form.api_client.secret'));
Severity: Critical
Found in Backoffice/Form/Type/ApiClientType.php by phan

Class extends undeclared class \Symfony\Component\Form\AbstractType
Open

class ApiClientType extends AbstractType
Severity: Critical
Found in Backoffice/Form/Type/ApiClientType.php by phan

Parameter $builder has undeclared type \Symfony\Component\Form\FormBuilderInterface
Open

    public function buildForm(FormBuilderInterface $builder, array $options)
Severity: Minor
Found in Backoffice/Form/Type/ApiClientType.php by phan

Call to method setAttribute from undeclared class \Symfony\Component\Form\FormBuilderInterface
Open

            $builder->setAttribute('disabled', $options['disabled']);
Severity: Critical
Found in Backoffice/Form/Type/ApiClientType.php by phan

Parameter $resolver has undeclared type \Symfony\Component\OptionsResolver\OptionsResolver
Open

    public function configureOptions(OptionsResolver $resolver)
Severity: Minor
Found in Backoffice/Form/Type/ApiClientType.php by phan

Call to method setDefaults from undeclared class \Symfony\Component\OptionsResolver\OptionsResolver
Open

        $resolver->setDefaults(array(
Severity: Critical
Found in Backoffice/Form/Type/ApiClientType.php by phan

Call to method add from undeclared class \Symfony\Component\Form\FormBuilderInterface
Open

        $builder->add('trusted', 'checkbox', array(
Severity: Critical
Found in Backoffice/Form/Type/ApiClientType.php by phan

Line exceeds 120 characters; contains 130 characters
Open

        $builder->add('secret', 'text', array('disabled' => true, 'label' => 'open_orchestra_backoffice.form.api_client.secret'));

Line exceeds 120 characters; contains 124 characters
Open

        $builder->add('key', 'text', array('disabled' => true, 'label' => 'open_orchestra_backoffice.form.api_client.key'));

There are no issues that match your filters.

Category
Status