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