original_string: public function getAllTablesStatus($matchingRegex = null)
      {
          if (is_null($this->tableStatuses)) {
              $tablesPiwik = DbHelper::getTablesInstalled();
  
              $this->tableStatuses = array();
              foreach ($this->dataAccess->getAllTablesStatus() as $t) {
                  if (in_array($t['Name'], $tablesPiwik)) {
                      $this->tableStatuses[$t['Name']] = $t;
                  }
              }
          }
  
          if (is_null($matchingRegex)) {
              return $this->tableStatuses;
          }
  
          $result = array();
          foreach ($this->tableStatuses as $status) {
              if (preg_match($matchingRegex, $status['Name'])) {
                  $result[] = $status;
              }
          }
          return $result;
      }
code: public function getAllTablesStatus($matchingRegex = null)
      {
          if (is_null($this->tableStatuses)) {
              $tablesPiwik = DbHelper::getTablesInstalled();
  
              $this->tableStatuses = array();
              foreach ($this->dataAccess->getAllTablesStatus() as $t) {
                  if (in_array($t['Name'], $tablesPiwik)) {
                      $this->tableStatuses[$t['Name']] = $t;
                  }
              }
          }
  
          if (is_null($matchingRegex)) {
              return $this->tableStatuses;
          }
  
          $result = array();
          foreach ($this->tableStatuses as $status) {
              if (preg_match($matchingRegex, $status['Name'])) {
                  $result[] = $status;
              }
          }
          return $result;
      }
code_tokens: public function getAllTablesStatus ( $ matchingRegex = null ) { if ( is_null ( $ this -> tableStatuses ) ) { $ tablesPiwik = DbHelper :: getTablesInstalled ( ) ; $ this -> tableStatuses = array ( ) ; foreach ( $ this -> dataAccess -> getAllTablesStatus ( ) as $ t ) { if ( in_array ( $ t [ 'Name' ] , $ tablesPiwik ) ) { $ this -> tableStatuses [ $ t [ 'Name' ] ] = $ t ; } } } if ( is_null ( $ matchingRegex ) ) { return $ this -> tableStatuses ; } $ result = array ( ) ; foreach ( $ this -> tableStatuses as $ status ) { if ( preg_match ( $ matchingRegex , $ status [ 'Name' ] ) ) { $ result [ ] = $ status ; } } return $ result ; }
docstring: Gets the result of a SHOW TABLE STATUS query for every Piwik table in the DB.
  Non-piwik tables are ignored.
  
  @param string $matchingRegex Regex used to filter out tables whose name doesn't
  match it.
  @return array The table information. See http://dev.mysql.com/doc/refman/5.5/en/show-table-status.html
  for specifics.
docstring_tokens: Gets the result of a SHOW TABLE STATUS query for every Piwik table in the DB . Non - piwik tables are ignored .