Could Be A Constant

Those literals are assigned then compared somewhere else in the code. When those literals are carrying a state, it is recommended to assign them to a constant, to ensure that both parts of the application use the same values..

LiteralAssignationsComparisons
shop_get
  • $context['collection_operation_name'] = 'shop_get'
  • $operationName !== 'shop_get'
shipping
  • $elementType = 'shipping'
  • $type === 'shipping'