original_string: public function cleanUpTasks($timePeriod)
      {
          $query = $this->entityManager->createQuery(
              'DELETE
              FROM WebdevviePheanstalkTaskQueueBundle:Task t
              WHERE
              t.status = :status and
              t.created <= :older'
          );
          $query->setParameter('status', array(Task::STATUS_DONE));
          $query->setParameter('older', date("Y-m-d H:i:s", time() - $timePeriod));
          $query->execute();
      }
code: public function cleanUpTasks($timePeriod)
      {
          $query = $this->entityManager->createQuery(
              'DELETE
              FROM WebdevviePheanstalkTaskQueueBundle:Task t
              WHERE
              t.status = :status and
              t.created <= :older'
          );
          $query->setParameter('status', array(Task::STATUS_DONE));
          $query->setParameter('older', date("Y-m-d H:i:s", time() - $timePeriod));
          $query->execute();
      }
code_tokens: public function cleanUpTasks ( $ timePeriod ) { $ query = $ this -> entityManager -> createQuery ( 'DELETE
              FROM WebdevviePheanstalkTaskQueueBundle:Task t
              WHERE
              t.status = :status and
              t.created <= :older' ) ; $ query -> setParameter ( 'status' , array ( Task :: STATUS_DONE ) ) ; $ query -> setParameter ( 'older' , date ( "Y-m-d H:i:s" , time ( ) - $ timePeriod ) ) ; $ query -> execute ( ) ; }
docstring: Cleans up tasks that are marked as done
  
  @param integer $timePeriod
  @return void
docstring_tokens: Cleans up tasks that are marked as done