GitHub Access Token became invalid

It seems like the GitHub access token used for retrieving details about this repository from GitHub became invalid. This might prevent certain types of inspections from being run (in particular, everything related to pull requests).
Please ask an admin of your repository to re-new the access token on this website.
Completed
Push — master ( e92006...214e66 )
by Sergey
01:23
created
src/LPTracker/models/Lead.php 1 patch
Spacing   +22 added lines, -22 removed lines patch added patch discarded remove patch
@@ -63,25 +63,25 @@  discard block
 block discarded – undo
63 63
 
64 64
     public function __construct(array $leadData = [])
65 65
     {
66
-        if (!empty($leadData['id'])) {
66
+        if ( ! empty($leadData['id'])) {
67 67
             $this->id = (int) $leadData['id'];
68 68
         }
69
-        if (!empty($leadData['contact_id'])) {
69
+        if ( ! empty($leadData['contact_id'])) {
70 70
             $this->contactId = (int) $leadData['contact_id'];
71 71
         }
72
-        if (!empty($leadData['contact'])) {
72
+        if ( ! empty($leadData['contact'])) {
73 73
             $this->contact = new Contact($leadData['contact']);
74 74
         }
75
-        if (!empty($leadData['name'])) {
75
+        if ( ! empty($leadData['name'])) {
76 76
             $this->name = $leadData['name'];
77 77
         }
78
-        if (!empty($leadData['funnel'])) {
78
+        if ( ! empty($leadData['funnel'])) {
79 79
             $this->funnelId = (int) $leadData['funnel'];
80 80
         }
81
-        if (!empty($leadData['stage_id'])) {
81
+        if ( ! empty($leadData['stage_id'])) {
82 82
             $this->funnelId = (int) $leadData['stage_id'];
83 83
         }
84
-        if (!empty($leadData['view'])) {
84
+        if ( ! empty($leadData['view'])) {
85 85
             $this->view = new View($leadData['view']);
86 86
         }
87 87
         if (isset($leadData['owner'])) {
@@ -90,30 +90,30 @@  discard block
 block discarded – undo
90 90
         if (isset($leadData['owner_id'])) {
91 91
             $this->ownerId = (int) $leadData['owner_id'];
92 92
         }
93
-        if (!empty($leadData['payments']) && is_array($leadData['payments'])) {
93
+        if ( ! empty($leadData['payments']) && is_array($leadData['payments'])) {
94 94
             foreach ($leadData['payments'] as $paymentData) {
95 95
                 $paymentModel = new Payment($paymentData);
96 96
                 $this->addPayment($paymentModel);
97 97
             }
98 98
         }
99
-        if (!empty($leadData['custom']) && is_array($leadData['custom'])) {
99
+        if ( ! empty($leadData['custom']) && is_array($leadData['custom'])) {
100 100
             foreach ($leadData['custom'] as $customData) {
101 101
                 $customModel = new Custom($customData, $this->id);
102 102
                 $this->addCustom($customModel);
103 103
             }
104 104
         }
105
-        if (!empty($leadData['lead_date'])) {
105
+        if ( ! empty($leadData['lead_date'])) {
106 106
             $date = \DateTime::createFromFormat('d.m.Y H:i', $leadData['lead_date']);
107 107
             $this->setCreatedAt($date);
108 108
         }
109
-        if (!empty($leadData['created_at'])) {
109
+        if ( ! empty($leadData['created_at'])) {
110 110
             $date = \DateTime::createFromFormat('d.m.Y H:i', $leadData['created_at']);
111 111
             $this->setCreatedAt($date);
112 112
         }
113
-        if (!empty($leadData['deal_date'])) {
113
+        if ( ! empty($leadData['deal_date'])) {
114 114
             $this->options['deal_date'] = $leadData['deal_date'];
115 115
         }
116
-        if (!empty($leadData['params']) && is_array($leadData['params'])) {
116
+        if ( ! empty($leadData['params']) && is_array($leadData['params'])) {
117 117
             $this->options['params'] = $leadData['params'];
118 118
         }
119 119
     }
@@ -127,27 +127,27 @@  discard block
 block discarded – undo
127 127
         $result = [
128 128
             'contact_id' => $this->contactId,
129 129
         ];
130
-        if (!empty($this->contact)) {
130
+        if ( ! empty($this->contact)) {
131 131
             $result['contact'] = $this->contact->toArray();
132 132
         }
133
-        if (!empty($this->id)) {
133
+        if ( ! empty($this->id)) {
134 134
             $result['id'] = $this->getId();
135 135
         }
136
-        if (!empty($this->name)) {
136
+        if ( ! empty($this->name)) {
137 137
             $result['name'] = $this->getName();
138 138
         }
139
-        if (!empty($this->funnelId)) {
139
+        if ( ! empty($this->funnelId)) {
140 140
             $result['funnel'] = $this->getFunnelId();
141 141
             $result['stage_id'] = $this->getFunnelId();
142 142
         }
143
-        if (!empty($this->ownerId)) {
143
+        if ( ! empty($this->ownerId)) {
144 144
             $result['owner'] = $this->getOwnerId();
145 145
             $result['owner_id'] = $this->getOwnerId();
146 146
         }
147
-        if (!empty($this->createdAt)) {
147
+        if ( ! empty($this->createdAt)) {
148 148
             $result['lead_date'] = $this->getCreatedAt()->format('d.m.Y H:i');
149 149
         }
150
-        if (!empty($this->view)) {
150
+        if ( ! empty($this->view)) {
151 151
             $result['view'] = $this->view->toArray();
152 152
         }
153 153
         foreach ($this->getPayments() as $payment) {
@@ -180,11 +180,11 @@  discard block
 block discarded – undo
180 180
             throw new LPTrackerSDKException('Invalid contact id');
181 181
         }
182 182
 
183
-        if (!empty($this->funnelId) && (int) $this->funnelId <= 0) {
183
+        if ( ! empty($this->funnelId) && (int) $this->funnelId <= 0) {
184 184
             throw new LPTrackerSDKException('Invalid funnel ID');
185 185
         }
186 186
 
187
-        if (!empty($this->ownerId) && (int) $this->ownerId < 0) {
187
+        if ( ! empty($this->ownerId) && (int) $this->ownerId < 0) {
188 188
             throw new LPTrackerSDKException('Invalid owner ID');
189 189
         }
190 190
 
Please login to merge, or discard this patch.