original_string: public function licenses(OutputInterface $output, array $response)
      {
          $table = $this->createTable($output);
          $table->setHeaders(['license', 'name']);
  
          foreach ($response['licenses'] as $license => $projects) {
              foreach ($projects as $project) {
                  $name    = $license === 'unknown' ? '<error>' . $project['name'] . '</error>' : $project['name'];
                  $license = $license === 'unknown' ? '<error>unknown</error>' : $license;
  
                  $table->addRow([$license, $name]);
              }
          }
  
          $table->render($output);
      }
code: public function licenses(OutputInterface $output, array $response)
      {
          $table = $this->createTable($output);
          $table->setHeaders(['license', 'name']);
  
          foreach ($response['licenses'] as $license => $projects) {
              foreach ($projects as $project) {
                  $name    = $license === 'unknown' ? '<error>' . $project['name'] . '</error>' : $project['name'];
                  $license = $license === 'unknown' ? '<error>unknown</error>' : $license;
  
                  $table->addRow([$license, $name]);
              }
          }
  
          $table->render($output);
      }
code_tokens: public function licenses ( OutputInterface $ output , array $ response ) { $ table = $ this -> createTable ( $ output ) ; $ table -> setHeaders ( [ 'license' , 'name' ] ) ; foreach ( $ response [ 'licenses' ] as $ license => $ projects ) { foreach ( $ projects as $ project ) { $ name = $ license === 'unknown' ? '<error>' . $ project [ 'name' ] . '</error>' : $ project [ 'name' ] ; $ license = $ license === 'unknown' ? '<error>unknown</error>' : $ license ; $ table -> addRow ( [ $ license , $ name ] ) ; } } $ table -> render ( $ output ) ; }
docstring: output for licenses API.
  
  @param OutputInterface $output
  @param array           $response
docstring_tokens: output for licenses API .