DataStructures/Lists/CircularLinkedList.php 1 location
                
                
                    
                                                
                                                    
                                |  | @@ 269-276 (lines=8) @@ | 
                                                            
                                    | 266 |  |      * | 
                                                            
                                    | 267 |  |      * @return mixed the data stored in the node. | 
                                                            
                                    | 268 |  |      */ | 
                                                            
                                    | 269 |  |     private function deleteBeginning() { | 
                                                            
                                    | 270 |  |         $temp = $this->head; | 
                                                            
                                    | 271 |  |         $this->head = &$this->head->next; | 
                                                            
                                    | 272 |  |         $this->tail->next = &$this->head; | 
                                                            
                                    | 273 |  |         $this->size--; | 
                                                            
                                    | 274 |  |  | 
                                                            
                                    | 275 |  |         return $temp->data; | 
                                                            
                                    | 276 |  |     } | 
                                                            
                                    | 277 |  |  | 
                                                            
                                    | 278 |  |     /** | 
                                                            
                                    | 279 |  |      * Deletes at the specified position and returns the data stored. | 
                                                                        
                 
                                                            
                    
DataStructures/Lists/DoublyLinkedList.php 1 location
                
                
                    
                                                
                                                    
                                |  | @@ 293-300 (lines=8) @@ | 
                                                            
                                    | 290 |  |      * | 
                                                            
                                    | 291 |  |      * @return mixed the data stored in the node. | 
                                                            
                                    | 292 |  |      */ | 
                                                            
                                    | 293 |  |     private function deleteBeginning() { | 
                                                            
                                    | 294 |  |         $temp = $this->head; | 
                                                            
                                    | 295 |  |         $this->head = &$this->head->next; | 
                                                            
                                    | 296 |  |         $this->tail->next = &$this->head; | 
                                                            
                                    | 297 |  |         $this->size--; | 
                                                            
                                    | 298 |  |  | 
                                                            
                                    | 299 |  |         return $temp->data; | 
                                                            
                                    | 300 |  |     } | 
                                                            
                                    | 301 |  |  | 
                                                            
                                    | 302 |  |     /** | 
                                                            
                                    | 303 |  |      * Deletes at the specified position and returns the data stored. |