@@ -10,7 +10,9 @@ |
||
| 10 | 10 | { |
| 11 | 11 | public function compare($priority1, $priority2) |
| 12 | 12 | { |
| 13 | - if ($priority1 === $priority2) return 0; |
|
| 13 | + if ($priority1 === $priority2) { |
|
| 14 | + return 0; |
|
| 15 | + } |
|
| 14 | 16 | return ($priority1 < $priority2) ? -1 : 1; |
| 15 | 17 | } |
| 16 | 18 | } |
| 17 | 19 | \ No newline at end of file |
@@ -133,6 +133,6 @@ |
||
| 133 | 133 | |
| 134 | 134 | public function withPreferredQueueName($preferredQueueName) |
| 135 | 135 | { |
| 136 | - $this->preferredQueueName = $preferredQueueName ?(string) $preferredQueueName : null; |
|
| 136 | + $this->preferredQueueName = $preferredQueueName ? (string) $preferredQueueName : null; |
|
| 137 | 137 | } |
| 138 | 138 | } |
| 139 | 139 | \ No newline at end of file |
@@ -13,7 +13,9 @@ |
||
| 13 | 13 | */ |
| 14 | 14 | public function compare($priority1, $priority2) |
| 15 | 15 | { |
| 16 | - if ($priority1 === $priority2) return 0; |
|
| 16 | + if ($priority1 === $priority2) { |
|
| 17 | + return 0; |
|
| 18 | + } |
|
| 17 | 19 | return $priority1 < $priority2 ? -1 : 1; |
| 18 | 20 | } |
| 19 | 21 | } |
| 20 | 22 | \ No newline at end of file |