original_string: protected function addFileToProcessedList(string $filePath)
      {
          $arrFile = explode(DIRECTORY_SEPARATOR, $filePath);
          $fileName = array_pop($arrFile);
          $folder = implode(DIRECTORY_SEPARATOR, $arrFile).DIRECTORY_SEPARATOR;
          
          $tmp = new Update();
          $tmp->name = $fileName;
          $tmp->folder = $folder;
          $tmp->createDate = strftime("%Y-%m-%d %H:%M:%S");
          $tmp->save();
          
          echo "Processed: ".$fileName."\n";
          unset($tmp);
      }
code: protected function addFileToProcessedList(string $filePath)
      {
          $arrFile = explode(DIRECTORY_SEPARATOR, $filePath);
          $fileName = array_pop($arrFile);
          $folder = implode(DIRECTORY_SEPARATOR, $arrFile).DIRECTORY_SEPARATOR;
          
          $tmp = new Update();
          $tmp->name = $fileName;
          $tmp->folder = $folder;
          $tmp->createDate = strftime("%Y-%m-%d %H:%M:%S");
          $tmp->save();
          
          echo "Processed: ".$fileName."\n";
          unset($tmp);
      }
code_tokens: protected function addFileToProcessedList ( string $ filePath ) { $ arrFile = explode ( DIRECTORY_SEPARATOR , $ filePath ) ; $ fileName = array_pop ( $ arrFile ) ; $ folder = implode ( DIRECTORY_SEPARATOR , $ arrFile ) . DIRECTORY_SEPARATOR ; $ tmp = new Update ( ) ; $ tmp -> name = $ fileName ; $ tmp -> folder = $ folder ; $ tmp -> createDate = strftime ( "%Y-%m-%d %H:%M:%S" ) ; $ tmp -> save ( ) ; echo "Processed: " . $ fileName . "\n" ; unset ( $ tmp ) ; }
docstring: Puts the Filename into the update table
  @param string $filePath
docstring_tokens: Puts the Filename into the update table