original_string: public function supportedExtensions($dot = false)
      {
          $extensions = array();
          foreach ($this->getHandlers() as $handler) {
              if (!empty($handler['extensions'])) {
                  $extensions += array_merge($extensions, (array) $handler['extensions']);
              }
          }
  
          $extensions = array_unique($extensions);
  
          if ($dot) {
              $extensions = array_map(function ($value) {
                  return ".$value";
              }, $extensions);
          }
  
          return $extensions;
      }
code: public function supportedExtensions($dot = false)
      {
          $extensions = array();
          foreach ($this->getHandlers() as $handler) {
              if (!empty($handler['extensions'])) {
                  $extensions += array_merge($extensions, (array) $handler['extensions']);
              }
          }
  
          $extensions = array_unique($extensions);
  
          if ($dot) {
              $extensions = array_map(function ($value) {
                  return ".$value";
              }, $extensions);
          }
  
          return $extensions;
      }
code_tokens: public function supportedExtensions ( $ dot = false ) { $ extensions = array ( ) ; foreach ( $ this -> getHandlers ( ) as $ handler ) { if ( ! empty ( $ handler [ 'extensions' ] ) ) { $ extensions += array_merge ( $ extensions , ( array ) $ handler [ 'extensions' ] ) ; } } $ extensions = array_unique ( $ extensions ) ; if ( $ dot ) { $ extensions = array_map ( function ( $ value ) { return ".$value" ; } , $ extensions ) ; } return $ extensions ; }
docstring: Returns an array of all supported file extensions
  @param boolean $dot
  @return array
docstring_tokens: Returns an array of all supported file extensions