original_string: protected function processTasks($tasks)
      {
          foreach ($tasks as $taskName => $taskConfig) {
              $serviceId = sprintf('task.%s', $taskName);
              $this->container->setDefinition(
                  $serviceId,
                  new Definition()
              )->setSynthetic(true);
  
              $command = $this->buildTask($taskName, $taskConfig);
  
              $this->container->set($serviceId, $command);
              $this->container->get('application')->add($command);
          }
      }
code: protected function processTasks($tasks)
      {
          foreach ($tasks as $taskName => $taskConfig) {
              $serviceId = sprintf('task.%s', $taskName);
              $this->container->setDefinition(
                  $serviceId,
                  new Definition()
              )->setSynthetic(true);
  
              $command = $this->buildTask($taskName, $taskConfig);
  
              $this->container->set($serviceId, $command);
              $this->container->get('application')->add($command);
          }
      }
code_tokens: protected function processTasks ( $ tasks ) { foreach ( $ tasks as $ taskName => $ taskConfig ) { $ serviceId = sprintf ( 'task.%s' , $ taskName ) ; $ this -> container -> setDefinition ( $ serviceId , new Definition ( ) ) -> setSynthetic ( true ) ; $ command = $ this -> buildTask ( $ taskName , $ taskConfig ) ; $ this -> container -> set ( $ serviceId , $ command ) ; $ this -> container -> get ( 'application' ) -> add ( $ command ) ; } }
docstring: Process tasks that the user has defined and turn them into commands
  that can be ran.
  
  @param array $tasks
docstring_tokens: Process tasks that the user has defined and turn them into commands that can be ran .