Create coding-standards.markdown

This commit is contained in:
Sencar TOSUN 2016-12-29 10:05:50 +03:00 committed by GitHub
parent 5678c56829
commit 024d45c8c1
1 changed files with 24 additions and 0 deletions

View File

@ -0,0 +1,24 @@
Kodlama standartları
================
PHP kodu
--------
- Girinti: 4 spaces
- Satır sonu: Unix => `\n`
- Kodlama: UTF-8
- Şablonlar için sadece `<?php` veya `<?=`ık tag kullanın, ancak **asla** `<?` kullanmayın
- Yöntemler ve sınıf özellikleri için daima PHPdoc yorumlarını yaz
- Kodlama stili: [PSR-1](http://www.php-fig.org/psr/psr-1/) ve [PSR-2](http://www.php-fig.org/psr/psr-2/)
JavaScript kodu
---------------
- Girinti: 4 spaces
- Satır sonu: Unix => `\n`
CSS kodu
--------
- Girinti: 4 spaces
- Satır sonu: Unix => `\n`