original_string: protected function flatten($input)
      {
          $list = [];
  
          foreach ($input as $item) {
              $list = array_merge($list, (array)$item);
          }
  
          return array_unique($list);
      }
code: protected function flatten($input)
      {
          $list = [];
  
          foreach ($input as $item) {
              $list = array_merge($list, (array)$item);
          }
  
          return array_unique($list);
      }
code_tokens: protected function flatten ( $ input ) { $ list = [ ] ; foreach ( $ input as $ item ) { $ list = array_merge ( $ list , ( array ) $ item ) ; } return array_unique ( $ list ) ; }
docstring: Turn a 2 dimensional privilege array into a list of privileges
  
  @param array $input
  @return array
docstring_tokens: Turn a 2 dimensional privilege array into a list of privileges