public static function GetNameWithoutExtension( string $file, bool $doubleExtension = false )
   {
      if ( \FALSE === ( $ext = static::GetExtension( $file, $doubleExtension ) ) )
      {
         return \basename( $file );
      }
      return \substr( \basename( $file ), 0, -\strlen( $ext ) );
   }
public static function GetNameWithoutExtension( string $file, bool $doubleExtension = false )
   {
      if ( \FALSE === ( $ext = static::GetExtension( $file, $doubleExtension ) ) )
      {
         return \basename( $file );
      }
      return \substr( \basename( $file ), 0, -\strlen( $ext ) );
   }
public static function GetNameWithoutExtension ( string $ file , bool $ doubleExtension = false ) { if ( \ FALSE === ( $ ext = static :: GetExtension ( $ file , $ doubleExtension ) ) ) { return \ basename ( $ file ) ; } return \ substr ( \ basename ( $ file ) , 0 , - \ strlen ( $ ext ) ) ; }
Returns the file name without the file name extension.

@param  string  $file           The file name/path.
@param  boolean $doubleExtension  If you require extensions, including also a single dot like '.abc.def'
you have to set this parameter to TRUE.
@return string|bool Name or bool FALSE.
Returns the file name without the file name extension .