Code Duplication    Length = 4-4 lines in 2 locations

api/src/Storage.php 2 locations

@@ 591-594 (lines=4) @@
588
					}
589
					switch($this->customfields[$key]['type'])
590
					{
591
						case 'int':
592
							$order_by = str_replace($v, 'extra_order.'.$this->extra_value.' IS NULL,'.
593
								$this->db->to_int('extra_order.'.$this->extra_value).' '.$orderDir, $order_by);
594
							break;
595
						case 'float':
596
							$order_by = str_replace($v, 'extra_order.'.$this->extra_value.' IS NULL,'.
597
								$this->db->to_double('extra_order.'.$this->extra_value).' '.$orderDir, $order_by);
@@ 595-598 (lines=4) @@
592
							$order_by = str_replace($v, 'extra_order.'.$this->extra_value.' IS NULL,'.
593
								$this->db->to_int('extra_order.'.$this->extra_value).' '.$orderDir, $order_by);
594
							break;
595
						case 'float':
596
							$order_by = str_replace($v, 'extra_order.'.$this->extra_value.' IS NULL,'.
597
								$this->db->to_double('extra_order.'.$this->extra_value).' '.$orderDir, $order_by);
598
							break;
599
						default:
600
							$order_by = str_replace($v, 'extra_order.'.$this->extra_value.' IS NULL,extra_order.'.
601
								$this->extra_value.' '.$orderDir, $order_by);