| Conditions | 4 |
| Paths | 6 |
| Total Lines | 12 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 17 | public function add( $query, $column = 'q', $encode = true ) |
||
| 18 | { |
||
| 19 | $query = $encode ? urlencode( $query ) : $query; |
||
| 20 | |||
| 21 | if ( isset( $this->params[$column] ) ) { |
||
| 22 | if ( $column === 'pageToken' ) { |
||
| 23 | $this->params[$column] = $query; |
||
|
|
|||
| 24 | } else { |
||
| 25 | $this->params[$column] = "{$this->params[$column]} $query"; |
||
| 26 | } |
||
| 27 | } else { |
||
| 28 | $this->params = Arr::add( $this->params, $column, $query ); |
||
| 29 | } |
||
| 38 |