In this case the basic offset is 4 and tabs mode is enabled.
For example I am getting:
if (! (true // Problem when the value starts inline.
&& false)) {} // I get two tabs, one per '('.
if (! (
true // No problem when value does not start inline.
&& false)) {} // I get one tab as wanted.
I get one tab per (
, but since they are inline, I want just one tab:
if (! (true // Problem solved.
&& false)) {} // One tab.
if (! (
true // No problem.
&& false)) {} // One tab.
This is how I style my code:
(c-add-style
"MyStylePHP"
`((c-basic-offset . 4)
(c-offsets-alist . (
(arglist-close . php-lineup-arglist-close)
(arglist-cont . (first php-lineup-cascaded-calls 0))
(arglist-cont-nonempty . +)
(arglist-intro . php-lineup-arglist-intro)
(case-label . +)
(class-open . 0)
(comment-intro . 0)
(inlambda . 0)
(inline-open . 0)
(namespace-open . 0)
(lambda-intro-cont . +)
(label . +)
(statement-cont . (first
php-lineup-cascaded-calls
php-lineup-string-cont
php-lineup-hanging-semicolon +))
(substatement-open . 0)
(topmost-intro-cont . (first
php-lineup-cascaded-calls +))))
(c-indent-comments-syntactically-p . t)
(indent-tabs-mode . t)
(tab-width . ,(default-value 'tab-width))
(fill-column . ,(default-value 'fill-column))
(show-trailing-whitespace . ,(default-value 'show-trailing-whitespace))
(php-style-delete-trailing-whitespace . nil)))
(add-hook
'php-mode-hook
'(lambda ()
(c-set-style "MyStylePHP")))