• Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Search
  • Register
  • Login
Netgate Discussion Forum
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Search
  • Register
  • Login

PfSense PHP coding standards

Scheduled Pinned Locked Moved 2.1 Snapshot Feedback and Problems - RETIRED
2 Posts 2 Posters 1.4k Views
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • J
    jcyr
    last edited by May 11, 2013, 7:50 PM

    This is neither feedback nor problem report, but I'm not sure where this question might belong?

    Are there any PHP coding standards for pfSense PHP scrips. I'm assuming Unix style EOLs are preferred. What about indenting? 2, 4, or eight spaces? Blank characters for indenting or tabs? Anything else?

    IPV6 Test: http://ipv6-test.com

    1 Reply Last reply Reply Quote 0
    • J
      jimp Rebel Alliance Developer Netgate
      last edited by May 13, 2013, 2:19 PM

      Indent with tabs, not spaces.

      http://devwiki.pfsense.org/DeveloperRules has a lot of style info. Could probably use some updating though, I see some issues with syntax on there, but they're minor things.

      Remember: Upvote with the 👍 button for any user/post you find to be helpful, informative, or deserving of recognition!

      Need help fast? Netgate Global Support!

      Do not Chat/PM for help!

      1 Reply Last reply Reply Quote 0
      2 out of 2
      • First post
        2/2
        Last post
      Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.
        This community forum collects and processes your personal information.
        consent.not_received