Completed
Push — master ( 273313...02297b )
by Jonathan
03:49
created
src/ReportingCloud.php 3 patches
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -520,7 +520,7 @@
 block discarded – undo
520 520
      * @return null|string
521 521
      */
522 522
     public function findAndReplace($findAndReplaceData, $returnFormat, $templateName = null, $templateFilename = null,
523
-                                   $mergeSettings = [])
523
+                                    $mergeSettings = [])
524 524
     {
525 525
         $ret = null;
526 526
 
Please login to merge, or discard this patch.
Doc Comments   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -154,7 +154,7 @@  discard block
 block discarded – undo
154 154
      *
155 155
      * @throws InvalidArgumentException
156 156
      *
157
-     * @return bool
157
+     * @return integer
158 158
      */
159 159
     public function getTemplatePageCount($templateName)
160 160
     {
@@ -221,7 +221,7 @@  discard block
 block discarded – undo
221 221
      *
222 222
      * @throws InvalidArgumentException
223 223
      *
224
-     * @return null|resource
224
+     * @return string|null
225 225
      */
226 226
     public function downloadTemplate($templateName)
227 227
     {
@@ -327,7 +327,7 @@  discard block
 block discarded – undo
327 327
      *
328 328
      * @throws InvalidArgumentException
329 329
      *
330
-     * @return null|resource
330
+     * @return string|null
331 331
      */
332 332
     public function convertDocument($documentFilename, $returnFormat)
333 333
     {
Please login to merge, or discard this patch.
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -86,10 +86,10 @@  discard block
 block discarded – undo
86 86
         $ret = null;
87 87
 
88 88
         StaticValidator::execute($templateName, 'TemplateName');
89
-        StaticValidator::execute($zoomFactor  , 'ZoomFactor');
90
-        StaticValidator::execute($fromPage    , 'Page');
91
-        StaticValidator::execute($toPage      , 'Page');
92
-        StaticValidator::execute($imageFormat , 'ImageFormat');
89
+        StaticValidator::execute($zoomFactor, 'ZoomFactor');
90
+        StaticValidator::execute($fromPage, 'Page');
91
+        StaticValidator::execute($toPage, 'Page');
92
+        StaticValidator::execute($imageFormat, 'ImageFormat');
93 93
 
94 94
         $query = [
95 95
             'templateName' => $templateName,
@@ -134,7 +134,7 @@  discard block
 block discarded – undo
134 134
 
135 135
         if (is_array($records) && count($records) > 0) {
136 136
             $ret = $this->buildPropertyMapArray($records, $propertyMap);
137
-            array_walk($ret, function (&$record) use ($filter) {
137
+            array_walk($ret, function(&$record) use ($filter) {
138 138
                 $key = 'modified';
139 139
                 if (isset($record[$key])) {
140 140
                     $filter->filter($record[$key]);
@@ -201,7 +201,7 @@  discard block
 block discarded – undo
201 201
 
202 202
         if (is_array($records) && count($records) > 0) {
203 203
             $ret = $this->buildPropertyMapArray($records, $propertyMap);
204
-            array_walk($ret, function (&$record) use ($filter) {
204
+            array_walk($ret, function(&$record) use ($filter) {
205 205
                 $key = 'valid_until';
206 206
                 if (isset($record[$key])) {
207 207
                     $filter->filter($record[$key]);
@@ -329,7 +329,7 @@  discard block
 block discarded – undo
329 329
 
330 330
         StaticValidator::execute($documentFilename, 'DocumentExtension');
331 331
         StaticValidator::execute($documentFilename, 'FileExists');
332
-        StaticValidator::execute($returnFormat    , 'ReturnFormat');
332
+        StaticValidator::execute($returnFormat, 'ReturnFormat');
333 333
 
334 334
         $query = [
335 335
             'returnFormat' => $returnFormat,
@@ -376,7 +376,7 @@  discard block
 block discarded – undo
376 376
     {
377 377
         $ret = null;
378 378
 
379
-        StaticValidator::execute($mergeData   , 'TypeArray');
379
+        StaticValidator::execute($mergeData, 'TypeArray');
380 380
         StaticValidator::execute($returnFormat, 'ReturnFormat');
381 381
 
382 382
         if (null !== $templateName) {
@@ -458,7 +458,7 @@  discard block
 block discarded – undo
458 458
         $ret = null;
459 459
 
460 460
         StaticValidator::execute($findAndReplaceData, 'TypeArray');
461
-        StaticValidator::execute($returnFormat      , 'ReturnFormat');
461
+        StaticValidator::execute($returnFormat, 'ReturnFormat');
462 462
 
463 463
         if (null !== $templateName) {
464 464
             StaticValidator::execute($templateName, 'TemplateName');
Please login to merge, or discard this patch.
src/AbstractReportingCloud.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -403,7 +403,7 @@
 block discarded – undo
403 403
             // \GuzzleHttp\Exception\ClientException
404 404
             // \GuzzleHttp\Exception\ServerException
405 405
 
406
-            $message = (string)  $exception->getMessage();
406
+            $message = (string) $exception->getMessage();
407 407
             $code    = (integer) $exception->getCode();
408 408
 
409 409
             throw new RuntimeException($message, $code);
Please login to merge, or discard this patch.
Doc Comments   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -322,7 +322,7 @@  discard block
 block discarded – undo
322 322
     /**
323 323
      * Return the test flag
324 324
      *
325
-     * @return mixed
325
+     * @return boolean
326 326
      */
327 327
     public function getTest()
328 328
     {
@@ -350,7 +350,7 @@  discard block
 block discarded – undo
350 350
     /**
351 351
      * Return the debug flag
352 352
      *
353
-     * @return mixed
353
+     * @return boolean
354 354
      */
355 355
     public function getDebug()
356 356
     {
@@ -410,7 +410,7 @@  discard block
 block discarded – undo
410 410
      * @param string $uri     URI
411 411
      * @param array  $options Options
412 412
      *
413
-     * @return mixed|null|\Psr\Http\Message\ResponseInterface
413
+     * @return \Psr\Http\Message\ResponseInterface
414 414
      *
415 415
      * @throws RuntimeException
416 416
      */
Please login to merge, or discard this patch.