Completed
Push — master ( 384143...5d97bb )
by Vladimir
03:13
created
tests/utilities/AuthenticatedClient.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -25,7 +25,7 @@
 block discarded – undo
25 25
         return (isset($this->apiToken));
26 26
     }
27 27
 
28
-    public function getApiToken()
28
+    public function getApiToken ()
29 29
     {
30 30
         return $this->apiToken;
31 31
     }
Please login to merge, or discard this patch.
tests/sanitize-fixtures.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -1,8 +1,8 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 
3
-$auth = json_decode(file_get_contents(__DIR__ . '/../phpunit-auth.json'), true);
4
-$findAndReplace = json_decode(file_get_contents(__DIR__ . '/sanitize-values.json'), true);
5
-$fixtures = file_get_contents(__DIR__ . '/fixtures/PhpPulseVCR');
3
+$auth = json_decode(file_get_contents(__DIR__.'/../phpunit-auth.json'), true);
4
+$findAndReplace = json_decode(file_get_contents(__DIR__.'/sanitize-values.json'), true);
5
+$fixtures = file_get_contents(__DIR__.'/fixtures/PhpPulseVCR');
6 6
 
7 7
 $sanitized = str_replace($auth['apiToken'], 'YourApiKeyHere', $fixtures);
8 8
 
@@ -11,4 +11,4 @@  discard block
 block discarded – undo
11 11
     $sanitized = str_replace($key, $value, $sanitized);
12 12
 }
13 13
 
14
-file_put_contents(__DIR__ . '/fixtures/PhpPulseVCR-sanitized', $sanitized);
15 14
\ No newline at end of file
15
+file_put_contents(__DIR__.'/fixtures/PhpPulseVCR-sanitized', $sanitized);
16 16
\ No newline at end of file
Please login to merge, or discard this patch.
src/PulseGroup.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -50,12 +50,12 @@
 block discarded – undo
50 50
 
51 51
     public function isArchived ()
52 52
     {
53
-        return (bool)$this->archived;
53
+        return (bool) $this->archived;
54 54
     }
55 55
 
56 56
     public function isDeleted ()
57 57
     {
58
-        return (bool)$this->deleted;
58
+        return (bool) $this->deleted;
59 59
     }
60 60
 
61 61
     /**
Please login to merge, or discard this patch.
src/Objects/ApiObject.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -315,7 +315,7 @@  discard block
 block discarded – undo
315 315
     {
316 316
         if (self::lazyCastNeeded($target, $objectType))
317 317
         {
318
-            $object = ($objectType[0] == "\\") ? $objectType : self::OBJ_NAMESPACE . $objectType;
318
+            $object = ($objectType[0] == "\\") ? $objectType : self::OBJ_NAMESPACE.$objectType;
319 319
             $target = new $object($target);
320 320
         }
321 321
     }
@@ -354,7 +354,7 @@  discard block
 block discarded – undo
354 354
      */
355 355
     final protected static function lazyCastNeeded ($target, $objectType)
356 356
     {
357
-        $objectDefinition = ($objectType[0] === "\\") ? $objectType : self::OBJ_NAMESPACE . $objectType;
357
+        $objectDefinition = ($objectType[0] === "\\") ? $objectType : self::OBJ_NAMESPACE.$objectType;
358 358
 
359 359
         return !($target instanceof $objectDefinition);
360 360
     }
@@ -391,7 +391,7 @@  discard block
 block discarded – undo
391 391
      */
392 392
     final protected static function castArrayToObjectArray ($className, $objects)
393 393
     {
394
-        $class = self::OBJ_NAMESPACE . $className;
394
+        $class = self::OBJ_NAMESPACE.$className;
395 395
         $array = [];
396 396
 
397 397
         foreach ($objects as $post)
Please login to merge, or discard this patch.
src/Objects/PulseColumnTextValue.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -51,7 +51,7 @@
 block discarded – undo
51 51
         $url        = sprintf("%s/%d/columns/%s/text.json", self::apiEndpoint(), $this->board_id, $this->column_id);
52 52
         $postParams = [
53 53
             "pulse_id" => $this->pulse_id,
54
-            "text"     => (string)$text
54
+            "text"     => (string) $text
55 55
         ];
56 56
 
57 57
         $result = self::sendPut($url, $postParams);
Please login to merge, or discard this patch.
src/Utilities/UrlQuery.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -54,7 +54,7 @@  discard block
 block discarded – undo
54 54
      */
55 55
     public function __construct ($url, $urlParams)
56 56
     {
57
-        $this->url  = $url . "?" . self::formatParameters($urlParams);
57
+        $this->url  = $url."?".self::formatParameters($urlParams);
58 58
         $this->cURL = curl_init();
59 59
 
60 60
         $this->configureCurl();
@@ -87,7 +87,7 @@  discard block
 block discarded – undo
87 87
 
88 88
         curl_setopt_array($this->cURL, [
89 89
             CURLOPT_HTTPAUTH => CURLAUTH_BASIC,
90
-            CURLOPT_USERPWD  => $username . ":" . $password
90
+            CURLOPT_USERPWD  => $username.":".$password
91 91
         ]);
92 92
     }
93 93
 
@@ -311,7 +311,7 @@  discard block
 block discarded – undo
311 311
                 continue;
312 312
             }
313 313
 
314
-            $parameters[] = rawurlencode($key) . "=" . rawurlencode($value);
314
+            $parameters[] = rawurlencode($key)."=".rawurlencode($value);
315 315
         }
316 316
 
317 317
         return implode("&", $parameters);
Please login to merge, or discard this patch.