original_string: public function allBorders(PHPExcel $pPHPExcel = null)
      {
          // Get an array of unique borders
          $aBorders = array();
          $aStyles = $this->allStyles($pPHPExcel);
  
          foreach ($aStyles as $style) {
              if (!array_key_exists($style->getBorders()->getHashCode(), $aBorders)) {
                  $aBorders[ $style->getBorders()->getHashCode() ] = $style->getBorders();
              }
          }
  
          return $aBorders;
      }
code: public function allBorders(PHPExcel $pPHPExcel = null)
      {
          // Get an array of unique borders
          $aBorders = array();
          $aStyles = $this->allStyles($pPHPExcel);
  
          foreach ($aStyles as $style) {
              if (!array_key_exists($style->getBorders()->getHashCode(), $aBorders)) {
                  $aBorders[ $style->getBorders()->getHashCode() ] = $style->getBorders();
              }
          }
  
          return $aBorders;
      }
code_tokens: public function allBorders ( PHPExcel $ pPHPExcel = null ) { // Get an array of unique borders $ aBorders = array ( ) ; $ aStyles = $ this -> allStyles ( $ pPHPExcel ) ; foreach ( $ aStyles as $ style ) { if ( ! array_key_exists ( $ style -> getBorders ( ) -> getHashCode ( ) , $ aBorders ) ) { $ aBorders [ $ style -> getBorders ( ) -> getHashCode ( ) ] = $ style -> getBorders ( ) ; } } return $ aBorders ; }
docstring: Get an array of all borders
  
  @param     PHPExcel                        $pPHPExcel
  @return     PHPExcel_Style_Borders[]        All borders in PHPExcel
  @throws     PHPExcel_Writer_Exception
docstring_tokens: Get an array of all borders