Completed
Push — master ( 93adc0...581e1d )
by Sergey
03:05
created
src/Helpers/SearchHelper.php 2 patches
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.
Braces   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -77,7 +77,9 @@
 block discarded – undo
77 77
      */
78 78
     public static function parseSearchResponse($res, $bookmarksUsed)
79 79
     {
80
-        if ($res === null || ! $bookmarksUsed) return self::parseSimpledSearchResponse($res);
80
+        if ($res === null || ! $bookmarksUsed) {
81
+            return self::parseSimpledSearchResponse($res);
82
+        }
81 83
 
82 84
         return self::parseBookMarkedSearchResponse($res);
83 85
     }
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.
src/Providers/Boards.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -21,7 +21,7 @@
 block discarded – undo
21 21
 
22 22
         $get = BoardHelper::createBoardsInfoRequest();
23 23
         $getString = UrlHelper::buildRequestString($get);
24
-        $res = $this->request->exec(UrlHelper::RESOURCE_GET_BOARDS . "?{$getString}");
24
+        $res = $this->request->exec(UrlHelper::RESOURCE_GET_BOARDS."?{$getString}");
25 25
 
26 26
         return BoardHelper::parseBoardsInfoResponse($res);
27 27
     }
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
@@ -52,7 +52,7 @@
 block discarded – undo
52 52
      */
53 53
     public static function buildApiUrl($resourceUrl)
54 54
     {
55
-        return self::URL_BASE . ltrim($resourceUrl, '/');
55
+        return self::URL_BASE.ltrim($resourceUrl, '/');
56 56
     }
57 57
 
58 58
     /**
Please login to merge, or discard this patch.
src/PinterestBot.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -88,7 +88,7 @@
 block discarded – undo
88 88
      */
89 89
     protected function _addProvider($provider)
90 90
     {
91
-        $class = self::PROVIDERS_NAMESPACE . ucfirst($provider);
91
+        $class = self::PROVIDERS_NAMESPACE.ucfirst($provider);
92 92
 
93 93
         if ( ! class_exists($class)) {
94 94
             throw new InvalidRequestException;
Please login to merge, or discard this patch.
src/Helpers/PaginationHelper.php 1 patch
Braces   +6 added lines, -2 removed lines patch added patch discarded remove patch
@@ -20,7 +20,9 @@  discard block
 block discarded – undo
20 20
     {
21 21
         $batchesNum = 0;
22 22
         do {
23
-            if (self::reachBatchesLimit($batchesLimit, $batchesNum))  break;
23
+            if (self::reachBatchesLimit($batchesLimit, $batchesNum)) {
24
+                break;
25
+            }
24 26
 
25 27
             $items = [];
26 28
             $res = call_user_func_array([$obj, $function], $params);
@@ -36,7 +38,9 @@  discard block
 block discarded – undo
36 38
                 $params['bookmarks'] = $res['bookmarks'];
37 39
             }
38 40
 
39
-            if (empty($items)) return;
41
+            if (empty($items)) {
42
+                return;
43
+            }
40 44
 
41 45
             $batchesNum++;
42 46
             yield $items;
Please login to merge, or discard this patch.
src/Providers/Pins.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -35,7 +35,7 @@
 block discarded – undo
35 35
     /**
36 36
      * Calls pinterest API to like or unlike Pin by ID
37 37
      *
38
-     * @param $pinId
38
+     * @param integer $pinId
39 39
      * @param $url
40 40
      * @return bool
41 41
      */
Please login to merge, or discard this patch.
src/Providers/Conversations.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -49,7 +49,7 @@
 block discarded – undo
49 49
         ];
50 50
         $data = ConversationHelper::createRequestData($request, '/');
51 51
         $query = UrlHelper::buildRequestString($data);
52
-        $res = $this->request->exec(UrlHelper::RESOURCE_GET_LAST_CONVERSATIONS . '?' . $query);
52
+        $res = $this->request->exec(UrlHelper::RESOURCE_GET_LAST_CONVERSATIONS.'?'.$query);
53 53
         return ConversationHelper::getDataFromResponse($res);
54 54
     }
55 55
 }
Please login to merge, or discard this patch.
src/Helpers/Providers/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.