original_string: protected function prepareListModule(array &$list)
      {
          foreach ($list as &$item) {
              $item['has_dependencies'] = !empty($item['requires']) || !empty($item['required_by']);
          }
      }
code: protected function prepareListModule(array &$list)
      {
          foreach ($list as &$item) {
              $item['has_dependencies'] = !empty($item['requires']) || !empty($item['required_by']);
          }
      }
code_tokens: protected function prepareListModule ( array & $ list ) { foreach ( $ list as & $ item ) { $ item [ 'has_dependencies' ] = ! empty ( $ item [ 'requires' ] ) || ! empty ( $ item [ 'required_by' ] ) ; } }
docstring: Prepare an array of modules
  @param array $list
docstring_tokens: Prepare an array of modules