Skip to content

Commit

Permalink
add badge CodeClimet
Browse files Browse the repository at this point in the history
  • Loading branch information
Egorskov committed Sep 29, 2024
1 parent 700ab31 commit 69f2948
Show file tree
Hide file tree
Showing 14 changed files with 186 additions and 8 deletions.
Binary file modified .DS_Store
Binary file not shown.
8 changes: 8 additions & 0 deletions .idea/.gitignore

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 8 additions & 0 deletions .idea/modules.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 12 additions & 0 deletions .idea/php-project-45.iml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

39 changes: 39 additions & 0 deletions .idea/php.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 10 additions & 0 deletions .idea/phpspec.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions .idea/vcs.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,6 @@ brain-games:

validate:
composer validate

lint:
composer exec --verbose phpcs -- --standard=PSR12 src bin
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
### Hexlet tests and linter status:
[![Actions Status](https://github.com/Egorskov/php-project-45/actions/workflows/hexlet-check.yml/badge.svg)](https://github.com/Egorskov/php-project-45/actions)
[![Actions Status](https://github.com/Egorskov/php-project-45/actions/workflows/hexlet-check.yml/badge.svg)](https://github.com/Egorskov/php-project-45/actions)
[![Maintainability](https://api.codeclimate.com/v1/badges/dd2c59d4a9aaac5fc43a/maintainability)](https://codeclimate.com/github/Egorskov/php-project-45/maintainability)
Binary file added bin/.DS_Store
Binary file not shown.
1 change: 1 addition & 0 deletions bin/brain-games
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,4 @@ require_once __DIR__ . '/../vendor/autoload.php';
use function BrainGames\Cli\greeting;

greeting();

9 changes: 8 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,5 +20,12 @@

"description": "project 45",

"license": "MIT"
"license": "MIT",
"require-dev": {
"squizlabs/php_codesniffer": "^3.10"
},
"scripts": {
"phpcs": "phpcs",
"phpcbf": "phpcbf"
}
}
85 changes: 83 additions & 2 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 6 additions & 4 deletions src/Cli.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,11 @@

function greeting()
{
line('Welcome to the Brain Game!');
$name = prompt('May I have your name?');
line("Hello, %s!", $name);
return $name;
line('Welcome to the Brain Game!');
$name = prompt('May I have your name?');
line("Hello, %s!", $name);
return $name;
}
function askQuestion(string $question){

}

0 comments on commit 69f2948

Please sign in to comment.