DataStructures/Lists/CircularLinkedList.php 1 location
                
                
                    
                                                
                                                    
                                |  | @@ 336-343 (lines=8) @@ | 
                                                            
                                    | 333 |  |      * | 
                                                            
                                    | 334 |  |      * @return mixed the data stored in the node. | 
                                                            
                                    | 335 |  |      */ | 
                                                            
                                    | 336 |  |     private function deleteBeginning() { | 
                                                            
                                    | 337 |  |         $temp = $this->head; | 
                                                            
                                    | 338 |  |         $this->head = &$this->head->next; | 
                                                            
                                    | 339 |  |         $this->tail->next = &$this->head; | 
                                                            
                                    | 340 |  |         $this->size--; | 
                                                            
                                    | 341 |  |  | 
                                                            
                                    | 342 |  |         return $temp->data; | 
                                                            
                                    | 343 |  |     } | 
                                                            
                                    | 344 |  |  | 
                                                            
                                    | 345 |  |     /** | 
                                                            
                                    | 346 |  |      * Deletes at the specified position and returns the data stored. | 
                                                                        
                 
                                                            
                    
DataStructures/Lists/DoublyLinkedList.php 1 location
                
                
                    
                                                
                                                    
                                |  | @@ 359-366 (lines=8) @@ | 
                                                            
                                    | 356 |  |      * | 
                                                            
                                    | 357 |  |      * @return mixed the data stored in the node. | 
                                                            
                                    | 358 |  |      */ | 
                                                            
                                    | 359 |  |     private function deleteBeginning() { | 
                                                            
                                    | 360 |  |         $temp = $this->head; | 
                                                            
                                    | 361 |  |         $this->head = &$this->head->next; | 
                                                            
                                    | 362 |  |         $this->tail->next = &$this->head; | 
                                                            
                                    | 363 |  |         $this->size--; | 
                                                            
                                    | 364 |  |  | 
                                                            
                                    | 365 |  |         return $temp->data; | 
                                                            
                                    | 366 |  |     } | 
                                                            
                                    | 367 |  |  | 
                                                            
                                    | 368 |  |     /** | 
                                                            
                                    | 369 |  |      * Deletes at the specified position and returns the data stored. |