@@ -33,7 +33,7 @@ discard block |
||
33 | 33 | case 'kind': $this->setKind($value); break; |
34 | 34 | case 'id': $this->setId($value); break; |
35 | 35 | default: |
36 | - throw new \Exception('Unknown option: ' . $name); |
|
36 | + throw new \Exception('Unknown option: '.$name); |
|
37 | 37 | } |
38 | 38 | } |
39 | 39 | } |
@@ -51,7 +51,7 @@ discard block |
||
51 | 51 | // Remove options with empty values |
52 | 52 | $cleanedOptions = array(); |
53 | 53 | foreach ($options as $name=>$value) { |
54 | - if ($value!==null) |
|
54 | + if ($value !== null) |
|
55 | 55 | $cleanedOptions[$name] = $value; |
56 | 56 | } |
57 | 57 |
@@ -51,8 +51,9 @@ |
||
51 | 51 | // Remove options with empty values |
52 | 52 | $cleanedOptions = array(); |
53 | 53 | foreach ($options as $name=>$value) { |
54 | - if ($value!==null) |
|
55 | - $cleanedOptions[$name] = $value; |
|
54 | + if ($value!==null) { |
|
55 | + $cleanedOptions[$name] = $value; |
|
56 | + } |
|
56 | 57 | } |
57 | 58 | |
58 | 59 | return $cleanedOptions; |
@@ -33,7 +33,7 @@ discard block |
||
33 | 33 | case 'kind': $this->setKind($value); break; |
34 | 34 | case 'id': $this->setId($value); break; |
35 | 35 | default: |
36 | - throw new \Exception('Unknown option: ' . $name); |
|
36 | + throw new \Exception('Unknown option: '.$name); |
|
37 | 37 | } |
38 | 38 | } |
39 | 39 | } |
@@ -51,7 +51,7 @@ discard block |
||
51 | 51 | // Remove options with empty values |
52 | 52 | $cleanedOptions = array(); |
53 | 53 | foreach ($options as $name=>$value) { |
54 | - if ($value!==null) |
|
54 | + if ($value !== null) |
|
55 | 55 | $cleanedOptions[$name] = $value; |
56 | 56 | } |
57 | 57 |
@@ -51,8 +51,9 @@ |
||
51 | 51 | // Remove options with empty values |
52 | 52 | $cleanedOptions = array(); |
53 | 53 | foreach ($options as $name=>$value) { |
54 | - if ($value!==null) |
|
55 | - $cleanedOptions[$name] = $value; |
|
54 | + if ($value!==null) { |
|
55 | + $cleanedOptions[$name] = $value; |
|
56 | + } |
|
56 | 57 | } |
57 | 58 | |
58 | 59 | return $cleanedOptions; |
@@ -33,7 +33,7 @@ discard block |
||
33 | 33 | case 'kind': $this->setKind($value); break; |
34 | 34 | case 'id': $this->setId($value); break; |
35 | 35 | default: |
36 | - throw new \Exception('Unknown option: ' . $name); |
|
36 | + throw new \Exception('Unknown option: '.$name); |
|
37 | 37 | } |
38 | 38 | } |
39 | 39 | } |
@@ -51,7 +51,7 @@ discard block |
||
51 | 51 | // Remove options with empty values |
52 | 52 | $cleanedOptions = array(); |
53 | 53 | foreach ($options as $name=>$value) { |
54 | - if ($value!==null) |
|
54 | + if ($value !== null) |
|
55 | 55 | $cleanedOptions[$name] = $value; |
56 | 56 | } |
57 | 57 |
@@ -51,8 +51,9 @@ |
||
51 | 51 | // Remove options with empty values |
52 | 52 | $cleanedOptions = array(); |
53 | 53 | foreach ($options as $name=>$value) { |
54 | - if ($value!==null) |
|
55 | - $cleanedOptions[$name] = $value; |
|
54 | + if ($value!==null) { |
|
55 | + $cleanedOptions[$name] = $value; |
|
56 | + } |
|
56 | 57 | } |
57 | 58 | |
58 | 59 | return $cleanedOptions; |
@@ -33,7 +33,7 @@ discard block |
||
33 | 33 | case 'kind': $this->setKind($value); break; |
34 | 34 | case 'id': $this->setId($value); break; |
35 | 35 | default: |
36 | - throw new \Exception('Unknown option: ' . $name); |
|
36 | + throw new \Exception('Unknown option: '.$name); |
|
37 | 37 | } |
38 | 38 | } |
39 | 39 | } |
@@ -51,7 +51,7 @@ discard block |
||
51 | 51 | // Remove options with empty values |
52 | 52 | $cleanedOptions = array(); |
53 | 53 | foreach ($options as $name=>$value) { |
54 | - if ($value!==null) |
|
54 | + if ($value !== null) |
|
55 | 55 | $cleanedOptions[$name] = $value; |
56 | 56 | } |
57 | 57 |
@@ -51,8 +51,9 @@ |
||
51 | 51 | // Remove options with empty values |
52 | 52 | $cleanedOptions = array(); |
53 | 53 | foreach ($options as $name=>$value) { |
54 | - if ($value!==null) |
|
55 | - $cleanedOptions[$name] = $value; |
|
54 | + if ($value!==null) { |
|
55 | + $cleanedOptions[$name] = $value; |
|
56 | + } |
|
56 | 57 | } |
57 | 58 | |
58 | 59 | return $cleanedOptions; |
@@ -33,7 +33,7 @@ discard block |
||
33 | 33 | case 'kind': $this->setKind($value); break; |
34 | 34 | case 'id': $this->setId($value); break; |
35 | 35 | default: |
36 | - throw new \Exception('Unknown option: ' . $name); |
|
36 | + throw new \Exception('Unknown option: '.$name); |
|
37 | 37 | } |
38 | 38 | } |
39 | 39 | } |
@@ -51,7 +51,7 @@ discard block |
||
51 | 51 | // Remove options with empty values |
52 | 52 | $cleanedOptions = array(); |
53 | 53 | foreach ($options as $name=>$value) { |
54 | - if ($value!==null) |
|
54 | + if ($value !== null) |
|
55 | 55 | $cleanedOptions[$name] = $value; |
56 | 56 | } |
57 | 57 |
@@ -51,8 +51,9 @@ |
||
51 | 51 | // Remove options with empty values |
52 | 52 | $cleanedOptions = array(); |
53 | 53 | foreach ($options as $name=>$value) { |
54 | - if ($value!==null) |
|
55 | - $cleanedOptions[$name] = $value; |
|
54 | + if ($value!==null) { |
|
55 | + $cleanedOptions[$name] = $value; |
|
56 | + } |
|
56 | 57 | } |
57 | 58 | |
58 | 59 | return $cleanedOptions; |
@@ -33,7 +33,7 @@ discard block |
||
33 | 33 | case 'kind': $this->setKind($value); break; |
34 | 34 | case 'id': $this->setId($value); break; |
35 | 35 | default: |
36 | - throw new \Exception('Unknown option: ' . $name); |
|
36 | + throw new \Exception('Unknown option: '.$name); |
|
37 | 37 | } |
38 | 38 | } |
39 | 39 | } |
@@ -51,7 +51,7 @@ discard block |
||
51 | 51 | // Remove options with empty values |
52 | 52 | $cleanedOptions = array(); |
53 | 53 | foreach ($options as $name=>$value) { |
54 | - if ($value!==null) |
|
54 | + if ($value !== null) |
|
55 | 55 | $cleanedOptions[$name] = $value; |
56 | 56 | } |
57 | 57 |
@@ -51,8 +51,9 @@ |
||
51 | 51 | // Remove options with empty values |
52 | 52 | $cleanedOptions = array(); |
53 | 53 | foreach ($options as $name=>$value) { |
54 | - if ($value!==null) |
|
55 | - $cleanedOptions[$name] = $value; |
|
54 | + if ($value!==null) { |
|
55 | + $cleanedOptions[$name] = $value; |
|
56 | + } |
|
56 | 57 | } |
57 | 58 | |
58 | 59 | return $cleanedOptions; |