original_string: protected function setChildrenCategory()
      {
          $this->data_children = array();
  
          foreach ($this->data_categories as $item) {
              if (in_array($this->data_category['category_id'], $item['parents'])) {
                  $this->data_children[] = $item;
              }
          }
      }
code: protected function setChildrenCategory()
      {
          $this->data_children = array();
  
          foreach ($this->data_categories as $item) {
              if (in_array($this->data_category['category_id'], $item['parents'])) {
                  $this->data_children[] = $item;
              }
          }
      }
code_tokens: protected function setChildrenCategory ( ) { $ this -> data_children = array ( ) ; foreach ( $ this -> data_categories as $ item ) { if ( in_array ( $ this -> data_category [ 'category_id' ] , $ item [ 'parents' ] ) ) { $ this -> data_children [ ] = $ item ; } } }
docstring: Sets an array of children categories for the given category
docstring_tokens: Sets an array of children categories for the given category