| @@ -56,9 +56,9 @@ | ||
| 56 | 56 | $context->presentation = $presentation->of( |
| 57 | 57 | [ |
| 58 | 58 | 'model' => $indexable, |
| 59 | 59 | 'context' => $context, |
| 60 | - ] | |
| 60 | + ], | |
| 61 | 61 | ); |
| 62 | 62 | |
| 63 | 63 | $this->cache[ $indexable->id ] = $context->presentation; |
| 64 | 64 | } |
| @@ -69,8 +69,10 @@ | ||
| 69 | 69 | /** |
| 70 | 70 | * Clears the memoization of either a specific indexable or all indexables. |
| 71 | 71 | * |
| 72 | 72 | * @param Indexable|int|null $indexable Optional. The indexable or indexable id to clear the memoization of. |
| 73 | + * | |
| 74 | + * @return void | |
| 73 | 75 | */ |
| 74 | 76 | public function clear( $indexable = null ) { |
| 75 | 77 | if ( $indexable instanceof Indexable ) { |
| 76 | 78 | unset( $this->cache[ $indexable->id ] ); |