-
Notifications
You must be signed in to change notification settings - Fork 33
devel_coding_style
UWAGA: Ten dokument został automatycznie przekonwertowany podczas migracji Google Code -> GitHub i może zawierać błędne formatowanie.
code should be formatted using PSR-2 coding style format. please refer to https://github.com/php-fig/fig-standards/blob/master/accepted/PSR-2-coding-style-guide.md note: always use 4 spaces instead tab.
When you perform changes on database structure, please attach file witch sql code in directory sqlAlters (https://code.google.com/p/opencaching-pl/source/browse/#svn%2Ftrunk%2FsqlAlters). File have to be named witch date and description, example: 2014-05-24_NewCacheLog.sql. For now, changes in db on production server have to be done manually by their admins. (In future we will implement automatic db update, based on .sql files in this directory).
Follow example in 1970-01-01_ExampleSqlAlter.sql
OC code has installed tool for debugging - kint (http://raveren.github.io/kint/) for debug a variable just simply type in code
d($variableName);
type d(1); to get stack trace. type dd($variable) to dump variable to screen and stop code executing.
Virtual Machine (VM):
(EN) Installation and usage - brief description
(PL) Przygotowanie środowiska dev.
(EN) The "Making of"
(EN) Requests for new VM version?
(PL) Wskazówki dla Windowsowców
Setup instructions without VM:
Tips for developers:
(EN) Coding style
(EN) People and their duties
(PL) Praca z repozytorium
(PL) Wprowadzenie do kodu OCPL