Completed
Push — master ( 464782...4147e3 )
by Ricardo
01:46
created
src/Connectors/Twitter/TwitterApiClient.php 1 patch
Doc Comments   +6 added lines patch added patch discarded remove patch
@@ -119,6 +119,8 @@  discard block
 block discarded – undo
119 119
      * @param  string consumer secret
120 120
      * @param  string access token
121 121
      * @param  string access token secret
122
+     * @param string $consumer_key
123
+     * @param string $consumer_secret
122 124
      * @return TwitterApiClient
123 125
      */
124 126
     public function set_oauth( $consumer_key, $consumer_secret, $access_key = '', $access_secret = '' )
@@ -225,6 +227,7 @@  discard block
 block discarded – undo
225 227
      * @param  string API method, e.g. "users/show"
226 228
      * @param  array method arguments
227 229
      * @param  string http request method
230
+     * @param string $path
228 231
      * @return array unserialized data returned from Twitter
229 232
      * @throws TwitterApiException
230 233
      */
@@ -290,6 +293,7 @@  discard block
 block discarded – undo
290 293
      * Perform an OAuth request - these differ somewhat from regular API calls
291 294
      *
292 295
      * @internal
296
+     * @param string $endpoint
293 297
      */
294 298
     private function oauth_exchange( $endpoint, array $args )
295 299
     {
@@ -327,6 +331,7 @@  discard block
 block discarded – undo
327 331
     /**
328 332
      * Sign and execute REST API call
329 333
      *
334
+     * @param string $http_method
330 335
      * @return array
331 336
      */
332 337
     private function rest_request( $path, array $args, $http_method )
@@ -669,6 +674,7 @@  discard block
 block discarded – undo
669 674
      * Construct TwitterApiException with addition of HTTP status code.
670 675
      *
671 676
      * @overload
677
+     * @param string $message
672 678
      */        
673 679
     public function __construct( $message, $code = 0 )
674 680
     {
Please login to merge, or discard this patch.
src/Connectors/Twitter/TwitterOAuth.php 1 patch
Doc Comments   +2 added lines patch added patch discarded remove patch
@@ -199,6 +199,7 @@  discard block
 block discarded – undo
199 199
 
200 200
     /**
201 201
      * Format and sign an OAuth / API request
202
+     * @param string $method
202 203
      */
203 204
     function oAuthRequest($url, $method, $parameters)
204 205
     {
@@ -218,6 +219,7 @@  discard block
 block discarded – undo
218 219
     /**
219 220
      * Make an HTTP request
220 221
      *
222
+     * @param string $postfields
221 223
      * @return API results
222 224
      */
223 225
     function http($url, $method, $postfields = null)
Please login to merge, or discard this patch.
src/Connectors/Twitter/TwitterSentimentAnalysis.php 1 patch
Unused Use Statements   -3 removed lines patch added patch discarded remove patch
@@ -2,9 +2,6 @@
 block discarded – undo
2 2
 
3 3
 namespace Integrations\Connectors\Twitter;
4 4
 
5
-use Log;
6
-use App\Models\User;
7
-
8 5
 class TwitterSentimentAnalysis extends Twitter
9 6
 {
10 7
     
Please login to merge, or discard this patch.
src/Connectors/Twitter/WikiGame.php 1 patch
Doc Comments   +16 added lines patch added patch discarded remove patch
@@ -174,6 +174,10 @@  discard block
 block discarded – undo
174 174
         }
175 175
         return $links;
176 176
     }
177
+
178
+    /**
179
+     * @param string $found_link
180
+     */
177 181
     private function bad_link_check($found_link)
178 182
     {
179 183
         $bad = [':', 'http', '\\', '<', '#'];
@@ -187,6 +191,10 @@  discard block
 block discarded – undo
187 191
         }
188 192
         return $is_bad;
189 193
     }
194
+
195
+    /**
196
+     * @return string
197
+     */
190 198
     private function fix_link($link)
191 199
     {
192 200
         if(strpos($link, "|") !== false) {
@@ -222,6 +230,10 @@  discard block
 block discarded – undo
222 230
         }
223 231
         return $quotes;
224 232
     }
233
+
234
+    /**
235
+     * @param string $url
236
+     */
225 237
     private function get_redirect_url($url)
226 238
     {
227 239
         $r = array('http' => array('method' => 'HEAD'));
@@ -309,6 +321,10 @@  discard block
 block discarded – undo
309 321
         }
310 322
         return $article;
311 323
     }
324
+
325
+    /**
326
+     * @param string $notice
327
+     */
312 328
     private function show_error($notice)
313 329
     {
314 330
         echo json_encode([$notice]);
Please login to merge, or discard this patch.
src/Connectors/Wikipedia/Search.php 1 patch
Unused Use Statements   -3 removed lines patch added patch discarded remove patch
@@ -2,9 +2,6 @@
 block discarded – undo
2 2
 
3 3
 namespace Integrations\Connectors\Wikipedia;
4 4
 
5
-use Log;
6
-use App\Models\User;
7
-
8 5
 class Search extends Wikipedia
9 6
 {
10 7
     
Please login to merge, or discard this patch.
src/Connectors/Wikipedia/WikiToApi.php 2 patches
Doc Comments   +4 added lines patch added patch discarded remove patch
@@ -45,6 +45,10 @@
 block discarded – undo
45 45
     }
46 46
 
47 47
     // Helper Function to get the Content from the API URL
48
+
49
+    /**
50
+     * @param string $url
51
+     */
48 52
     private function getContent($url, $user_agent, $proxy='')
49 53
     {
50 54
 
Please login to merge, or discard this patch.
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -2,7 +2,6 @@
 block discarded – undo
2 2
 
3 3
 namespace Integrations\Connectors\Wikipedia;
4 4
 
5
-use Log;
6 5
 use App\Models\User;
7 6
 
8 7
 /* PHP-Wiki-API: This is a simple class to get short Wikipedia info boxes from a given Keyword.
Please login to merge, or discard this patch.
src/Exceptions/WebhookException.php 1 patch
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -3,7 +3,6 @@
 block discarded – undo
3 3
 namespace Integrations\Exceptions;
4 4
 
5 5
 use Exception;
6
-use Illuminate\Http\Request;
7 6
 
8 7
 class WebhookException extends Exception
9 8
 {
Please login to merge, or discard this patch.
src/IntegrationsProvider.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -146,7 +146,7 @@
 block discarded – undo
146 146
     /**
147 147
      * Get the services provided by the provider.
148 148
      *
149
-     * @return array
149
+     * @return string[]
150 150
      */
151 151
     public function provides()
152 152
     {
Please login to merge, or discard this patch.
Unused Use Statements   -7 removed lines patch added patch discarded remove patch
@@ -2,22 +2,15 @@
 block discarded – undo
2 2
 
3 3
 namespace Integrations;
4 4
 
5
-use App;
6 5
 use Config;
7
-use Illuminate\Contracts\Events\Dispatcher;
8
-use Illuminate\Foundation\AliasLoader;
9
-use Illuminate\Routing\Router;
10 6
 
11
-use Illuminate\Support\Collection;
12 7
 use Illuminate\Support\Facades\View;
13 8
 use Illuminate\Support\ServiceProvider;
14
-use Integrations\Facades\Integrations as IntegrationsFacade;
15 9
 use Integrations\Services\IntegrationsService;
16 10
 
17 11
 use Log;
18 12
 
19 13
 use Muleta\Traits\Providers\ConsoleTools;
20
-use Route;
21 14
 
22 15
 class IntegrationsProvider extends ServiceProvider
23 16
 {
Please login to merge, or discard this patch.
src/Traits/ModelHasIntegrations.php 1 patch
Doc Comments   -1 removed lines patch added patch discarded remove patch
@@ -37,7 +37,6 @@
 block discarded – undo
37 37
     /**
38 38
      * Leave all integrations
39 39
      *
40
-     * @param  integer $integrationId
41 40
      * @param  integer $userId
42 41
      * @return void
43 42
      */
Please login to merge, or discard this patch.