Completed
Push — master ( 891ebd...f30b9c )
by Jonathan
15:26 queued 02:51
created
src/AbstractReportingCloud.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -163,7 +163,7 @@  discard block
 block discarded – undo
163 163
     {
164 164
         if (null === $this->client) {
165 165
 
166
-            $usernamePassword = sprintf('%s:%s'   , $this->getUsername(), $this->getPassword());
166
+            $usernamePassword = sprintf('%s:%s', $this->getUsername(), $this->getPassword());
167 167
             $authorization    = sprintf('Basic %s', base64_encode($usernamePassword));
168 168
 
169 169
             $client = new Client([
@@ -397,7 +397,7 @@  discard block
 block discarded – undo
397 397
             // \GuzzleHttp\Exception\ClientException
398 398
             // \GuzzleHttp\Exception\ServerException
399 399
 
400
-            $message = (string)  $exception->getMessage();
400
+            $message = (string) $exception->getMessage();
401 401
             $code    = (integer) $exception->getCode();
402 402
 
403 403
             throw new RuntimeException($message, $code);
Please login to merge, or discard this patch.
src/Validator/Page.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -35,7 +35,7 @@
 block discarded – undo
35 35
      *
36 36
      * @const INVALID_TYPE
37 37
      */
38
-    const INVALID_TYPE  = 'invalidType';
38
+    const INVALID_TYPE = 'invalidType';
39 39
     
40 40
     /**
41 41
      * Invalid page
Please login to merge, or discard this patch.
src/Validator/TemplateFormat.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -28,10 +28,10 @@
 block discarded – undo
28 28
     public function __construct($options = [])
29 29
     {
30 30
         $options['haystack'] = [
31
-            'DOC' ,
31
+            'DOC',
32 32
             'DOCX',
33
-            'RTF' ,
34
-            'TX'  ,
33
+            'RTF',
34
+            'TX',
35 35
         ];
36 36
 
37 37
         return parent::__construct($options);
Please login to merge, or discard this patch.
src/Validator/Timestamp.php 2 patches
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -66,9 +66,9 @@
 block discarded – undo
66 66
         }
67 67
 
68 68
         $betweenValidator = new BetweenValidator([
69
-             'min'       => 0,
70
-             'max'       => PHP_INT_MAX,
71
-             'inclusive' => true
69
+                'min'       => 0,
70
+                'max'       => PHP_INT_MAX,
71
+                'inclusive' => true
72 72
         ]);
73 73
 
74 74
         if (!$betweenValidator->isValid($value)) {
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -28,7 +28,7 @@
 block discarded – undo
28 28
      *
29 29
      * @const INVALID_TYPE
30 30
      */
31
-    const INVALID_TYPE  = 'invalidType';
31
+    const INVALID_TYPE = 'invalidType';
32 32
 
33 33
     /**
34 34
      * Invalid range
Please login to merge, or discard this patch.
src/Validator/DateTime.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -29,7 +29,7 @@
 block discarded – undo
29 29
      *
30 30
      * @const INVALID_TYPE
31 31
      */
32
-    const INVALID_TYPE   = 'invalidType';
32
+    const INVALID_TYPE = 'invalidType';
33 33
 
34 34
     /**
35 35
      * Invalid length
Please login to merge, or discard this patch.
src/Validator/ZoomFactor.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -42,7 +42,7 @@
 block discarded – undo
42 42
      *
43 43
      * @const INVALID_TYPE
44 44
      */
45
-    const INVALID_TYPE  = 'invalidType';
45
+    const INVALID_TYPE = 'invalidType';
46 46
 
47 47
     /**
48 48
      * Invalid page
Please login to merge, or discard this patch.
src/Validator/ReturnFormat.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -28,12 +28,12 @@
 block discarded – undo
28 28
     public function __construct($options = [])
29 29
     {
30 30
         $options['haystack'] = [
31
-            'DOC' ,
31
+            'DOC',
32 32
             'DOCX',
33 33
             'HTML',
34
-            'PDF' ,
35
-            'RTF' ,
36
-            'TX'  ,
34
+            'PDF',
35
+            'RTF',
36
+            'TX',
37 37
         ];
38 38
 
39 39
         return parent::__construct($options);
Please login to merge, or discard this patch.
src/Validator/DocumentExtension.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -28,12 +28,12 @@
 block discarded – undo
28 28
     public function __construct($options = [])
29 29
     {
30 30
         $options['haystack'] = [
31
-            'DOC' ,
31
+            'DOC',
32 32
             'DOCX',
33 33
             'HTML',
34
-            'PDF' ,
35
-            'RTF' ,
36
-            'TX'  ,
34
+            'PDF',
35
+            'RTF',
36
+            'TX',
37 37
         ];
38 38
 
39 39
         return parent::__construct($options);
Please login to merge, or discard this patch.
src/ReportingCloud.php 2 patches
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -377,7 +377,7 @@
 block discarded – undo
377 377
      * @return null|string
378 378
      */
379 379
     public function mergeDocument($mergeData, $returnFormat, $templateName = null, $templateFilename = null,
380
-                                  $append = null, $mergeSettings = [])
380
+                                    $append = null, $mergeSettings = [])
381 381
     {
382 382
         $ret = null;
383 383
 
Please login to merge, or discard this patch.
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -59,10 +59,10 @@  discard block
 block discarded – undo
59 59
         $ret = null;
60 60
 
61 61
         StaticValidator::execute($templateName, 'TemplateName');
62
-        StaticValidator::execute($zoomFactor  , 'ZoomFactor');
63
-        StaticValidator::execute($fromPage    , 'Page');
64
-        StaticValidator::execute($toPage      , 'Page');
65
-        StaticValidator::execute($imageFormat , 'ImageFormat');
62
+        StaticValidator::execute($zoomFactor, 'ZoomFactor');
63
+        StaticValidator::execute($fromPage, 'Page');
64
+        StaticValidator::execute($toPage, 'Page');
65
+        StaticValidator::execute($imageFormat, 'ImageFormat');
66 66
 
67 67
         $query = [
68 68
             'templateName' => $templateName,
@@ -327,7 +327,7 @@  discard block
 block discarded – undo
327 327
 
328 328
         StaticValidator::execute($documentFilename, 'DocumentExtension');
329 329
         StaticValidator::execute($documentFilename, 'FileExists');
330
-        StaticValidator::execute($returnFormat    , 'ReturnFormat');
330
+        StaticValidator::execute($returnFormat, 'ReturnFormat');
331 331
 
332 332
         $headers = [
333 333
             'Content-Type' => 'application/json',
@@ -381,7 +381,7 @@  discard block
 block discarded – undo
381 381
     {
382 382
         $ret = null;
383 383
 
384
-        StaticValidator::execute($mergeData   , 'TypeArray');
384
+        StaticValidator::execute($mergeData, 'TypeArray');
385 385
         StaticValidator::execute($returnFormat, 'ReturnFormat');
386 386
 
387 387
         if (null !== $templateName) {
@@ -397,9 +397,9 @@  discard block
 block discarded – undo
397 397
         if (null !== $append) {
398 398
             StaticValidator::execute($append, 'TypeBoolean');
399 399
             if (true === $append) {
400
-                $append = 'true';   // This boolean value MUST be passed as a string to prevent Guzzle converting the
400
+                $append = 'true'; // This boolean value MUST be passed as a string to prevent Guzzle converting the
401 401
             } else {                // query parameter to ?append=0 or ?append=1, which the backend does not recognize.
402
-                $append = 'false';  // The backend only recognizes query parameter ?append=true and ?append=false.
402
+                $append = 'false'; // The backend only recognizes query parameter ?append=true and ?append=false.
403 403
             }
404 404
         }
405 405
 
@@ -424,7 +424,7 @@  discard block
 block discarded – undo
424 424
 
425 425
             $filter = new TimestampToDateTimeFilter();
426 426
 
427
-            $mergeSettingsRc = [];  // 'Rc' - this array is passed to ReportingCloud
427
+            $mergeSettingsRc = []; // 'Rc' - this array is passed to ReportingCloud
428 428
 
429 429
             $propertyMap = new MergeSettingsPropertyMap();
430 430
 
Please login to merge, or discard this patch.