original_string: public function allNumberFormats(PHPExcel $pPHPExcel = null)
      {
          // Get an array of unique number formats
          $aNumFmts = array();
          $aStyles = $this->allStyles($pPHPExcel);
  
          foreach ($aStyles as $style) {
              if ($style->getNumberFormat()->getBuiltInFormatCode() === false && !array_key_exists($style->getNumberFormat()->getHashCode(), $aNumFmts)) {
                  $aNumFmts[ $style->getNumberFormat()->getHashCode() ] = $style->getNumberFormat();
              }
          }
  
          return $aNumFmts;
      }
code: public function allNumberFormats(PHPExcel $pPHPExcel = null)
      {
          // Get an array of unique number formats
          $aNumFmts = array();
          $aStyles = $this->allStyles($pPHPExcel);
  
          foreach ($aStyles as $style) {
              if ($style->getNumberFormat()->getBuiltInFormatCode() === false && !array_key_exists($style->getNumberFormat()->getHashCode(), $aNumFmts)) {
                  $aNumFmts[ $style->getNumberFormat()->getHashCode() ] = $style->getNumberFormat();
              }
          }
  
          return $aNumFmts;
      }
code_tokens: public function allNumberFormats ( PHPExcel $ pPHPExcel = null ) { // Get an array of unique number formats $ aNumFmts = array ( ) ; $ aStyles = $ this -> allStyles ( $ pPHPExcel ) ; foreach ( $ aStyles as $ style ) { if ( $ style -> getNumberFormat ( ) -> getBuiltInFormatCode ( ) === false && ! array_key_exists ( $ style -> getNumberFormat ( ) -> getHashCode ( ) , $ aNumFmts ) ) { $ aNumFmts [ $ style -> getNumberFormat ( ) -> getHashCode ( ) ] = $ style -> getNumberFormat ( ) ; } } return $ aNumFmts ; }
docstring: Get an array of all number formats
  
  @param     PHPExcel                                $pPHPExcel
  @return     PHPExcel_Style_NumberFormat[]        All number formats in PHPExcel
  @throws     PHPExcel_Writer_Exception
docstring_tokens: Get an array of all number formats