Skip to content

Conversation

basjan
Copy link
Contributor

@basjan basjan commented May 29, 2014

Added Line element, such that straight lines can be added to a document. Includes arrow ends and line dashing.

@basjan
Copy link
Contributor Author

basjan commented May 29, 2014

@ivanlanin could you please take a look at this code ? I duplicated the writeStyle function from Image, because the function calls $this->getElementStyle and I needed to override this function.
Now Travis complains that there is duplicate code.
My coding skills are not sufficient here to resolve this. Do you have any suggestions on how to tackle this issue ?

@ivanlanin
Copy link
Contributor

Another great enhancement! 👍 This will resolve #123 when we can draw rectangular etc. I'll work on the duplication.

@basjan
Copy link
Contributor Author

basjan commented May 29, 2014

Thanks @ivanlanin I just commited a final try to resolve the Travis build errors. I renamed the writeStyle function to writeLineStyle, but I am not quite happy with it as a lot of code duplication is still present.
I hope you can come up with a solution.

@ivanlanin ivanlanin merged commit 748e164 into PHPOffice:develop May 29, 2014
ivanlanin added a commit that referenced this pull request May 29, 2014
@basjan basjan deleted the Line-element branch May 29, 2014 18:12
@ivanlanin
Copy link
Contributor

Merged. I've made some adjustments to your code: a57b28d. Nothing major. Thanks, @basjan.

@ivanlanin ivanlanin added this to the 0.11.0 milestone Jun 8, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

Successfully merging this pull request may close these issues.

2 participants