OC Coding Style: Unterschied zwischen den Versionen

Zur Navigation springen Zur Suche springen
keine Bearbeitungszusammenfassung
K (Following verschob die Seite Entwicklung/Stil nach OC Coding Style)
Keine Bearbeitungszusammenfassung
Zeile 11: Zeile 11:


== PHP ==
== PHP ==
All self-written or directly changed code must fully comply to the [http://www.php-fig.org/psr/psr-1/ PSR-1] / [http://www.php-fig.org/psr/psr-2/ PSR-2] standard, with these exceptions:
All contributed or modified code must fully comply to the [http://www.php-fig.org/psr/psr-1/ PSR-1] / [http://www.php-fig.org/psr/psr-2/ PSR-2] standard, with these exceptions:


* When referencing identifiers (e.g. class and function names) that are defined in non-PSR-2-compliant source code files, they need not be PSR-2 compliant.
* When referencing identifiers (e.g. class and function names) that are defined in non-PSR-2-compliant source code files, they need not be PSR-2 compliant.
Zeile 28: Zeile 28:
         "SELECT `cache_id`, `wp_oc`
         "SELECT `cache_id`, `wp_oc`
         FROM `caches`
         FROM `caches`
         JOIN `cache_logs` ON `cache_logs`.`id` = `caches`.`id`
         JOIN `cache_logs` ON `cache_logs`.`cache_id` = `caches`.`cache_id`
         WHERE `caches`.`status` IN ('&1', '&2')"
         WHERE `caches`.`status` IN ('&1', '&2')"
         $status1,
         $status1,
Zeile 43: Zeile 43:
             `caches`.`type` AS `cache_type`,
             `caches`.`type` AS `cache_type`,
             `cache_logs`.`date` AS `log_date`,
             `cache_logs`.`date` AS `log_date`,
             `cache_logs`.`type` AS `log_type`,
             `cache_logs`.`type` AS `log_type`
         FROM `caches`
         FROM `caches`
         JOIN `cache_logs`
         JOIN `cache_logs`
             ON `cache_logs`.`id` = `caches`.`id`
             ON `cache_logs`.`cache_id` = `caches`.`cache_id`
             AND `cache_logs`.`type` = '&1'
             AND `cache_logs`.`type` = '&1'
         WHERE
         WHERE
             `caches`.`status` = '&1'
             `caches`.`status` = '&1'
             AND `cache_logs`.`user_id` = '&2'
             AND `cache_logs`.`user_id` = '&2'
         $cacheStatus
         $cacheStatus,
         $userId
         $userId
     );
     );
[[Kategorie:Entwicklung|Coding Style]]
2.505

Bearbeitungen

Navigationsmenü