Line length and line breaking
| From: | Rolf van de Krol | Date: | Tue, 23 Aug 2005 16:45:58 +0000 |
| Subject: | Line length and line breaking | ||
| Groups: | php.pear.general | ||
| Request: | Send a blank email to pear-general+get-20547@lists.php.net to get a copy of this message | ||
Hi all, i'm in need of your advice
I'm trying to develop a piece of code, following the PEAR Coding Standards
because i want my code to be readable. But i think it is not that easy as it
seems :(.
I've got the following line of code which needs to be terminated at 75-85
characters.
$this->rootconfig[$config_keys[$i]][$config_group_keys[$i][$j]] = new
ConfigurationItem($config[$config_keys[$i]][$config_group_keys[$i][$j]],true
);
If it would be like this, it won't be a real problem. It can easily be
terminated, but the problem is, there are 7*4=28 spaces before it.
$this->rootconfig[$config_keys[$i]][$config_group_keys[$i][$j]] = new
ConfigurationItem($config[$config_keys[$i]][$config_group_keys[$i][$j]],true
);
How would you terminate that line of code?
Thanks in advance
Rolf van de Krol