Completed
Pull Request — master (#6)
by Patrick
03:34
created
Serialize/class.ExcelSerializer.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -1,7 +1,7 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 namespace Serialize;
3 3
 
4
-require_once dirname(__FILE__) . '/../libs/PHPExcel/Classes/PHPExcel.php';
4
+require_once dirname(__FILE__).'/../libs/PHPExcel/Classes/PHPExcel.php';
5 5
 
6 6
 class ExcelSerializer extends SpreadSheetSerializer
7 7
 {
@@ -32,7 +32,7 @@  discard block
 block discarded – undo
32 32
             for($j = 0; $j < $colCount; $j++)
33 33
             {
34 34
                 $colName = $keys[$j];
35
-                $sheat->setCellValueByColumnAndRow($j, 2+$i, $data[$i][$j]);
35
+                $sheat->setCellValueByColumnAndRow($j, 2 + $i, $data[$i][$j]);
36 36
             }
37 37
         }
38 38
         if(strcasecmp($type, 'xlsx') === 0 || strcasecmp($type, 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet') === 0)
Please login to merge, or discard this patch.
Auth/OAuth2/class.OAuth2Authenticator.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -16,7 +16,7 @@
 block discarded – undo
16 16
 /** Only load the HTTPFul bootstrap if it isn't already loaded*/
17 17
 if(!class_exists('Httpful\Request'))
18 18
 {
19
-    require dirname(__FILE__) . '/../../libs/httpful/bootstrap.php';
19
+    require dirname(__FILE__).'/../../libs/httpful/bootstrap.php';
20 20
 }
21 21
 
22 22
 /**
Please login to merge, or discard this patch.
Auth/class.GoogleAuthenticator.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 namespace Auth;
3
-require dirname(__FILE__) . '/../libs/google/src/Google/autoload.php';
3
+require dirname(__FILE__).'/../libs/google/src/Google/autoload.php';
4 4
 
5 5
 class GoogleAuthenticator extends Authenticator
6 6
 {
@@ -34,7 +34,7 @@  discard block
 block discarded – undo
34 34
     public function authenticate($code, &$currentUser = false)
35 35
     {
36 36
         $googleUser = false;
37
-        try{
37
+        try {
38 38
             $this->client->authenticate($code);
39 39
             $this->token = $this->client->getAccessToken();
40 40
             \FlipSession::setVar('GoogleToken', $this->token);
Please login to merge, or discard this patch.
Email/class.Email.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -338,11 +338,11 @@  discard block
 block discarded – undo
338 338
         $rawMessage .= 'From: '.$this->encodeRecipients($from)."\n";
339 339
         if(!empty($this->cc))
340 340
         {
341
-            $rawMessage .= 'CC: '. $this->encodeRecipients($this->getCCAddresses())."\n";
341
+            $rawMessage .= 'CC: '.$this->encodeRecipients($this->getCCAddresses())."\n";
342 342
         }
343 343
         if(!empty($this->bcc))
344 344
         {
345
-            $rawMessage .= 'BCC: '. $this->encodeRecipients($this->getBCCAddresses())."\n";
345
+            $rawMessage .= 'BCC: '.$this->encodeRecipients($this->getBCCAddresses())."\n";
346 346
         }
347 347
         $rawMessage .= 'Subject: '.$this->getSubject()."\n";
348 348
         $rawMessage .= 'MIME-Version: 1.0'."\n";
@@ -356,7 +356,7 @@  discard block
 block discarded – undo
356 356
             $rawMessage .= "Content-Type: text/plain\n\n";
357 357
             $rawMessage .= $textBody."\n";
358 358
         }
359
-        $htmlBody    = $this->getHTMLBody();
359
+        $htmlBody = $this->getHTMLBody();
360 360
         if($htmlBody !== false && strlen($htmlBody) > 0)
361 361
         {
362 362
             $rawMessage .= "\n--alt-{$boundary}\n";
@@ -367,7 +367,7 @@  discard block
 block discarded – undo
367 367
         foreach($this->attachments as $attachment)
368 368
         {
369 369
             $rawMessage .= "\n--{$boundary}\n";
370
-            $rawMessage .= 'Content-Type: '. $attachment['mimeType'].'; name="'.$attachment['name']."\"\n";
370
+            $rawMessage .= 'Content-Type: '.$attachment['mimeType'].'; name="'.$attachment['name']."\"\n";
371 371
             $rawMessage .= 'Content-Disposition: attachment'."\n";
372 372
             $rawMessage .= 'Content-Transfer-Encoding: base64'."\n\n";
373 373
             $rawMessage .= chunk_split(base64_encode($attachment['data']), 76, "\n")."\n";
Please login to merge, or discard this patch.