original_string: protected static function selectAll($model, $tableName)
      {   
          $connection = Connection::connect();
  
          $getAll = $connection->prepare('select * from '.$tableName);
          $getAll->execute();
  
          while ($allRows = $getAll->fetch(PDO::FETCH_ASSOC)) {
              array_push($model->resultRows, $allRows);
          }
  
          return $model;
      }
code: protected static function selectAll($model, $tableName)
      {   
          $connection = Connection::connect();
  
          $getAll = $connection->prepare('select * from '.$tableName);
          $getAll->execute();
  
          while ($allRows = $getAll->fetch(PDO::FETCH_ASSOC)) {
              array_push($model->resultRows, $allRows);
          }
  
          return $model;
      }
code_tokens: protected static function selectAll ( $ model , $ tableName ) { $ connection = Connection :: connect ( ) ; $ getAll = $ connection -> prepare ( 'select * from ' . $ tableName ) ; $ getAll -> execute ( ) ; while ( $ allRows = $ getAll -> fetch ( PDO :: FETCH_ASSOC ) ) { array_push ( $ model -> resultRows , $ allRows ) ; } return $ model ; }
docstring: Search database for all rows
  
  @param $model
  @param $tableName
  @return mixed
docstring_tokens: Search database for all rows