Code Duplication    Length = 4-4 lines in 2 locations

src/activities/BasicActivity.php 1 location

@@ 79-82 (lines=4) @@
76
        // Create the tmp folder if doesn't exist
77
        if (!file_exists($this->tmpInputPath)) 
78
        {
79
            if ($this->debug)
80
                $this->cpeLogger->logOut("DEBUG", basename(__FILE__), 
81
                                         "Creating TMP input folder '".$this->tmpInputPath."'",
82
                                         $this->logKey);
83
            
84
            if (!mkdir($this->tmpInputPath, 0750, true))
85
                throw new CpeSdk\CpeException(

src/activities/TranscodeAssetActivity.php 1 location

@@ 227-230 (lines=4) @@
224
225
        if (!file_exists($outputFilesPath))
226
        {
227
            if ($this->debug)
228
                $this->cpeLogger->logOut("INFO", basename(__FILE__),
229
                                         "Creating TMP output folder '".$outputFilesPath."'",
230
                                         $this->logKey);
231
232
            if (!mkdir($outputFilesPath, 0750, true))
233
                throw new CpeSdk\CpeException(