projects/packages/changelogger/src/VersionCommand.php 1 location
                
                
                    
                                                
                                                    
                                |  | @@ 105-109 (lines=5) @@ | 
                                                            
                                    | 102 |  | 			Utils::error_clear_last(); | 
                                                            
                                    | 103 |  | 			$contents = quietCall( 'file_get_contents', $file ); | 
                                                            
                                    | 104 |  | 			// @codeCoverageIgnoreStart | 
                                                            
                                    | 105 |  | 			if ( ! is_string( $contents ) ) { | 
                                                            
                                    | 106 |  | 				$err = error_get_last(); | 
                                                            
                                    | 107 |  | 				$output->writeln( "<error>Failed to read $file: {$err['message']}</>" ); | 
                                                            
                                    | 108 |  | 				return 1; | 
                                                            
                                    | 109 |  | 			} | 
                                                            
                                    | 110 |  | 			// @codeCoverageIgnoreEnd | 
                                                            
                                    | 111 |  |  | 
                                                            
                                    | 112 |  | 			try { | 
                                                                        
                 
                                                            
                    
projects/packages/changelogger/src/WriteCommand.php 1 location
                
                
                    
                                                
                                                    
                                |  | @@ 157-161 (lines=5) @@ | 
                                                            
                                    | 154 |  | 			Utils::error_clear_last(); | 
                                                            
                                    | 155 |  | 			$contents = quietCall( 'file_get_contents', $file ); | 
                                                            
                                    | 156 |  | 			// @codeCoverageIgnoreStart | 
                                                            
                                    | 157 |  | 			if ( ! is_string( $contents ) ) { | 
                                                            
                                    | 158 |  | 				$err = error_get_last(); | 
                                                            
                                    | 159 |  | 				$output->writeln( "<error>Failed to read $file: {$err['message']}</>" ); | 
                                                            
                                    | 160 |  | 				return self::FATAL_EXIT; | 
                                                            
                                    | 161 |  | 			} | 
                                                            
                                    | 162 |  | 			// @codeCoverageIgnoreEnd | 
                                                            
                                    | 163 |  | 			try { | 
                                                            
                                    | 164 |  | 				$changelog = $this->formatter->parse( $contents ); |