Completed
Branch master (52d1f3)
by Soufiene
06:26
created
src/AuthManager.php 1 patch
Doc Comments   +6 added lines patch added patch discarded remove patch
@@ -19,6 +19,9 @@  discard block
 block discarded – undo
19 19
         $this->httpClient = new $httpClient(false);
20 20
     }
21 21
 
22
+    /**
23
+     * @param boolean $profile
24
+     */
22 25
     public static function deleteTokenFor($profile)
23 26
     {
24 27
         if ('basic' !== config('p-connector.profiles.'.$profile.'.auth.auth_method', config('p-connector.auth.auth_method', 'basic'))) {
@@ -29,6 +32,9 @@  discard block
 block discarded – undo
29 32
         }
30 33
     }
31 34
 
35
+    /**
36
+     * @param string $profile
37
+     */
32 38
     public function getAuthenticationHeader($profile)
33 39
     {
34 40
         $token = $this->getToken($profile);
Please login to merge, or discard this patch.
src/Concerns/Configurations.php 1 patch
Doc Comments   +11 added lines, -8 removed lines patch added patch discarded remove patch
@@ -32,6 +32,9 @@  discard block
 block discarded – undo
32 32
      */
33 33
     private $decodeResponse;
34 34
 
35
+    /**
36
+     * @param string $profile
37
+     */
35 38
     private function updateSettings($profile)
36 39
     {
37 40
         $this->withAuthentication = config('p-connector.profiles.'.$profile.'.auth.authenticate_by_default', config('p-connector.auth.authenticate_by_default', false));
@@ -46,7 +49,7 @@  discard block
 block discarded – undo
46 49
      *
47 50
      * @param string $profile The profile name
48 51
      *
49
-     * @return \MedianetDev\PConnector\PConnector
52
+     * @return Configurations
50 53
      */
51 54
     public function profile(string $profile)
52 55
     {
@@ -62,7 +65,7 @@  discard block
 block discarded – undo
62 65
     /**
63 66
      * Use authentication for this request.
64 67
      *
65
-     * @return \MedianetDev\PConnector\PConnector
68
+     * @return Configurations
66 69
      */
67 70
     public function withAuth()
68 71
     {
@@ -74,7 +77,7 @@  discard block
 block discarded – undo
74 77
     /**
75 78
      * Don't use authentication for this request.
76 79
      *
77
-     * @return \MedianetDev\PConnector\PConnector
80
+     * @return Configurations
78 81
      */
79 82
     public function withoutAuth()
80 83
     {
@@ -86,7 +89,7 @@  discard block
 block discarded – undo
86 89
     /**
87 90
      * Log this request.
88 91
      *
89
-     * @return \MedianetDev\PConnector\PConnector
92
+     * @return Configurations
90 93
      */
91 94
     public function withLog()
92 95
     {
@@ -98,7 +101,7 @@  discard block
 block discarded – undo
98 101
     /**
99 102
      * Don't log this request.
100 103
      *
101
-     * @return \MedianetDev\PConnector\PConnector
104
+     * @return Configurations
102 105
      */
103 106
     public function withoutLog()
104 107
     {
@@ -110,7 +113,7 @@  discard block
 block discarded – undo
110 113
     /**
111 114
      * Parse the response as an object.
112 115
      *
113
-     * @return \MedianetDev\PConnector\PConnector
116
+     * @return Configurations
114 117
      */
115 118
     public function objectResponse()
116 119
     {
@@ -122,7 +125,7 @@  discard block
 block discarded – undo
122 125
     /**
123 126
      * Parse the response as a string.
124 127
      *
125
-     * @return \MedianetDev\PConnector\PConnector
128
+     * @return Configurations
126 129
      */
127 130
     public function htmlResponse()
128 131
     {
@@ -134,7 +137,7 @@  discard block
 block discarded – undo
134 137
     /**
135 138
      * Parse the response as an array.
136 139
      *
137
-     * @return \MedianetDev\PConnector\PConnector
140
+     * @return Configurations
138 141
      */
139 142
     public function arrayResponse()
140 143
     {
Please login to merge, or discard this patch.
src/Concerns/Utils.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -53,7 +53,7 @@
 block discarded – undo
53 53
     /**
54 54
      * Dump the \MedianetDev\PConnector\PConnector using laravel dump function.
55 55
      *
56
-     * @return \MedianetDev\PConnector\PConnector
56
+     * @return Utils
57 57
      */
58 58
     public function dump()
59 59
     {
Please login to merge, or discard this patch.
src/Http/Base/BaseHttp.php 1 patch
Doc Comments   -1 removed lines patch added patch discarded remove patch
@@ -44,7 +44,6 @@
 block discarded – undo
44 44
     /**
45 45
      * Return the sent request data and the response with a status to indicate if the is an error or not.
46 46
      *
47
-     * @param string $rul
48 47
      * @param string $method
49 48
      * @param array  $payload
50 49
      * @param mixed  $response
Please login to merge, or discard this patch.