@@ -57,8 +57,7 @@ |
||
57 | 57 | if ($this->value) |
58 | 58 | { |
59 | 59 | $query = sprintf('%s %s %s', $this->fieldName, $this->filter, $this->value); |
60 | - } |
|
61 | - else |
|
60 | + } else |
|
62 | 61 | { |
63 | 62 | $query = sprintf('%s %s', $this->fieldName, $this->filter); |
64 | 63 | } |
@@ -32,7 +32,7 @@ |
||
32 | 32 | * Include this section if you want sami to document |
33 | 33 | * private and protected functions/properties |
34 | 34 | */ |
35 | -$sami['filter'] = function () { |
|
35 | +$sami['filter'] = function() { |
|
36 | 36 | return new ApiFilter(); |
37 | 37 | }; |
38 | 38 |
@@ -9,15 +9,15 @@ |
||
9 | 9 | |
10 | 10 | class ApiFilter implements FilterInterface |
11 | 11 | { |
12 | - public function acceptClass (ClassReflection $class) |
|
12 | + public function acceptClass(ClassReflection $class) |
|
13 | 13 | { |
14 | 14 | return true; |
15 | 15 | } |
16 | - public function acceptMethod (MethodReflection $method) |
|
16 | + public function acceptMethod(MethodReflection $method) |
|
17 | 17 | { |
18 | 18 | return ($method->isPublic() && empty($method->getTags('internal'))); |
19 | 19 | } |
20 | - public function acceptProperty (PropertyReflection $property) |
|
20 | + public function acceptProperty(PropertyReflection $property) |
|
21 | 21 | { |
22 | 22 | return ($property->isPublic() && empty($property->getTags('internal'))); |
23 | 23 | } |