original_string: public function allFills(PHPExcel $pPHPExcel = null)
      {
          // Get an array of unique fills
          $aFills = array();
  
          // Two first fills are predefined
          $fill0 = new PHPExcel_Style_Fill();
          $fill0->setFillType(PHPExcel_Style_Fill::FILL_NONE);
          $aFills[] = $fill0;
  
          $fill1 = new PHPExcel_Style_Fill();
          $fill1->setFillType(PHPExcel_Style_Fill::FILL_PATTERN_GRAY125);
          $aFills[] = $fill1;
          // The remaining fills
          $aStyles = $this->allStyles($pPHPExcel);
          foreach ($aStyles as $style) {
              if (!array_key_exists($style->getFill()->getHashCode(), $aFills)) {
                  $aFills[ $style->getFill()->getHashCode() ] = $style->getFill();
              }
          }
  
          return $aFills;
      }
code: public function allFills(PHPExcel $pPHPExcel = null)
      {
          // Get an array of unique fills
          $aFills = array();
  
          // Two first fills are predefined
          $fill0 = new PHPExcel_Style_Fill();
          $fill0->setFillType(PHPExcel_Style_Fill::FILL_NONE);
          $aFills[] = $fill0;
  
          $fill1 = new PHPExcel_Style_Fill();
          $fill1->setFillType(PHPExcel_Style_Fill::FILL_PATTERN_GRAY125);
          $aFills[] = $fill1;
          // The remaining fills
          $aStyles = $this->allStyles($pPHPExcel);
          foreach ($aStyles as $style) {
              if (!array_key_exists($style->getFill()->getHashCode(), $aFills)) {
                  $aFills[ $style->getFill()->getHashCode() ] = $style->getFill();
              }
          }
  
          return $aFills;
      }
code_tokens: public function allFills ( PHPExcel $ pPHPExcel = null ) { // Get an array of unique fills $ aFills = array ( ) ; // Two first fills are predefined $ fill0 = new PHPExcel_Style_Fill ( ) ; $ fill0 -> setFillType ( PHPExcel_Style_Fill :: FILL_NONE ) ; $ aFills [ ] = $ fill0 ; $ fill1 = new PHPExcel_Style_Fill ( ) ; $ fill1 -> setFillType ( PHPExcel_Style_Fill :: FILL_PATTERN_GRAY125 ) ; $ aFills [ ] = $ fill1 ; // The remaining fills $ aStyles = $ this -> allStyles ( $ pPHPExcel ) ; foreach ( $ aStyles as $ style ) { if ( ! array_key_exists ( $ style -> getFill ( ) -> getHashCode ( ) , $ aFills ) ) { $ aFills [ $ style -> getFill ( ) -> getHashCode ( ) ] = $ style -> getFill ( ) ; } } return $ aFills ; }
docstring: Get an array of all fills
  
  @param     PHPExcel                        $pPHPExcel
  @return     PHPExcel_Style_Fill[]        All fills in PHPExcel
  @throws     PHPExcel_Writer_Exception
docstring_tokens: Get an array of all fills