original_string: public function getAll()
      {
          $result = $this->getListOptionValue();
  
          foreach ($result as $key => $item) {
              // remove non-array items (unexpected state, though can happen when upgrading from an old Piwik)
              if (is_array($item)) {
                  $this->logger->info("Found array item in DistributedList option value '{name}': {data}", array(
                      'name' => $this->optionName,
                      'data' => var_export($result, true)
                  ));
  
                  unset($result[$key]);
              }
          }
  
          return $result;
      }
code: public function getAll()
      {
          $result = $this->getListOptionValue();
  
          foreach ($result as $key => $item) {
              // remove non-array items (unexpected state, though can happen when upgrading from an old Piwik)
              if (is_array($item)) {
                  $this->logger->info("Found array item in DistributedList option value '{name}': {data}", array(
                      'name' => $this->optionName,
                      'data' => var_export($result, true)
                  ));
  
                  unset($result[$key]);
              }
          }
  
          return $result;
      }
code_tokens: public function getAll ( ) { $ result = $ this -> getListOptionValue ( ) ; foreach ( $ result as $ key => $ item ) { // remove non-array items (unexpected state, though can happen when upgrading from an old Piwik) if ( is_array ( $ item ) ) { $ this -> logger -> info ( "Found array item in DistributedList option value '{name}': {data}" , array ( 'name' => $ this -> optionName , 'data' => var_export ( $ result , true ) ) ) ; unset ( $ result [ $ key ] ) ; } } return $ result ; }
docstring: Queries the option table and returns all items in this list.
  
  @return array
docstring_tokens: Queries the option table and returns all items in this list .