@@ -5,17 +5,20 @@ |
||
5 | 5 | // Use to sort _command_types based on prior |
6 | 6 | function sortingPrior($a, $b) { |
7 | 7 | |
8 | - if($a['prior'] > $b['prior']) |
|
9 | - |
|
8 | + if($a['prior'] > $b['prior']) { |
|
9 | + |
|
10 | 10 | return 1; |
11 | + } |
|
11 | 12 | |
12 | - if($a['prior'] < $b['prior']) |
|
13 | - |
|
13 | + if($a['prior'] < $b['prior']) { |
|
14 | + |
|
14 | 15 | return -1; |
16 | + } |
|
15 | 17 | |
16 | - if($a['prior'] == $b['prior']) |
|
17 | - |
|
18 | + if($a['prior'] == $b['prior']) { |
|
19 | + |
|
18 | 20 | return 0; |
21 | + } |
|
19 | 22 | |
20 | 23 | } |
21 | 24 |
@@ -36,7 +36,9 @@ |
||
36 | 36 | $method = Text::camelCase("get $offset"); |
37 | 37 | |
38 | 38 | // If it exists, call it and return its return value |
39 | - if (method_exists($this, $method)) return $this->{$method}(); |
|
39 | + if (method_exists($this, $method)) { |
|
40 | + return $this->{$method}(); |
|
41 | + } |
|
40 | 42 | |
41 | 43 | // If not return the data from the array after checking it is set |
42 | 44 | return isset($this->container[$offset]) ? $this->container[$offset] : null; |