Completed
Push — master ( 75c869...e45bbd )
by Elf
05:55
created
app/Http/Controllers/Admin/Admin/UserController.php 1 patch
Unused Use Statements   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -2,10 +2,10 @@
 block discarded – undo
2 2
 
3 3
 namespace App\Http\Controllers\Admin\Admin;
4 4
 
5
+use App\DataTables\AdminUsersDataTable;
6
+use App\Http\Controllers\Controller;
5 7
 use App\Models\AdminUser;
6 8
 use Illuminate\Http\Request;
7
-use App\Http\Controllers\Controller;
8
-use App\DataTables\AdminUsersDataTable;
9 9
 
10 10
 class UserController extends Controller
11 11
 {
Please login to merge, or discard this patch.
app/Jobs/SendBearyChat.php 1 patch
Unused Use Statements   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -2,11 +2,11 @@
 block discarded – undo
2 2
 
3 3
 namespace App\Jobs;
4 4
 
5
-use Illuminate\Bus\Queueable;
6 5
 use ElfSundae\BearyChat\Message;
7
-use Illuminate\Queue\SerializesModels;
8
-use Illuminate\Queue\InteractsWithQueue;
6
+use Illuminate\Bus\Queueable;
9 7
 use Illuminate\Contracts\Queue\ShouldQueue;
8
+use Illuminate\Queue\InteractsWithQueue;
9
+use Illuminate\Queue\SerializesModels;
10 10
 
11 11
 class SendBearyChat implements ShouldQueue
12 12
 {
Please login to merge, or discard this patch.
app/Models/AdminUser.php 1 patch
Unused Use Statements   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -2,13 +2,13 @@
 block discarded – undo
2 2
 
3 3
 namespace App\Models;
4 4
 
5
+use App\Notifications\ResetPassword;
5 6
 use App\Support\Helper;
6 7
 use App\Support\Image\Filters\Fit;
7
-use App\Notifications\ResetPassword;
8 8
 use App\Support\Traits\ImageStorage;
9
-use Illuminate\Notifications\Notifiable;
10 9
 use Iatstuti\Database\Support\NullableFields;
11 10
 use Illuminate\Foundation\Auth\User as Authenticatable;
11
+use Illuminate\Notifications\Notifiable;
12 12
 
13 13
 class AdminUser extends Authenticatable
14 14
 {
Please login to merge, or discard this patch.
app/Models/Device.php 1 patch
Unused Use Statements   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -2,10 +2,10 @@
 block discarded – undo
2 2
 
3 3
 namespace App\Models;
4 4
 
5
+use App\Support\Traits\Eloquent\DeviceModelAttribute;
6
+use Iatstuti\Database\Support\NullableFields;
5 7
 use Illuminate\Database\Eloquent\Model;
6 8
 use Illuminate\Support\Facades\Request;
7
-use Iatstuti\Database\Support\NullableFields;
8
-use App\Support\Traits\Eloquent\DeviceModelAttribute;
9 9
 
10 10
 class Device extends Model
11 11
 {
Please login to merge, or discard this patch.
app/Support/Traits/ImageStorage.php 1 patch
Unused Use Statements   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -2,9 +2,9 @@
 block discarded – undo
2 2
 
3 3
 namespace App\Support\Traits;
4 4
 
5
-use Exception;
6 5
 use App\Support\Helper;
7 6
 use App\Support\Image\Filters\Resize;
7
+use Exception;
8 8
 use Symfony\Component\HttpFoundation\File\UploadedFile;
9 9
 
10 10
 trait ImageStorage
Please login to merge, or discard this patch.
app/Support/Tencent/XgPush/Pusher.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -32,7 +32,7 @@
 block discarded – undo
32 32
     /**
33 33
      * Create a XingeApp instance.
34 34
      *
35
-     * @return \XingeApp
35
+     * @return XingeApp
36 36
      */
37 37
     public static function createService()
38 38
     {
Please login to merge, or discard this patch.
app/Support/Tencent/XgPush/XingeApp.php 1 patch
Doc Comments   +27 added lines, -1 removed lines patch added patch discarded remove patch
@@ -207,6 +207,7 @@  discard block
 block discarded – undo
207 207
 
208 208
     /**
209 209
      * 推送消息给单个账户.
210
+     * @param integer $deviceType
210 211
      */
211 212
     public function PushSingleAccount($deviceType, $account, $message, $environment = 0)
212 213
     {
@@ -316,6 +317,7 @@  discard block
 block discarded – undo
316 317
 
317 318
     /**
318 319
      * 推送消息给APP所有设备.
320
+     * @param integer $deviceType
319 321
      */
320 322
     public function PushAllDevices($deviceType, $message, $environment = 0)
321 323
     {
@@ -371,6 +373,8 @@  discard block
 block discarded – undo
371 373
     /**
372 374
      * 推送消息给指定tags的设备
373 375
      * 若要推送的tagList只有一项,则tagsOp应为OR.
376
+     * @param integer $deviceType
377
+     * @param string $tagsOp
374 378
      */
375 379
     public function PushTags($deviceType, $tagList, $tagsOp, $message, $environment = 0)
376 380
     {
@@ -606,6 +610,7 @@  discard block
 block discarded – undo
606 610
 
607 611
     /**
608 612
      * 查询token的标签.
613
+     * @param string $deviceToken
609 614
      */
610 615
     public function QueryTokenTags($deviceToken)
611 616
     {
@@ -650,6 +655,9 @@  discard block
 block discarded – undo
650 655
         return json_decode($json, true);
651 656
     }
652 657
 
658
+    /**
659
+     * @param string $url
660
+     */
653 661
     protected function callRestful($url, $params)
654 662
     {
655 663
         $paramsBase = new ParamsBase($params);
@@ -662,6 +670,9 @@  discard block
 block discarded – undo
662 670
         return $ret;
663 671
     }
664 672
 
673
+    /**
674
+     * @param string $token
675
+     */
665 676
     private function ValidateToken($token)
666 677
     {
667 678
         if (intval($this->accessId) >= 2200000000) {
@@ -750,6 +761,9 @@  discard block
 block discarded – undo
750 761
         return $this->callRestful(self::RESTAPI_QUERYINFOOFTOKEN, $params);
751 762
     }
752 763
 
764
+    /**
765
+     * @param string $account
766
+     */
753 767
     public function QueryTokensOfAccount($account)
754 768
     {
755 769
         $ret = ['ret_code' => -1];
@@ -935,11 +949,17 @@  discard block
 block discarded – undo
935 949
         return $this->m_multiPkg;
936 950
     }
937 951
 
952
+    /**
953
+     * @param Style $style
954
+     */
938 955
     public function setStyle($style)
939 956
     {
940 957
         $this->m_style = $style;
941 958
     }
942 959
 
960
+    /**
961
+     * @param ClickAction $action
962
+     */
943 963
     public function setAction($action)
944 964
     {
945 965
         $this->m_action = $action;
@@ -1181,6 +1201,9 @@  discard block
 block discarded – undo
1181 1201
         $this->m_badge = $badge;
1182 1202
     }
1183 1203
 
1204
+    /**
1205
+     * @param string $sound
1206
+     */
1184 1207
     public function setSound($sound)
1185 1208
     {
1186 1209
         $this->m_sound = $sound;
@@ -1359,7 +1382,6 @@  discard block
 block discarded – undo
1359 1382
 {
1360 1383
     /**
1361 1384
      * 动作类型.
1362
-     * @param int $actionType 1打开activity或app本身,2打开url,3打开Intent
1363 1385
      */
1364 1386
     public function __construct()
1365 1387
     {
@@ -1512,6 +1534,9 @@  discard block
 block discarded – undo
1512 1534
 
1513 1535
 class Style
1514 1536
 {
1537
+    /**
1538
+     * @param integer $builderId
1539
+     */
1515 1540
     public function __construct($builderId, $ring = 0, $vibrate = 0, $clearable = 1, $nId = 0, $lights = 1, $iconType = 0, $styleId = 1)
1516 1541
     {
1517 1542
         $this->m_builderId = $builderId;
@@ -1720,6 +1745,7 @@  discard block
 block discarded – undo
1720 1745
 
1721 1746
     /**
1722 1747
      * 根据实例化传入的参数生成签名.
1748
+     * @param string $secret_key
1723 1749
      */
1724 1750
     public function generateSign($method, $url, $secret_key)
1725 1751
     {
Please login to merge, or discard this patch.