Completed
Pull Request — master (#19)
by Sergey
03:17
created
src/Helpers/SearchHelper.php 2 patches
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -52,8 +52,8 @@
 block discarded – undo
52 52
     /**
53 53
      * Creates Pinterest API search request
54 54
      *
55
-     * @param       $query
56
-     * @param       $scope
55
+     * @param       string $query
56
+     * @param       string $scope
57 57
      * @param array $bookmarks
58 58
      * @return array
59 59
      */
Please login to merge, or discard this 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.
src/Api/Providers/Pinners.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -54,7 +54,7 @@
 block discarded – undo
54 54
     {
55 55
         $get = PinnerHelper::createUserDataRequest($username, $sourceUrl, $bookmarks);
56 56
         $getString = UrlHelper::buildRequestString($get);
57
-        $response = $this->request->exec($url . '?' . $getString, $username);
57
+        $response = $this->request->exec($url.'?'.$getString, $username);
58 58
         return $this->response->getPaginationData($response);
59 59
     }
60 60
 
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.