1
0
mirror of https://github.com/jupeter/clean-code-php.git synced 2025-09-25 05:31:29 +02:00
Commit Graph

362 Commits

Author SHA1 Message Date
TomasVotruba
9fab86d007 [CI] run on push too 0.1.0 2021-05-26 11:26:19 +01:00
TomasVotruba
0374baa8a8 update ECS and composer.json, allow PHP 7.2+ 2021-05-26 11:24:36 +01:00
Tomas Votruba
9ed47fea35 Merge pull request #186 from peter-gribanov/persian_translation
Add link to persian translation
2021-05-26 11:14:50 +01:00
Tomas Votruba
a0ce001178 Merge pull request #187 from diegoe/diegoe_misc-typos 2021-05-26 11:06:41 +01:00
Tomas Votruba
1356e6d016 Merge branch 'master' into diegoe_misc-typos 2021-05-26 11:05:12 +01:00
Tomas Votruba
7d4f52bd3e Merge pull request #190 from peter-gribanov/default_arguments
Move "Use default arguments instead of short circuiting or conditionals" section
2021-05-26 11:04:42 +01:00
Tomas Votruba
798fdd939b Merge pull request #191 from celyes/master 2021-05-26 11:04:20 +01:00
Ilyes Chouia
c6808b9448 fix link issue 2021-05-25 14:16:05 +01:00
Ilyes Chouia
b12e986703 fix typo
change 'Single Responsibility Pattern' to 'Single Responsibility Principle' in `Prefer final classes` chapter
2021-05-25 14:12:39 +01:00
Peter Gribanov
8572f4c5ba move "Use default arguments instead of short circuiting or conditionals" section into "Functions" section 2021-04-28 15:11:17 +03:00
Tomas Votruba
5467c3a973 Merge pull request #188 from andyexeter/remove-declare-strict-types
Remove declare strict_types from code snippets
2021-04-15 23:48:12 +02:00
andyexeter
0d478312fd Remove declare strict_types from code snippets 2021-04-15 10:04:57 +01:00
diegoe
3218b7e117 Misc spelling and grammar touch ups 2021-02-06 03:32:54 -05:00
Peter Gribanov
c4bdcb6a5e add link to persian translation 2021-01-15 20:21:34 +03:00
Tomas Votruba
13ab89dbf1 Merge pull request #181 from jupeter/readme-cs 2020-10-28 23:53:26 +01:00
Tomas Votruba
43dfecd7d6 restore required mallforms 2020-10-28 23:51:37 +01:00
Tomas Votruba
9df6c175c9 workflow: update php 2020-10-28 23:47:53 +01:00
Tomas Votruba
d60f4a6145 apply coding standard on README 2020-10-28 23:35:53 +01:00
Tomas Votruba
2c94c03dd2 [ci] switch travis dummy cs check, to Github Actions and ECS with markdown check 2020-10-28 23:22:48 +01:00
Tomas Votruba
b215860ed7 Merge pull request #175 from leocarmo/null-coalescing 2020-06-23 12:16:47 +02:00
Tomas Votruba
1121a80961 Merge pull request #174 from php-rock/master
Fix example for Prefer composition over inheritance
2020-06-23 11:42:36 +02:00
Leonardo do Carmo
2a331563d4 Add null coalescing section 2020-04-09 12:31:20 -03:00
Leonardo do Carmo
8f6c4ee1a0 Change example to null coalescing 2020-04-09 12:29:53 -03:00
Jack Sheppard
c6599cb17d Merge pull request #1 from Shpartko/Shpartko-patch-1
Update Prefer composition over inheritance
2020-03-11 13:33:46 +01:00
Jack Sheppard
390ff76f93 Update Prefer composition over inheritance 2020-03-11 13:33:12 +01:00
Tomáš Votruba
062b4e2541 Merge pull request #171 from Bu4ak/access-modifier-constant-fix
Add "public" to const declarations
2019-10-06 00:16:29 +02:00
bu4ak
8f327f84a5 Add "public" to const declarations 2019-10-02 17:08:10 +03:00
Tomáš Votruba
8693a08073 Merge pull request #170 from peter-gribanov/delete_functions_one_thing
Delete "Functions should do one thing" section
2019-09-18 20:25:08 +02:00
Peter Gribanov
5e2d423072 delete "Functions should do one thing" section 2019-09-18 15:07:17 +03:00
Tomáš Votruba
89ab6f17c9 Merge pull request #164 from peter-gribanov/tests
Tests
2019-09-18 09:27:19 +02:00
Tomáš Votruba
dfed2b17e9 Merge pull request #165 from peter-gribanov/fix_text_style
Fix text style errors
2019-09-18 09:25:41 +02:00
Tomáš Votruba
e73bc836a7 Merge pull request #166 from peter-gribanov/js_to_php
Rename function parseBetterJSAlternative()
2019-09-12 10:31:03 +02:00
Tomáš Votruba
c3ba178d96 Merge pull request #168 from peter-gribanov/fun_args_3
Use VO in example of "Function arguments (2 or fewer ideally)"
2019-09-12 10:30:38 +02:00
Peter Gribanov
5969ca97e6 not set default values of string VO properties 2019-07-26 12:20:40 +03:00
Peter Gribanov
4f11e5324e add getters comment 2019-07-23 16:05:10 +03:00
Peter Gribanov
eb31d2d2aa use VO in example of "Function arguments (2 or fewer ideally)" 2019-07-23 14:01:43 +03:00
Peter Gribanov
f9d66a25da rename function parseBetterJSAlternative() -> parseBetterPHPAlternative() 2019-07-11 19:23:37 +03:00
Peter Gribanov
7a37fdf88a remove space character at end of lines 2019-07-11 19:10:32 +03:00
Peter Gribanov
d29db0254a not use quotes in table of contents 2019-07-11 19:09:05 +03:00
Peter Gribanov
4022b02035 ignore links in title 2019-07-11 18:56:29 +03:00
Peter Gribanov
9222ff3a37 allow use unicode in link names 2019-07-11 18:56:09 +03:00
Peter Gribanov
e0fc6a8342 allow use more of the two depth levels in table of contents 2019-07-11 18:55:09 +03:00
Tomáš Votruba
56c67ddf2a Merge pull request #155 from domnikl/avoid-type-checking-part-1-naming
used a better name for Vehicle abstraction
2019-06-19 21:29:38 +02:00
Tomáš Votruba
bb000f6454 Merge pull request #162 from peter-gribanov/binary_and
Demonstrate binary operations
2019-06-19 21:28:46 +02:00
Tomáš Votruba
49be90aa1a Merge pull request #163 from grogy/patch-1
Fixed - opposite for condition
2019-06-19 21:28:14 +02:00
Václav Makeš
acb8ba054d Fixed - opposite for condition
Opposite for `$n < 50` is `$n >= 50`.
2019-05-12 22:13:14 +02:00
Peter Gribanov
f080c5b42d add deny access rights example 2019-01-29 10:56:17 +03:00
Peter Gribanov
6be37a0971 add default value for User::$access 2019-01-29 10:28:12 +03:00
Peter Gribanov
810f537ab2 Merge remote-tracking branch 'jupeter/master' 2019-01-29 10:22:20 +03:00
Dominik Liebler
7a7a1f08e7 used a better name for Vehicle abstraction 2018-10-05 12:52:15 +02:00