Skip to content

Commit

Permalink
Add typehint and missing full stops.
Browse files Browse the repository at this point in the history
  • Loading branch information
euromark committed Nov 2, 2014
1 parent a828d0b commit 36bea7f
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 9 deletions.
8 changes: 4 additions & 4 deletions src/View/Helper/PaginatorHelper.php
Expand Up @@ -810,7 +810,7 @@ public function last($last = 'last >>', array $options = array()) {
return $out;
}
/**
* Returns the meta-links for a paginated result set
* Returns the meta-links for a paginated result set.
*
* `echo $this->Paginator->meta();`
*
Expand All @@ -819,17 +819,17 @@ public function last($last = 'last >>', array $options = array()) {
* `$this->Paginator->meta(['block' => true]);`
*
* Will append the output of the meta function to the named block - if true is passed the "meta"
* block is used
* block is used.
*
* ### Options:
*
* - `model` The model to use defaults to PaginatorHelper::defaultModel()
* - `block` The block name to append the output to, or false/absenst to return as a string
*
* @param array $options Array of options
* @return string|null meta links
* @return string|null Meta links
*/
public function meta($options = []) {
public function meta(array $options = []) {
$model = isset($options['model']) ? $options['model'] : null;
$params = $this->params($model);
$links = [];
Expand Down
11 changes: 6 additions & 5 deletions tests/TestCase/View/Helper/PaginatorHelperTest.php
Expand Up @@ -2023,7 +2023,7 @@ public function testWithZeroPages() {
}

/**
* Verify that no next and prev links are created for single page results
* Verifies that no next and prev links are created for single page results.
*
* @return void
*/
Expand All @@ -2043,7 +2043,7 @@ public function testMetaPage0() {
}

/**
* Verify that page 1 only has a next link
* Verifies that page 1 only has a next link.
*
* @return void
*/
Expand All @@ -2063,7 +2063,7 @@ public function testMetaPage1() {
}

/**
* Verify that the method will append to a block
* Verifies that the method will append to a block.
*
* @return void
*/
Expand All @@ -2084,7 +2084,7 @@ public function testMetaPage1InlineFalse() {
}

/**
* Verify that the last page only has a prev link
* Verifies that the last page only has a prev link.
*
* @return void
*/
Expand All @@ -2105,7 +2105,7 @@ public function testMetaPage1Last() {
}

/**
* Verify that a page in the middle has both links
* Verifies that a page in the middle has both links.
*
* @return void
*/
Expand All @@ -2124,4 +2124,5 @@ public function testMetaPage10Last() {
$result = $this->Paginator->meta();
$this->assertSame($expected, $result);
}

}

0 comments on commit 36bea7f

Please sign in to comment.