original_string: public function setDisplayType()
      {
          $file_manager = $this->getFileManager();
  
          /** @var Session $session */
          $session = $this->container->get('session');
          $display_type = $session->get(self::DISPLAY_TYPE_SESSION);
  
          if ($this->container->get('request')->get('display_type') != null) {
              $display_type = $this->container->get('request')->get('display_type');
              $session->set(self::DISPLAY_TYPE_SESSION, $display_type);
          } else {
              if (is_null($display_type)) {
                  $display_type = self::DISPLAY_TYPE_BLOCK;
              }
          }
  
          $file_body_display = $display_type !== null ? $display_type : self::DISPLAY_TYPE_BLOCK;
  
          $file_manager->setDisplayType($file_body_display);
      }
code: public function setDisplayType()
      {
          $file_manager = $this->getFileManager();
  
          /** @var Session $session */
          $session = $this->container->get('session');
          $display_type = $session->get(self::DISPLAY_TYPE_SESSION);
  
          if ($this->container->get('request')->get('display_type') != null) {
              $display_type = $this->container->get('request')->get('display_type');
              $session->set(self::DISPLAY_TYPE_SESSION, $display_type);
          } else {
              if (is_null($display_type)) {
                  $display_type = self::DISPLAY_TYPE_BLOCK;
              }
          }
  
          $file_body_display = $display_type !== null ? $display_type : self::DISPLAY_TYPE_BLOCK;
  
          $file_manager->setDisplayType($file_body_display);
      }
code_tokens: public function setDisplayType ( ) { $ file_manager = $ this -> getFileManager ( ) ; /** @var Session $session */ $ session = $ this -> container -> get ( 'session' ) ; $ display_type = $ session -> get ( self :: DISPLAY_TYPE_SESSION ) ; if ( $ this -> container -> get ( 'request' ) -> get ( 'display_type' ) != null ) { $ display_type = $ this -> container -> get ( 'request' ) -> get ( 'display_type' ) ; $ session -> set ( self :: DISPLAY_TYPE_SESSION , $ display_type ) ; } else { if ( is_null ( $ display_type ) ) { $ display_type = self :: DISPLAY_TYPE_BLOCK ; } } $ file_body_display = $ display_type !== null ? $ display_type : self :: DISPLAY_TYPE_BLOCK ; $ file_manager -> setDisplayType ( $ file_body_display ) ; }
docstring: Set the display type
  
  @return string
docstring_tokens: Set the display type