original_string: protected function prepareCategory(array &$category)
      {
          $this->setItemAlias($category, 'category', $this->alias);
          $this->setItemImages($category, 'category', $this->image);
          $this->setItemTranslation($category, 'category', $this->translation_entity);
  
          if (!empty($category['images'])) {
              foreach ($category['images'] as &$file) {
                  $this->setItemTranslation($file, 'file', $this->translation_entity);
              }
          }
      }
code: protected function prepareCategory(array &$category)
      {
          $this->setItemAlias($category, 'category', $this->alias);
          $this->setItemImages($category, 'category', $this->image);
          $this->setItemTranslation($category, 'category', $this->translation_entity);
  
          if (!empty($category['images'])) {
              foreach ($category['images'] as &$file) {
                  $this->setItemTranslation($file, 'file', $this->translation_entity);
              }
          }
      }
code_tokens: protected function prepareCategory ( array & $ category ) { $ this -> setItemAlias ( $ category , 'category' , $ this -> alias ) ; $ this -> setItemImages ( $ category , 'category' , $ this -> image ) ; $ this -> setItemTranslation ( $ category , 'category' , $ this -> translation_entity ) ; if ( ! empty ( $ category [ 'images' ] ) ) { foreach ( $ category [ 'images' ] as & $ file ) { $ this -> setItemTranslation ( $ file , 'file' , $ this -> translation_entity ) ; } } }
docstring: Prepares an array of category data
  @param array $category
docstring_tokens: Prepares an array of category data