original_string: protected function validateEditDashboard()
      {
          $submitted = $this->setSubmitted('dashboard');
  
          foreach ($submitted as &$item) {
              $item['status'] = !empty($item['status']);
              $item['weight'] = intval($item['weight']);
          }
  
          $this->setSubmitted(null, $submitted);
      }
code: protected function validateEditDashboard()
      {
          $submitted = $this->setSubmitted('dashboard');
  
          foreach ($submitted as &$item) {
              $item['status'] = !empty($item['status']);
              $item['weight'] = intval($item['weight']);
          }
  
          $this->setSubmitted(null, $submitted);
      }
code_tokens: protected function validateEditDashboard ( ) { $ submitted = $ this -> setSubmitted ( 'dashboard' ) ; foreach ( $ submitted as & $ item ) { $ item [ 'status' ] = ! empty ( $ item [ 'status' ] ) ; $ item [ 'weight' ] = intval ( $ item [ 'weight' ] ) ; } $ this -> setSubmitted ( null , $ submitted ) ; }
docstring: Validates an array of submitted data
docstring_tokens: Validates an array of submitted data