小编joe*_*sky的帖子

PhpStorm - 为什么这个案例声明无法访问?

PhpStorm检查声称在第二种情况下休息后的所有内容都无法访问.我不明白为什么.我错过了什么?

function mymodule_admin_form_alter(&$form, $form_state, $form_id) {
  switch ($form_id) {
    case 'taxonomy_overview_terms':
      // We need to add a submit handler to this form so we can save the weight
      // in Mongo.
      $form['#submit'][] = 'mymodule_admin_taxonomy_overview_submit_mongo';
      break;

      // Unwraps the mymodule News node form
    case 'mymodule_news_node_form':
      $form['#nowrap'] = true;

      $form['field_news_image']['#prefix'] = '<div class="row"><div class="large-5 columns">';
      $form['field_news_image']['#suffix'] = '</div></div>';

      $form['actions']['#prefix'] = '<div class="row"><div class="large-3 columns actions">';
      $form['actions']['#suffix'] = '</div></div>';

      break; // PhpStorm claims everything after this is unreachable ******

      // Unwraps the page …
Run Code Online (Sandbox Code Playgroud)

phpstorm

1
推荐指数
1
解决办法
2541
查看次数

标签 统计

phpstorm ×1