Skip to content
Snippets Groups Projects

Fixed phpcs issues.

7 unresolved threads

Closes #3372474

Merge request reports

Members who can merge are allowed to add commits.

Merge request pipeline passed with warnings for 6c347964

Approval is optional
Code Quality is loading
Test summary results are being parsed
Merge blocked: 1 check failed
Merge conflicts must be resolved.

Merge details

  • The source branch is 2 commits behind the target branch.
  • 1 commit will be added to 2.0.x.
  • Source branch will not be deleted.

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
5 5 use Drupal\Core\Config\ConfigFactoryInterface;
6 6 use Drupal\Core\Form\ConfigFormBase;
7 7 use Drupal\Core\Form\FormStateInterface;
8 use Symfony\Component\DependencyInjection\ContainerInterface;
9 8 use Drupal\smartmenus\SmartmenusUtil;
9 use Symfony\Component\DependencyInjection\ContainerInterface;
10 10
11 11 /**
12 * Class SmartmenusSettingsForm.
12 * Class Smartmenus Settings Form.
  • 203 * Get theme options function.
    204 *
    169 205 * @return array
    206 * Returning array.
    170 207 */
    171 208 public function getThemeOptions() {
    172 209 return $this->smartmenusUtil->getAvailableMenuThemesList();
    173 210 }
    174 211
    175 /*
    212 /**
    213 * Get selected theme function.
    214 *
    176 215 * @return string
    177 * Returns the currently selected theme for the block
    216 * Returns the currently selected theme for the block
  • 196 239 return ($this->getConfiguration())['smartmenus_orient'];
    197 240 }
    198 241
    199 242 /**
    243 * Checking if toggle is enabled function.
    244 *
    200 245 * @return int
    201 * Returns 0,1 depending on the values of the checkbox.
    246 * Returns 0,1 depending on the values of the checkbox.
    202 247 */
    203 248 public function isToggleEnabled() {
    204 249 return ($this->getConfiguration())['smartmenus_toggle'];
    205 250 }
    206 251
    207 252 /**
    253 * Get default theme function.
  • 243 * Checking if toggle is enabled function.
    244 *
    200 245 * @return int
    201 * Returns 0,1 depending on the values of the checkbox.
    246 * Returns 0,1 depending on the values of the checkbox.
    202 247 */
    203 248 public function isToggleEnabled() {
    204 249 return ($this->getConfiguration())['smartmenus_toggle'];
    205 250 }
    206 251
    207 252 /**
    253 * Get default theme function.
    254 *
    208 255 * @return string
    209 * Get default theme set using module config form.
    256 * Get default theme set using module config form.
  • 5 5 use Drupal\Core\StringTranslation\TranslationManager;
    6 6
    7 7 /**
    8 * Class SmartmenusUtil
    8 * Class Smart menus Util.
    9 *
    9 10 * @package Drupal\smartmenus
    10 11 */
    11 12 class SmartmenusUtil {
    12 13
    13 14 /**
    14 * @var TranslationManager
    15 * Constructor function.
  • 11 12 class SmartmenusUtil {
    12 13
    13 14 /**
    14 * @var TranslationManager
    15 * Constructor function.
    16 *
    17 * @var \Drupal\Core\StringTranslation\TranslationManager
    15 18 */
    16 19 protected $translation;
    17 20
    18 21 /**
    19 22 * SmartmenusUtil constructor.
    20 * @param TranslationManager $translation
    23 *
    24 * @param \Drupal\Core\StringTranslation\TranslationManager $translation
    25 * Translation Manager parameter.
  • 16 19 protected $translation;
    17 20
    18 21 /**
    19 22 * SmartmenusUtil constructor.
    20 * @param TranslationManager $translation
    23 *
    24 * @param \Drupal\Core\StringTranslation\TranslationManager $translation
    25 * Translation Manager parameter.
    21 26 */
    22 27 public function __construct(TranslationManager $translation) {
    23 $this->translation = $translation;
    28 $this->translation = $translation;
    24 29 }
    25 30
    26 31 /**
    32 * Get available menu theme list.
    Please register or sign in to reply
    Loading