Completed
Pull Request — master (#11)
by Sergey
12:22
created
Category
src/Helpers/PinHelper.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -70,7 +70,7 @@  discard block
 block discarded – undo
70 70
             "context" => new \stdClass(),
71 71
         ];
72 72
 
73
-        return self::createPinRequestData($dataJson, "/pin/create/bookmarklet/?url=" . urlencode($imageUrl));
73
+        return self::createPinRequestData($dataJson, "/pin/create/bookmarklet/?url=".urlencode($imageUrl));
74 74
     }
75 75
 
76 76
 
@@ -191,7 +191,7 @@  discard block
 block discarded – undo
191 191
     {
192 192
         if ($sourceUrl === null) {
193 193
             reset($data);
194
-            $sourceUrl = "/pin/" . end($data["options"]) . "/";
194
+            $sourceUrl = "/pin/".end($data["options"])."/";
195 195
         }
196 196
 
197 197
         return self::createRequestData($data, $sourceUrl);
Please login to merge, or discard this patch.
src/Helpers/SearchHelper.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -34,7 +34,7 @@
 block discarded – undo
34 34
         }
35 35
 
36 36
         return [
37
-            "source_url"  => "/search/$scope/?q=" . $query,
37
+            "source_url"  => "/search/$scope/?q=".$query,
38 38
             "data"        => json_encode($dataJson),
39 39
             "module_path" => urlencode($modulePath),
40 40
         ];
Please login to merge, or discard this patch.
src/Helpers/UrlHelper.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
      */
52 52
     public static function buildApiUrl($resourceUrl)
53 53
     {
54
-        return self::URL_BASE . $resourceUrl;
54
+        return self::URL_BASE.$resourceUrl;
55 55
     }
56 56
 
57 57
     /**
Please login to merge, or discard this patch.
src/Providers/Pinners.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -50,7 +50,7 @@
 block discarded – undo
50 50
     {
51 51
         $get = PinnerHelper::createUserDataRequest($username, $sourceUrl, $bookmarks);
52 52
         $getString = UrlHelper::buildRequestString($get);
53
-        $res = $this->request->exec($url . '?' . $getString, $username);
53
+        $res = $this->request->exec($url.'?'.$getString, $username);
54 54
         $this->request->checkErrorInResponse($res);
55 55
 
56 56
         return PinnerHelper::checkUserDataResponse($res);
Please login to merge, or discard this patch.