@@ 274-276 (lines=3) @@ | ||
271 | throw new InvalidArgumentException('The board id is required.'); |
|
272 | } |
|
273 | ||
274 | if (isset($board->name) && empty($board->name) === false) { |
|
275 | $params['name'] = (string) $board->name; |
|
276 | } |
|
277 | ||
278 | if (isset($board->description) && empty($board->description) === false) { |
|
279 | $params['description'] = (string) $board->description; |
|
@@ 278-280 (lines=3) @@ | ||
275 | $params['name'] = (string) $board->name; |
|
276 | } |
|
277 | ||
278 | if (isset($board->description) && empty($board->description) === false) { |
|
279 | $params['description'] = (string) $board->description; |
|
280 | } |
|
281 | ||
282 | $request = new Request('PATCH', sprintf('boards/%s/', $board->id), $params); |
|
283 | ||
@@ 726-728 (lines=3) @@ | ||
723 | ||
724 | $params = array(); |
|
725 | ||
726 | if (isset($pin->note) && empty($pin->note) === false) { |
|
727 | $params['note'] = (string) $pin->note; |
|
728 | } |
|
729 | ||
730 | if (isset($pin->link) && empty($pin->link) === false) { |
|
731 | $params['link'] = (string) $pin->link; |
|
@@ 730-732 (lines=3) @@ | ||
727 | $params['note'] = (string) $pin->note; |
|
728 | } |
|
729 | ||
730 | if (isset($pin->link) && empty($pin->link) === false) { |
|
731 | $params['link'] = (string) $pin->link; |
|
732 | } |
|
733 | ||
734 | if ( |
|
735 | isset($pin->board, $pin->board->name, $pin->board->creator, $pin->board->creator->username) |