File tree Expand file tree Collapse file tree 2 files changed +11
-3
lines changed Expand file tree Collapse file tree 2 files changed +11
-3
lines changed Original file line number Diff line number Diff line change @@ -125,7 +125,11 @@ public function mimeType() {
125125	 * @return int 
126126	 */ 
127127	public  function  width () {
128- 		return  $ this valid () ? imagesx ($ this resource ) : -1 ;
128+ 		if  ($ this valid () && (($ widthimagesx ($ this resource )) !== false )) {
129+ 			return  $ width
130+ 		} else  {
131+ 			return  -1 ;
132+ 		}
129133	}
130134
131135	/** 
@@ -134,7 +138,11 @@ public function width() {
134138	 * @return int 
135139	 */ 
136140	public  function  height () {
137- 		return  $ this valid () ? imagesy ($ this resource ) : -1 ;
141+ 		if  ($ this valid () && (($ heightimagesy ($ this resource )) !== false )) {
142+ 			return  $ height
143+ 		} else  {
144+ 			return  -1 ;
145+ 		}
138146	}
139147
140148	/** 
Original file line number Diff line number Diff line change @@ -99,7 +99,7 @@ public function show($mimeType = null);
9999	public  function  save ($ filePathnull , $ mimeTypenull );
100100
101101	/** 
102- 	 * @return resource|\GdImage Returns the image resource in  any.  
102+ 	 * @return false| resource|\GdImage Returns the image resource if  any 
103103	 * @since 8.1.0 
104104	 */ 
105105	public  function  resource ();
 
 
   
 
     
   
   
          
    
    
     
    
      
     
     
    You can’t perform that action at this time.
  
 
    
  
    
      
        
     
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments