{"id":23946168,"url":"https://github.com/ermos/ornikar-test","last_synced_at":"2025-09-12T04:31:31.658Z","repository":{"id":99161689,"uuid":"582946220","full_name":"ermos/ornikar-test","owner":"ermos","description":null,"archived":true,"fork":false,"pushed_at":"2022-12-28T12:06:42.000Z","size":26,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-24T07:16:12.364Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ermos.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-12-28T10:07:13.000Z","updated_at":"2023-10-26T12:47:21.000Z","dependencies_parsed_at":"2023-06-04T08:15:27.033Z","dependency_job_id":null,"html_url":"https://github.com/ermos/ornikar-test","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/ermos/ornikar-test","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ermos%2Fornikar-test","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ermos%2Fornikar-test/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ermos%2Fornikar-test/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ermos%2Fornikar-test/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ermos","download_url":"https://codeload.github.com/ermos/ornikar-test/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ermos%2Fornikar-test/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":274753611,"owners_count":25342825,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-09-12T02:00:09.324Z","response_time":60,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-01-06T08:28:47.672Z","updated_at":"2025-09-12T04:31:31.652Z","avatar_url":"https://github.com/ermos.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Refactoring Kata Test\n\n## Requirements\n\nYou must have docker on your computer.\n\n## Introduction\n\n**Ornikar** is sending a lot of notification messages, and we have some message templates we want to send\nat different occasion. To do that, we've developed `TemplateManager` whose job is to replace\nplaceholders in texts by lesson related information.\n\n`TemplateManager` is a class that's been around for years and nobody really knows who coded\nit or how it really works. Nonetheless, as the business changes frequently, this class has\nalready been modified many times, making it harder to understand at each step.\n\nToday, once again, the PO wants to add some new stuff to it and add the management for a new\nplaceholder. But this class is already complex enough and just adding a new behaviour to it\nwon't work this time.\n\nYour mission, should you decide to accept it, is to **refactor `TemplateManager` to make it\nunderstandable by the next developer** and easy to change afterwards. Now is the time for you to\nshow your exceptional skills and make this implementation better, extensible, and ready for future\nfeatures.\n\nSadly for you, the public method `TemplateManager::getTemplateComputed` is called everywhere, \nand **you can't change its signature**. But that's the only one you can't modify (unless explicitly\nforbidden in a code comment), **every other class is ready for your changes**.\n\nThis exercise **should not last longer than 1 hour 30** (but this can be too short to do it all and\nyou might take longer if you want).\n\n\n## Rules\nThere are some rules to follow:\n - You must commit regularly\n - You must not modify code when comments explicitly forbid it\n\n## Deliverables\nWhat do we expect from you:\n - the link of the git repository\n - several commits, with an explicit message each time\n - a file / message / email explaining your process and principles you've followed\n\n## Hints\n- You will be evaluated on your usage of SOLID principle and Refactoring best practices.\n- A makefile is provided for you to help you start directly with docker.\n- You can run the test with the following command : `make test`\n\n## Version\n\nPHP 8.1\n\n**Good luck!**\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fermos%2Fornikar-test","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fermos%2Fornikar-test","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fermos%2Fornikar-test/lists"}