Code Duplication    Length = 7-7 lines in 2 locations

src/activities/transcoders/ImageTranscoder.php 1 location

@@ 104-110 (lines=7) @@
101
            );
102
103
            // Test if we have an output file !
104
            if (!file_exists($pathToOutputFiles) || 
105
                $this->is_dir_empty($pathToOutputFiles)) {
106
                throw new CpeSdk\CpeException(
107
                    "Output file '$pathToOutputFiles' hasn't been created successfully or is empty !",
108
                    self::TRANSCODE_FAIL
109
                );
110
            }
111
112
            // FFProbe the output file and return its information
113
            $output_info =

src/activities/transcoders/VideoTranscoder.php 1 location

@@ 130-136 (lines=7) @@
127
            );
128
129
            // Test if we have an output file !
130
            if (!file_exists($pathToOutputFiles) || 
131
                $this->is_dir_empty($pathToOutputFiles)) {
132
                throw new CpeSdk\CpeException(
133
                    "Output file '$pathToOutputFiles' hasn't been created successfully or is empty !",
134
                    self::TRANSCODE_FAIL
135
                );
136
            }
137
138
            // FFProbe the output file and return its information
139
            $output_info =