original_string: protected function getSelectionParams()
      {
          $result = $this->getSession('media_crop_selection_params');
  
          if ($result) {
              if (!isset($result['mode'])) {
                  $result['mode'] = self::SELECTION_MODE_NORMAL;
              }
  
              if (!isset($result['width'])) {
                  $result['width'] = null;
              }
  
              if (!isset($result['height'])) {
                  $result['height'] = null;
              }
  
              return $result;
          }
  
          return [
              'mode'   => self::SELECTION_MODE_NORMAL,
              'width'  => null,
              'height' => null
          ];
      }
code: protected function getSelectionParams()
      {
          $result = $this->getSession('media_crop_selection_params');
  
          if ($result) {
              if (!isset($result['mode'])) {
                  $result['mode'] = self::SELECTION_MODE_NORMAL;
              }
  
              if (!isset($result['width'])) {
                  $result['width'] = null;
              }
  
              if (!isset($result['height'])) {
                  $result['height'] = null;
              }
  
              return $result;
          }
  
          return [
              'mode'   => self::SELECTION_MODE_NORMAL,
              'width'  => null,
              'height' => null
          ];
      }
code_tokens: protected function getSelectionParams ( ) { $ result = $ this -> getSession ( 'media_crop_selection_params' ) ; if ( $ result ) { if ( ! isset ( $ result [ 'mode' ] ) ) { $ result [ 'mode' ] = self :: SELECTION_MODE_NORMAL ; } if ( ! isset ( $ result [ 'width' ] ) ) { $ result [ 'width' ] = null ; } if ( ! isset ( $ result [ 'height' ] ) ) { $ result [ 'height' ] = null ; } return $ result ; } return [ 'mode' => self :: SELECTION_MODE_NORMAL , 'width' => null , 'height' => null ] ; }
docstring: Gets the user selection parameters from the session state
  @return array
docstring_tokens: Gets the user selection parameters from the session state