%
\newcommand\formatchapter[1]{%
\vbox to \ht\strutbox{
\setbox0=\hbox{\chapterNumber\thechapter\hspace{10pt}\vline\ }
\advance\hsize-\wd0 \advance\hsize-10pt\raggedright
\spacedallcaps{#1}\vss}}
\titleformat{\chapter}[block]
{\normalfont\Large\sffamily}
{\textcolor{halfgray}{\chapterNumber\thechapter}
\hspace{10pt}\vline\ }{10pt}
{\formatchapter}