@@ -83,7 +83,7 @@ |
||
83 | 83 | /** |
84 | 84 | * @inheritdoc |
85 | 85 | */ |
86 | - public function getValueDisplay($context='') |
|
86 | + public function getValueDisplay($context = '') |
|
87 | 87 | { |
88 | 88 | return $this->value ? $this->trueLabel : $this->falseLabel; |
89 | 89 | } |
@@ -78,7 +78,7 @@ |
||
78 | 78 | /** |
79 | 79 | * @inheritdoc |
80 | 80 | */ |
81 | - public function getValueDisplay($context='') |
|
81 | + public function getValueDisplay($context = '') |
|
82 | 82 | { |
83 | 83 | return $this->getData() ? $this->trueLabel : $this->falseLabel; |
84 | 84 | } |
@@ -153,7 +153,7 @@ |
||
153 | 153 | * Assumes a single value for the choice |
154 | 154 | * @return string |
155 | 155 | */ |
156 | - public function getValueDisplay($context='') |
|
156 | + public function getValueDisplay($context = '') |
|
157 | 157 | { |
158 | 158 | $items = $this->getItems(); |
159 | 159 | return isset($items[$this->getValue()]) ? $items[$this->getValue()] : ''; |
@@ -97,7 +97,7 @@ |
||
97 | 97 | /** |
98 | 98 | * @inheritdoc |
99 | 99 | */ |
100 | - public function getValueDisplay($context='') |
|
100 | + public function getValueDisplay($context = '') |
|
101 | 101 | { |
102 | 102 | if (empty($this->value)) |
103 | 103 | return Html::encodeEntities($this->value); |
@@ -35,7 +35,7 @@ |
||
35 | 35 | /** |
36 | 36 | * @inheritdoc |
37 | 37 | */ |
38 | - public function processAsFilter(IQuery $query, $searchData=null) |
|
38 | + public function processAsFilter(IQuery $query, $searchData = null) |
|
39 | 39 | { |
40 | 40 | $searchData = ($searchData === null) ? $this->getValue() : $searchData; |
41 | 41 | if (!empty($searchData)) { |
@@ -50,7 +50,7 @@ |
||
50 | 50 | /** |
51 | 51 | * @inheritdoc |
52 | 52 | */ |
53 | - public function getValueDisplay($context='') |
|
53 | + public function getValueDisplay($context = '') |
|
54 | 54 | { |
55 | 55 | return neon()->formatter->asDate($this->getValue()); |
56 | 56 | } |
@@ -47,7 +47,7 @@ |
||
47 | 47 | /** |
48 | 48 | * @inheritdoc |
49 | 49 | */ |
50 | - public function getValueDisplay($context='') |
|
50 | + public function getValueDisplay($context = '') |
|
51 | 51 | { |
52 | 52 | return neon()->formatter->asDatetime($this->getValue()); |
53 | 53 | } |
@@ -35,7 +35,7 @@ |
||
35 | 35 | /** |
36 | 36 | * @inheritdoc |
37 | 37 | */ |
38 | - public function processAsFilter(IQuery $query, $searchData=null) |
|
38 | + public function processAsFilter(IQuery $query, $searchData = null) |
|
39 | 39 | { |
40 | 40 | $searchData = ($searchData === null) ? $this->getValue() : $searchData; |
41 | 41 | if (!empty($searchData)) { |
@@ -35,14 +35,14 @@ |
||
35 | 35 | /** |
36 | 36 | * @inheritdoc |
37 | 37 | */ |
38 | - public function getValueDisplay($context='') |
|
38 | + public function getValueDisplay($context = '') |
|
39 | 39 | { |
40 | 40 | if (empty($this->value)) |
41 | 41 | return Html::encodeEntities($this->value); |
42 | 42 | $display = []; |
43 | 43 | foreach ($this->value as $file) |
44 | 44 | $display[] = Html::a(neon()->firefly->getFileName($file), neon()->firefly->getUrl($file), ['target' => '_blank']); |
45 | - return implode(', <br>',$display); |
|
45 | + return implode(', <br>', $display); |
|
46 | 46 | } |
47 | 47 | |
48 | 48 | /** |