File tree Expand file tree Collapse file tree 2 files changed +10
-7
lines changed Expand file tree Collapse file tree 2 files changed +10
-7
lines changed Original file line number Diff line number Diff line change @@ -58,6 +58,7 @@ public function call(Job $job, array $data)
5858            );
5959        } catch  (ModelNotFoundException $ e
6060            $ this ensureUniqueJobLockIsReleased ($ data
61+ 
6162            return  $ this handleModelNotFound ($ job$ e
6263        }
6364
@@ -84,7 +85,7 @@ public function call(Job $job, array $data)
8485    /** 
8586     * Get the unserialized object from the given payload. 
8687     * 
87-      * @param string  $key 
88+      * @param   string  $key 
8889     * @param  array  $data 
8990     * @return mixed 
9091     */ 
@@ -128,7 +129,7 @@ protected function getCommand(array $data)
128129    /** 
129130     * Get the unique handler from the given payload. 
130131     * 
131-      * @param array  $data 
132+      * @param   array  $data 
132133     * @return \Illuminate\Queue\UniqueHandler|null 
133134     */ 
134135    protected  function  getUniqueHandler (array  $ data
Original file line number Diff line number Diff line change 1515class  UniqueHandler
1616{
1717    /** 
18-      * Original job name 
18+      * Original job name.  
1919     * 
2020     * @var string 
2121     */ 
@@ -37,22 +37,23 @@ class UniqueHandler
3737
3838    /** 
3939     * The container instance. 
40+      * 
4041     * @var \Illuminate\Contracts\Container\Container 
4142     */ 
4243    protected  $ container
4344
4445    /** 
4546     * Create a new handler instance. 
4647     * 
47-      * @param object $job 
48+      * @param   object   $job 
4849     */ 
4950    public  function  __construct (object $ job
5051    {
5152        $ this jobName  = get_class ($ job
5253
5354        if  (method_exists ($ job'uniqueId ' )) {
5455            $ this uniqueId  = $ jobuniqueId ();
55-         } else   if  (isset ($ jobuniqueId )) {
56+         } elseif  (isset ($ jobuniqueId )) {
5657            $ this uniqueId  = $ jobuniqueId ;
5758        }
5859
@@ -64,7 +65,7 @@ public function __construct(object $job)
6465    /** 
6566     * Creates a new instance if the job should be unique. 
6667     * 
67-      * @param object $job 
68+      * @param   object   $job 
6869     * @return \Illuminate\Queue\UniqueHandler|null 
6970     */ 
7071    public  static  function  forJob (object $ job
@@ -82,12 +83,13 @@ public static function forJob(object $job)
8283    /** 
8384     * Sets the container instance. 
8485     * 
85-      * @param \Illuminate\Contracts\Container\Container $container 
86+      * @param   \Illuminate\Contracts\Container\Container   $container 
8687     * @return \Illuminate\Queue\UpdateHandler 
8788     */ 
8889    public  function  withContainer (Container $ container
8990    {
9091        $ this container  = $ container
92+ 
9193        return  $ this 
9294    }
9395
 
 
   
 
     
   
   
          
    
    
     
    
      
     
     
    You can’t perform that action at this time.
  
 
    
  
    
      
        
     
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments