@@ -53,8 +53,9 @@ |
||
53 | 53 | $this->from = $from; |
54 | 54 | $this->to = $to; |
55 | 55 | |
56 | - if(!is_null($this->from) && !is_null($this->to) && $this->from > $this->to) |
|
57 | - throw new \InvalidArgumentException("from should be lower than to param"); |
|
56 | + if(!is_null($this->from) && !is_null($this->to) && $this->from > $this->to) { |
|
57 | + throw new \InvalidArgumentException("from should be lower than to param"); |
|
58 | + } |
|
58 | 59 | } |
59 | 60 | |
60 | 61 | /** |
@@ -36,7 +36,9 @@ |
||
36 | 36 | $responses = []; |
37 | 37 | foreach ($this->getResponses() as $response){ |
38 | 38 | $resource_types = $response->getResourceType(); |
39 | - if(in_array($type, array_keys($resource_types))) $responses[] = $response; |
|
39 | + if(in_array($type, array_keys($resource_types))) { |
|
40 | + $responses[] = $response; |
|
41 | + } |
|
40 | 42 | } |
41 | 43 | return $responses; |
42 | 44 | } |