Skip to content

Commit 3cc6981

Browse files
authored
Update code style and license (#24)
* Adjust license * Update readme style * Update code style
1 parent 45138b2 commit 3cc6981

File tree

3 files changed

+12
-22
lines changed

3 files changed

+12
-22
lines changed

LICENSE

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
Copyright (c) 2012-2013, OpenBuildings Ltd.
1+
Copyright (c) Clippings Ltd.
22
All rights reserved.
33

44
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
55

66
Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
77
Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
8-
Neither the name of the OpenBuildings nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.
9-
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
8+
Neither the name of the Clippings nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.
9+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

README.md

+7-9
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,8 @@
1-
# Swiftmailer Css Inliner Plugin
1+
# Swift Mailer CSS Inliner [![Build Status](https://travis-ci.org/OpenBuildings/swiftmailer-css-inliner.svg)](https://travis-ci.org/OpenBuildings/swiftmailer-css-inliner) [![Code Coverage](https://scrutinizer-ci.com/g/OpenBuildings/swiftmailer-css-inliner/badges/coverage.png?b=master)](https://scrutinizer-ci.com/g/OpenBuildings/swiftmailer-css-inliner/?branch=master) [![Scrutinizer Code Quality](https://scrutinizer-ci.com/g/OpenBuildings/swiftmailer-css-inliner/badges/quality-score.png?b=master)](https://scrutinizer-ci.com/g/OpenBuildings/swiftmailer-css-inliner/?branch=master) [![Latest Stable Version](https://poser.pugx.org/openbuildings/swiftmailer-css-inliner/v/stable.png)](https://packagist.org/packages/openbuildings/swiftmailer-css-inliner)
22

3-
[![Build Status](https://travis-ci.org/OpenBuildings/swiftmailer-css-inliner.svg)](https://travis-ci.org/OpenBuildings/swiftmailer-css-inliner)
4-
[![Code Coverage](https://scrutinizer-ci.com/g/OpenBuildings/swiftmailer-css-inliner/badges/coverage.png?b=master)](https://scrutinizer-ci.com/g/OpenBuildings/swiftmailer-css-inliner/?branch=master)
5-
[![Scrutinizer Code Quality](https://scrutinizer-ci.com/g/OpenBuildings/swiftmailer-css-inliner/badges/quality-score.png?b=master)](https://scrutinizer-ci.com/g/OpenBuildings/swiftmailer-css-inliner/?branch=master)
6-
[![Latest Stable Version](https://poser.pugx.org/openbuildings/swiftmailer-css-inliner/v/stable.png)](https://packagist.org/packages/openbuildings/swiftmailer-css-inliner)
7-
8-
A swiftmailer plugin that inlines the css (in style tags) into the specific html tags. Uses [CssToInlineStyles](https://github.com/tijsverkoyen/CssToInlineStyles). Works for both html body or html parts.
3+
Swift Mailer plugin inlining the CSS (in style tags) into the specific html tags.
4+
Uses [CssToInlineStyles](https://github.com/tijsverkoyen/CssToInlineStyles).
5+
Works for both html body or html parts.
96

107
## Usage
118

@@ -33,6 +30,7 @@ $mailer->registerPlugin(new CssInlinerPlugin($converter));
3330

3431
## License
3532

36-
Copyright (c) 2015, Clippings Ltd. Developed by Ivan Kerin as part of [clippings.com](http://clippings.com)
33+
Copyright © [Clippings Ltd.](https://clippings.com)
34+
and [contributors](https://github.com/OpenBuildings/swiftmailer-css-inliner/graphs/contributors).
3735

38-
Under BSD-3-Clause license, read LICENSE file.
36+
Under BSD-3-Clause license, read [LICENSE](https://github.com/OpenBuildings/swiftmailer-css-inliner/blob/master/LICENSE) file.

src/CssInlinerPlugin.php

+2-10
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,6 @@
66
use Swift_Events_SendListener;
77
use Swift_Events_SendEvent;
88

9-
/**
10-
* @package openbuildings\swiftmailer-css-inliner
11-
* @author Ivan Kerin <[email protected]>
12-
* @copyright (c) 2013 OpenBuildings Ltd.
13-
* @license http://spdx.org/licenses/BSD-3-Clause
14-
*/
159
class CssInlinerPlugin implements Swift_Events_SendListener
1610
{
1711
/**
@@ -50,12 +44,10 @@ public function beforeSendPerformed(Swift_Events_SendEvent $event)
5044
}
5145

5246
/**
53-
* Do nothing
54-
*
5547
* @param Swift_Events_SendEvent $event
5648
*/
57-
public function sendPerformed(\Swift_Events_SendEvent $event)
49+
public function sendPerformed(Swift_Events_SendEvent $event)
5850
{
59-
// Do Nothing
51+
// Do nothing after sending the message
6052
}
6153
}

0 commit comments

Comments
 (0)