original_string: private function checkComposer()
      {
          $composerJsonDetected = false;
          $composerLockDetected = false;
          foreach (GitUtils::extractCommitedFiles() as $file) {
              if ($file === 'composer.json') {
                  $composerJsonDetected = true;
              }
              if ($file === 'composer.lock') {
                  $composerLockDetected = true;
              }
          }
          if ($composerJsonDetected && !$composerLockDetected) {
              $this->output->writeln(
                  '<bg=yellow;fg=black>
                   composer.lock must be commited if composer.json is modified!
                   </bg=yellow;fg=black>'
              );
          }
      }
code: private function checkComposer()
      {
          $composerJsonDetected = false;
          $composerLockDetected = false;
          foreach (GitUtils::extractCommitedFiles() as $file) {
              if ($file === 'composer.json') {
                  $composerJsonDetected = true;
              }
              if ($file === 'composer.lock') {
                  $composerLockDetected = true;
              }
          }
          if ($composerJsonDetected && !$composerLockDetected) {
              $this->output->writeln(
                  '<bg=yellow;fg=black>
                   composer.lock must be commited if composer.json is modified!
                   </bg=yellow;fg=black>'
              );
          }
      }
code_tokens: private function checkComposer ( ) { $ composerJsonDetected = false ; $ composerLockDetected = false ; foreach ( GitUtils :: extractCommitedFiles ( ) as $ file ) { if ( $ file === 'composer.json' ) { $ composerJsonDetected = true ; } if ( $ file === 'composer.lock' ) { $ composerLockDetected = true ; } } if ( $ composerJsonDetected && ! $ composerLockDetected ) { $ this -> output -> writeln ( '<bg=yellow;fg=black>
                   composer.lock must be commited if composer.json is modified!
                   </bg=yellow;fg=black>' ) ; } }
docstring: Check composer.json and composer.lock files
docstring_tokens: Check composer . json and composer . lock files