Bird Avatar Generator #1212

Merged
fabrixxm merged 3 commits from birdavatar into develop 2021-11-24 14:44:14 +01:00
fabrixxm commented 2021-11-24 12:13:01 +01:00 (Migrated from github.com)

Same as the Cat Avatar Generator, but with birds!

based once again on work by David Revoy
https://www.peppercarrot.com/extras/html/2019_bird-generator/index.php

Same as the Cat Avatar Generator, but with birds! based once again on work by David Revoy https://www.peppercarrot.com/extras/html/2019_bird-generator/index.php
MrPetovan commented 2021-11-24 14:05:19 +01:00 (Migrated from github.com)

PHP CS is complaining:

 8 | PHP CS Fixer 2.18.4-DEV Remote Void by Fabien Potencier and Dariusz Ruminski
 9 | Runtime: PHP 7.2.34
10 | Loaded config default from ".php_cs.dist".
11 | F
12 | Legend: ?-unknown, I-invalid file syntax (file ignored), S-skipped (cached or empty file), .-no changes, F-fixed, E-error
13 | 1) src/addon/birdavatar/birdavatar.php (array_indentation, no_unused_imports, binary_operator_spaces)
14 | ---------- begin diff ----------
15 | --- Original
16 | +++ New
17 | @@ -10,7 +10,6 @@
18 | use Friendica\Core\Hook;
19 | use Friendica\Core\Logger;
20 | use Friendica\Core\Renderer;
21 | -use Friendica\Core\Worker;
22 | use Friendica\Database\DBA;
23 | use Friendica\DI;
24 | use Friendica\Model\Contact;
25 | @@ -149,9 +148,9 @@
26 | }
27 |  
28 | if (is_numeric(DI::args()->getArgv()[1])) {
29 | -		$uid = intval(DI::args()->getArgv()[1]);
30 | +		$uid       = intval(DI::args()->getArgv()[1]);
31 | $condition = ['uid' => $uid,
32 | -				'account_expired' => false, 'account_removed' => false];
33 | +			'account_expired'  => false, 'account_removed' => false];
34 | $user = DBA::selectFirst('user', ['email'], $condition);
35 |  
36 | if ($user === false) {
37 |  
38 | ----------- end diff -----------
PHP CS is complaining: ``` 8 | PHP CS Fixer 2.18.4-DEV Remote Void by Fabien Potencier and Dariusz Ruminski 9 | Runtime: PHP 7.2.34 10 | Loaded config default from ".php_cs.dist". 11 | F 12 | Legend: ?-unknown, I-invalid file syntax (file ignored), S-skipped (cached or empty file), .-no changes, F-fixed, E-error 13 | 1) src/addon/birdavatar/birdavatar.php (array_indentation, no_unused_imports, binary_operator_spaces) 14 | ---------- begin diff ---------- 15 | --- Original 16 | +++ New 17 | @@ -10,7 +10,6 @@ 18 | use Friendica\Core\Hook; 19 | use Friendica\Core\Logger; 20 | use Friendica\Core\Renderer; 21 | -use Friendica\Core\Worker; 22 | use Friendica\Database\DBA; 23 | use Friendica\DI; 24 | use Friendica\Model\Contact; 25 | @@ -149,9 +148,9 @@ 26 | } 27 |   28 | if (is_numeric(DI::args()->getArgv()[1])) { 29 | - $uid = intval(DI::args()->getArgv()[1]); 30 | + $uid = intval(DI::args()->getArgv()[1]); 31 | $condition = ['uid' => $uid, 32 | - 'account_expired' => false, 'account_removed' => false]; 33 | + 'account_expired' => false, 'account_removed' => false]; 34 | $user = DBA::selectFirst('user', ['email'], $condition); 35 |   36 | if ($user === false) { 37 |   38 | ----------- end diff ----------- ```
fabrixxm commented 2021-11-24 14:32:55 +01:00 (Migrated from github.com)

That's why one should run php-cs after changes...

That's why one should run php-cs *after* changes...
MrPetovan (Migrated from github.com) approved these changes 2021-11-24 14:41:32 +01:00
Sign in to join this conversation.
No description provided.