Passed
Push — master ( 5404b7...68473c )
by Yao
01:29
created
src/OnlineService/Out/Response/Item.php 1 patch
Braces   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -31,7 +31,9 @@
 block discarded – undo
31 31
     {
32 32
         /** @var int|null $status */
33 33
         $status = $this->status;
34
-        if (is_null($status)) return null;
34
+        if (is_null($status)) {
35
+            return null;
36
+        }
35 37
         return $status == 1 ? '成功' : '失败';
36 38
     }
37 39
 }
38 40
\ No newline at end of file
Please login to merge, or discard this patch.
src/OnlineService/ChatSend/Response/Item.php 1 patch
Braces   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -31,7 +31,9 @@
 block discarded – undo
31 31
     {
32 32
         /** @var int|null $status */
33 33
         $status = $this->status;
34
-        if (is_null($status)) return null;
34
+        if (is_null($status)) {
35
+            return null;
36
+        }
35 37
         $statusCn = [
36 38
             1 => '成功',
37 39
             2 => '用户没有跟客服建立连接'
Please login to merge, or discard this patch.
src/OnlineService/Comment/Response/Item.php 1 patch
Braces   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -32,7 +32,9 @@
 block discarded – undo
32 32
     {
33 33
         /** @var int|null $status */
34 34
         $status = $this->status;
35
-        if (is_null($status)) return null;
35
+        if (is_null($status)) {
36
+            return null;
37
+        }
36 38
         $statusCn = [
37 39
             0 => '失败',
38 40
             1 => '成功',
Please login to merge, or discard this patch.
src/OnlineService/ChatConnect/Response/Item.php 1 patch
Braces   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -37,7 +37,9 @@
 block discarded – undo
37 37
     {
38 38
         /** @var int|null $status */
39 39
         $status = $this->status;
40
-        if (is_null($status)) return null;
40
+        if (is_null($status)) {
41
+            return null;
42
+        }
41 43
         $statusCn = [
42 44
             -1 => '重复请求,拒绝处理',
43 45
             0 => '排队',
Please login to merge, or discard this patch.
src/OnlineService/GetOnceData/Response/Item/AdminList.php 1 patch
Braces   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -45,7 +45,9 @@
 block discarded – undo
45 45
     {
46 46
         /** @var int|null $status */
47 47
         $status = $this->status;
48
-        if (is_null($status)) return null;
48
+        if (is_null($status)) {
49
+            return null;
50
+        }
49 51
         $statusCn = [
50 52
             1 => '在线',
51 53
             2 => '忙碌'
Please login to merge, or discard this patch.
src/Agents/QueryDepartments/Response/Items.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -39,7 +39,7 @@
 block discarded – undo
39 39
     {
40 40
         /** @var string|null $departType */
41 41
         $departType = $this->depart_type;
42
-        if(is_null($departType)) return null;
42
+        if (is_null($departType)) return null;
43 43
         $departType = explode(',', $departType);
44 44
         $departTypeCn = [
45 45
             1 => '在线',
Please login to merge, or discard this patch.
Braces   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -39,7 +39,9 @@
 block discarded – undo
39 39
     {
40 40
         /** @var string|null $departType */
41 41
         $departType = $this->depart_type;
42
-        if(is_null($departType)) return null;
42
+        if(is_null($departType)) {
43
+            return null;
44
+        }
43 45
         $departType = explode(',', $departType);
44 46
         $departTypeCn = [
45 47
             1 => '在线',
Please login to merge, or discard this patch.