@@ -79,7 +79,7 @@ function ($payload, $queue) {
7979 */
8080 public function pushRaw ($ payload , $ queue = null , array $ options = [])
8181 {
82- $ delay = !empty ($ options ['delay ' ]) ? $ options ['delay ' ] : 0 ;
82+ $ delay = ! empty ($ options ['delay ' ]) ? $ options ['delay ' ] : 0 ;
8383
8484 return $ this ->pushToCloudTasks ($ queue , $ payload , $ delay );
8585 }
@@ -130,14 +130,14 @@ protected function pushToCloudTasks($queue, $payload, $delay = 0)
130130 $ task = $ this ->createTask ();
131131 $ task ->setName ($ this ->taskName ($ queue , $ payload ));
132132
133- if (!empty ($ this ->config ['app_engine ' ])) {
133+ if (! empty ($ this ->config ['app_engine ' ])) {
134134 $ path = \Safe \parse_url (route ('cloud-tasks.handle-task ' ), PHP_URL_PATH );
135135
136136 $ appEngineRequest = new AppEngineHttpRequest ();
137137 $ appEngineRequest ->setRelativeUri ($ path );
138138 $ appEngineRequest ->setHttpMethod (HttpMethod::POST );
139139 $ appEngineRequest ->setBody (json_encode ($ payload ));
140- if (!empty ($ service = $ this ->config ['app_engine_service ' ])) {
140+ if (! empty ($ service = $ this ->config ['app_engine_service ' ])) {
141141 $ routing = new AppEngineRouting ();
142142 $ routing ->setService ($ service );
143143 $ appEngineRequest ->setAppEngineRouting ($ routing );
@@ -159,7 +159,6 @@ protected function pushToCloudTasks($queue, $payload, $delay = 0)
159159 $ task ->setHttpRequest ($ httpRequest );
160160 }
161161
162-
163162 // The deadline for requests sent to the app. If the app does not respond by
164163 // this deadline then the request is cancelled and the attempt is marked as
165164 // a failure. Cloud Tasks will retry the task according to the RetryConfig.
@@ -213,7 +212,7 @@ private function withAttempts(array $payload): array
213212 /**
214213 * Pop the next job off of the queue.
215214 *
216- * @param string|null $queue
215+ * @param string|null $queue
217216 * @return \Illuminate\Contracts\Queue\Job|null
218217 */
219218 public function pop ($ queue = null )
@@ -243,7 +242,7 @@ public function delete(CloudTasksJob $job): void
243242 $ config ['project ' ],
244243 $ config ['location ' ],
245244 $ queue ,
246- (string )$ headerTaskName
245+ (string ) $ headerTaskName
247246 );
248247
249248 CloudTasksApi::deleteTask ($ taskName );
0 commit comments