Skip to content

Commit

Permalink
Merge pull request #19 from spekulatius/remove-trailing-spaces
Browse files Browse the repository at this point in the history
Remove trailing spaces in the source code
  • Loading branch information
lekoala committed Jan 15, 2016
2 parents de127b8 + e908553 commit b7470a2
Show file tree
Hide file tree
Showing 10 changed files with 41 additions and 41 deletions.
20 changes: 10 additions & 10 deletions code/MandrillEmail.php
Expand Up @@ -154,7 +154,7 @@ public function getParseBody()

/**
* Set if body should be parsed or not
*
*
* @param bool $v
* @return \MandrillEmail
*/
Expand Down Expand Up @@ -417,7 +417,7 @@ public function getSidebar()

/**
* Get rendered body
*
*
* @return string
*/
public function getRenderedBody()
Expand All @@ -428,7 +428,7 @@ public function getRenderedBody()

/**
* Set image in the body of the message - see BasicEmail.ss
*
*
* @param Image|int $image Image or ImageID
* @param int $size
*/
Expand Down Expand Up @@ -487,7 +487,7 @@ public static function getPathForTemplate($templateName)
}

/**
*
*
* @return string
*/
public function getTheme()
Expand Down Expand Up @@ -533,7 +533,7 @@ public function getThemeOptions()

/**
* Set theme variables - see getTheme for available options
*
*
* @param array $vars
*/
public function setThemeOptions($vars)
Expand Down Expand Up @@ -613,7 +613,7 @@ public function setSampleRequiredObjects()

/**
* Get recipient as member
*
*
* @return Member
*/
public function getToMember()
Expand All @@ -630,7 +630,7 @@ public function getToMember()

/**
* Set recipient
*
*
* @param string $val
* @return Email
*/
Expand Down Expand Up @@ -677,7 +677,7 @@ public function setToMember(Member $member)

/**
* Set current member as recipient
*
*
* @return MandrillEmail
*/
public function setToCurrentMember()
Expand Down Expand Up @@ -707,7 +707,7 @@ public function getFromMember()

/**
* Set From Member
*
*
* @param Member $member
* @return MandrillEmail
*/
Expand All @@ -720,7 +720,7 @@ public function setFromMember(Member $member)

/**
* Get custom api params for this message.
*
*
* @return array
*/
public function getApiParams()
Expand Down
8 changes: 4 additions & 4 deletions code/MandrillMailer.php
Expand Up @@ -3,12 +3,12 @@

/*
* MandrillMailer for Silverstripe
*
*
* Features
* - Global tag support
* - Multiple recipient support (use comma separated list, not array)
* - File attachment support
*
*
* @link https://mandrillapp.com/api/docs/messages.php.html#method-send
* @package Mandrill
* @author LeKoala <thomas@lekoala.be>
Expand Down Expand Up @@ -335,7 +335,7 @@ public function sendHTML($to, $from, $subject, $htmlContent,

/**
* Normalize a recipient to an array of email and name
*
*
* @param string|array $recipient
* @return array
*/
Expand Down Expand Up @@ -389,7 +389,7 @@ protected function appendTo($arr, $recipients, $type = 'to')

/**
* Send the email through mandrill
*
*
* @param string|array $to
* @param string $from
* @param string $subject
Expand Down
4 changes: 2 additions & 2 deletions code/controllers/MandrillAdmin.php
Expand Up @@ -2,7 +2,7 @@

/**
* Mandrill admin section
*
*
* Allow you to see messages sent through the api key used to send messages
*
* @package Mandrill
Expand Down Expand Up @@ -468,7 +468,7 @@ public function CanConfigureWebhooks()

/**
* Install hook form
*
*
* @return \Form
*/
public function InstallHookForm()
Expand Down
2 changes: 1 addition & 1 deletion code/extensions/MandrillSiteConfig.php
Expand Up @@ -47,7 +47,7 @@ public function updateCMSFields(FieldList $fields)
_t('MandrillSiteConfig.EmailLogo', 'Email Logo')));
$emailLogo->setDescription(_t('MandrillSiteConfig.EmailLogoDesc',
'Will default to Logo if none defined'));

return $fields;
}

Expand Down
10 changes: 5 additions & 5 deletions code/models/EmailTemplate.php
Expand Up @@ -168,7 +168,7 @@ public function getCMSFields()
* Base models always available
*
* These models are defined in MandrillEmail::templateData()
*
*
* @return array
*/
public function getBaseModels()
Expand Down Expand Up @@ -233,7 +233,7 @@ public function getAvailableModels()

/**
* Get an email template by code
*
*
* @param string $code
* @return EmailTemplate
*/
Expand All @@ -259,7 +259,7 @@ public static function getByCode($code)

/**
* A shorthand to get an email by code
*
*
* @param string $code
* @return MandrillEmail
*/
Expand All @@ -280,7 +280,7 @@ public function onBeforeWrite()

/**
* Provide content for the Preview tab
*
*
* @return \Tab
*/
protected function previewTab()
Expand Down Expand Up @@ -311,7 +311,7 @@ protected function previewTab()

/**
* Returns an instance of MandrillEmail with the content of the template
*
*
* @return \MandrillEmail
*/
public function getEmail()
Expand Down
4 changes: 2 additions & 2 deletions code/thirdparty/Mandrill.php
Expand Up @@ -45,7 +45,7 @@
*/
class Mandrill
{

public $apikey;
public $ch;
public $root = 'https://mandrillapp.com/api/1.0';
Expand Down Expand Up @@ -241,7 +241,7 @@ public function call($url, $params)
if ($result === null) {
throw new Mandrill_Error('We were unable to decode the JSON response from the Mandrill API: ' . $response_body);
}

if (floor($info['http_code'] / 100) >= 4) {
throw $this->castError($result);
}
Expand Down
4 changes: 2 additions & 2 deletions code/viewables/MandrillMessage.php
@@ -1,7 +1,7 @@
<?php
/*
* Mandrill message to be displayed in a gridfield
*
*
* @link https://mandrillapp.com/api/docs/messages.JSON.html#method=search
* @package Mandrill
* @author LeKoala <thomas@lekoala.be>
Expand Down Expand Up @@ -45,7 +45,7 @@ public function __construct($data = array())

/**
* Get color for a given state
*
*
* @param string $state
* @return string
*/
Expand Down
2 changes: 1 addition & 1 deletion templates/Includes/MandrillAdmin_Content.ss
Expand Up @@ -5,7 +5,7 @@
<a class="ss-ui-button" data-icon="back" href="/admin/mandrill" data-pjax-target="Content"><% _t('BackLink_Button_ss.Back') %></a>
<% end_if %>
<% include CMSBreadcrumbs %>
</div>
</div>
</div>

<div class="cms-content-fields center ui-widget-content cms-panel-padded">
Expand Down
2 changes: 1 addition & 1 deletion templates/Includes/MandrillAdmin_NotConfigured.ss
Expand Up @@ -2,7 +2,7 @@
<div class="cms-content-header north">
<div class="cms-content-header-info">
<% include CMSBreadcrumbs %>
</div>
</div>
</div>

<div class="cms-content-fields center ui-widget-content cms-panel-padded">
Expand Down
26 changes: 13 additions & 13 deletions templates/email/LogoEmail.ss
Expand Up @@ -16,22 +16,22 @@
-ms-text-size-adjust:100%;
}

img{
img{
width:100%;
height:auto;
border:none;
font-size:14px;
font-weight:bold;
line-height:100%;
outline:none;
text-decoration:none;
border:none;
font-size:14px;
font-weight:bold;
line-height:100%;
outline:none;
text-decoration:none;
text-transform:capitalize;
}

#backgroundTable{
height:100% !important;
margin:0;
padding:0;
#backgroundTable{
height:100% !important;
margin:0;
padding:0;
width:100% !important;
}

Expand All @@ -41,7 +41,7 @@
}

p a{
color: #00afcb;
color: #00afcb;
text-decoration:underline;
word-wrap:break-word;
}
Expand Down Expand Up @@ -262,7 +262,7 @@
<p>$Body</p>
</span>
<% end_if %>
</div>
</div>
</td>
</tr>
</tbody>
Expand Down

0 comments on commit b7470a2

Please sign in to comment.