Skip to content
This repository was archived by the owner on Jan 30, 2020. It is now read-only.

Commit d9861c2

Browse files
committed
Fixed indentation in updated example.
1 parent f6c6bd5 commit d9861c2

File tree

1 file changed

+23
-20
lines changed

1 file changed

+23
-20
lines changed

doc/book/zend.input-filter.intro.md

Lines changed: 23 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -198,34 +198,37 @@ class SimplePerson
198198
protected $inputFilter;
199199

200200
/**
201-
* Retrieve input filter
202-
*
203-
* @return InputFilter
204-
*/
201+
* Retrieve input filter
202+
*
203+
* @return InputFilter
204+
*/
205205
public function getInputFilter()
206206
{
207-
if (!$this->inputFilter) {
208-
// Create a new input filter
209-
$this->inputFilter = new InputFilter();
210-
// Merge our inputFilter in for the email property
211-
$this->inputFilter->merge(new EmailInputFilter());
212-
// Merge our inputFilter in for the name property
213-
$this->inputFilter->merge(new NameInputFilter());
214-
}
215-
return $this->inputFilter;
207+
if (! $this->inputFilter) {
208+
// Create a new input filter
209+
$this->inputFilter = new InputFilter();
210+
211+
// Merge our inputFilter in for the email property
212+
$this->inputFilter->merge(new EmailInputFilter());
213+
214+
// Merge our inputFilter in for the name property
215+
$this->inputFilter->merge(new NameInputFilter());
216+
}
217+
218+
return $this->inputFilter;
216219
}
217220

218221
/**
219-
* Set input filter
220-
*
221-
* @param InputFilterInterface $inputFilter
222-
* @return SimplePerson
223-
*/
222+
* Set input filter
223+
*
224+
* @param InputFilterInterface $inputFilter
225+
* @return SimplePerson
226+
*/
224227
public function setInputFilter(InputFilterInterface $inputFilter)
225228
{
226-
$this->inputFilter = $inputFilter;
229+
$this->inputFilter = $inputFilter;
227230

228-
return $this;
231+
return $this;
229232
}
230233
}
231234
```

0 commit comments

Comments
 (0)