Completed
Pull Request — master (#19)
by Sergey
03:50 queued 24s
created
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/Api/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/Helpers/CsrfHelper.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -4,7 +4,7 @@  discard block
 block discarded – undo
4 4
 
5 5
 class CsrfHelper
6 6
 {
7
-    const TOKEN_NAME        = 'csrftoken';
7
+    const TOKEN_NAME = 'csrftoken';
8 8
     const DEFAULT_TOKEN = '1234';
9 9
     /**
10 10
      * Get a CSRF token from the given cookie file
@@ -38,7 +38,7 @@  discard block
 block discarded – undo
38 38
             return false;
39 39
         }
40 40
 
41
-        preg_match('/' . self::TOKEN_NAME . '\s(\w*)/', $line, $matches);
41
+        preg_match('/'.self::TOKEN_NAME.'\s(\w*)/', $line, $matches);
42 42
         if ( ! empty($matches)) {
43 43
             return $matches[1];
44 44
         }
Please login to merge, or discard this patch.
src/Helpers/Providers/FollowHelper.php 1 patch
Doc Comments   +9 added lines patch added patch discarded remove patch
@@ -42,9 +42,18 @@
 block discarded – undo
42 42
         return $this->getResponse()->checkErrorInResponse($response);
43 43
     }
44 44
 
45
+    /**
46
+     * @return string
47
+     */
45 48
     abstract function getEntityIdName();
46 49
 
50
+    /**
51
+     * @return string
52
+     */
47 53
     abstract function getFollowUrl();
48 54
 
55
+    /**
56
+     * @return string
57
+     */
49 58
     abstract function getUnfFollowUrl();
50 59
 }
51 60
\ No newline at end of file
Please login to merge, or discard this patch.
src/Helpers/Providers/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/Helpers/Providers/SearchHelper.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -24,7 +24,7 @@
 block discarded – undo
24 24
      */
25 25
     public function searchCall($query, $scope, $bookmarks = [])
26 26
     {
27
-        $url = UrlHelper::getSearchUrl(! empty($bookmarks));
27
+        $url = UrlHelper::getSearchUrl( ! empty($bookmarks));
28 28
         $get = $this->createSearchRequest($query, $scope, $bookmarks);
29 29
         $url = $url.'?'.UrlHelper::buildRequestString($get);
30 30
         $response = $this->request->exec($url);
Please login to merge, or discard this patch.