File tree Expand file tree Collapse file tree 3 files changed +7
-5
lines changed Expand file tree Collapse file tree 3 files changed +7
-5
lines changed Original file line number Diff line number Diff line change 1010use Yii ;
1111use yii \base \InvalidArgumentException ;
1212use yii \db \ActiveRecord ;
13+ use yii \helpers \ArrayHelper ;
1314use yii \helpers \Json ;
1415use yii \queue \JobInterface ;
1516use yii \queue \Queue ;
@@ -145,7 +146,7 @@ public function getExecTotal()
145146 */
146147 public function getAttemptCount ()
147148 {
148- return $ this ->execTotal [ 'attempts ' ] ?: 0 ;
149+ return ArrayHelper:: getValue ( $ this ->execTotal , 'attempts ' , 0 ) ;
149150 }
150151
151152 /**
@@ -187,7 +188,7 @@ public function getStatus()
187188 }
188189 return null ;
189190 }
190-
191+
191192 public function getStatusLabel ($ label )
192193 {
193194 $ labels = [
Original file line number Diff line number Diff line change 99
1010use Yii ;
1111use yii \db \ActiveRecord ;
12+ use yii \helpers \ArrayHelper ;
1213use zhuravljov \yii \queue \monitor \Env ;
1314use zhuravljov \yii \queue \monitor \Module ;
1415
@@ -113,15 +114,15 @@ public function getExecTotal()
113114 */
114115 public function getExecTotalStarted ()
115116 {
116- return $ this ->execTotal [ 'started ' ] ?: 0 ;
117+ return ArrayHelper:: getValue ( $ this ->execTotal , 'started ' , 0 ) ;
117118 }
118119
119120 /**
120121 * @return int
121122 */
122123 public function getExecTotalDone ()
123124 {
124- return $ this ->execTotal [ 'done ' ] ?: 0 ;
125+ return ArrayHelper:: getValue ( $ this ->execTotal , 'done ' , 0 ) ;
125126 }
126127
127128 /**
Original file line number Diff line number Diff line change 1- FROM php:7.3
1+ FROM php:7.4
22RUN apt-get update \
33 && apt-get install -y curl \
44 && apt-get install -y libzip-dev \
You can’t perform that action at this time.
0 commit comments