original_string: public static function setNewDirectoryMode(string $mode = '740'): void
      {
          static::init();
          static::$newDirectoryMode = \preg_match('/^[0-7]{3}$/', $mode) ? \intval($mode, 8) : 0740;
      }
code: public static function setNewDirectoryMode(string $mode = '740'): void
      {
          static::init();
          static::$newDirectoryMode = \preg_match('/^[0-7]{3}$/', $mode) ? \intval($mode, 8) : 0740;
      }
code_tokens: public static function setNewDirectoryMode ( string $ mode = '740' ) : void { static :: init ( ) ; static :: $ newDirectoryMode = \ preg_match ( '/^[0-7]{3}$/' , $ mode ) ? \ intval ( $ mode , 8 ) : 0740 ; }
docstring: Sets default mode for newly created directories
  
  @param string $mode
docstring_tokens: Sets default mode for newly created directories