Skip to content

Commit 8510bf9

Browse files
committed
formatting
1 parent 465805d commit 8510bf9

File tree

4 files changed

+22
-22
lines changed

4 files changed

+22
-22
lines changed

src/Illuminate/Queue/Console/ListenCommand.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ protected function getQueue($connection)
8383
"queue.connections.{$connection}.queue", 'default'
8484
);
8585

86-
return $this->laravel['config']->get('queue.prefix', null).$queue;
86+
return $this->laravel['config']->get('queue.prefix').$queue;
8787
}
8888

8989
/**

src/Illuminate/Queue/Console/WorkCommand.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,7 @@ protected function getQueue($connection)
200200
"queue.connections.{$connection}.queue", 'default'
201201
);
202202

203-
return $this->laravel['config']->get('queue.prefix', null).$queue;
203+
return $this->laravel['config']->get('queue.prefix').$queue;
204204
}
205205

206206
/**

src/Illuminate/Queue/Queue.php

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -186,18 +186,7 @@ public function setConnectionName($name)
186186
}
187187

188188
/**
189-
* Set the IoC container instance.
190-
*
191-
* @param \Illuminate\Container\Container $container
192-
* @return void
193-
*/
194-
public function setContainer(Container $container)
195-
{
196-
$this->container = $container;
197-
}
198-
199-
/**
200-
* Set the queue prefix.
189+
* Set the queue name prefix.
201190
*
202191
* @param string $prefix
203192
* @return $this
@@ -210,12 +199,23 @@ public function setQueuePrefix($prefix = null)
210199
}
211200

212201
/**
213-
* Get the queue prefix.
202+
* Get the queue name prefix.
214203
*
215204
* @return string
216205
*/
217206
public function getQueuePrefix()
218207
{
219208
return $this->queuePrefix;
220209
}
210+
211+
/**
212+
* Set the IoC container instance.
213+
*
214+
* @param \Illuminate\Container\Container $container
215+
* @return void
216+
*/
217+
public function setContainer(Container $container)
218+
{
219+
$this->container = $container;
220+
}
221221
}

src/Illuminate/Queue/QueueManager.php

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -234,24 +234,24 @@ public function setDefaultDriver($name)
234234
}
235235

236236
/**
237-
* Get the name of the queue prefix.
237+
* Get the full name for the given connection.
238238
*
239+
* @param string $connection
239240
* @return string
240241
*/
241-
public function getQueuePrefix()
242+
public function getName($connection = null)
242243
{
243-
return $this->app['config']->get('queue.prefix');
244+
return $connection ?: $this->getDefaultDriver();
244245
}
245246

246247
/**
247-
* Get the full name for the given connection.
248+
* Get the queue name prefix.
248249
*
249-
* @param string $connection
250250
* @return string
251251
*/
252-
public function getName($connection = null)
252+
public function getQueuePrefix()
253253
{
254-
return $connection ?: $this->getDefaultDriver();
254+
return $this->app['config']->get('queue.prefix');
255255
}
256256

257257
/**

0 commit comments

Comments
 (0)