From c7135a265959b75678f9fc989730012a8b315e9f Mon Sep 17 00:00:00 2001 From: Carlos MAtos Date: Thu, 19 Dec 2024 02:25:01 +0000 Subject: [PATCH] PHPCS cleared. --- .phpcs-cache | 2 +- src/Chain/AbstractHandler.php | 4 ++-- src/Contracts/HandlerInterface.php | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.phpcs-cache b/.phpcs-cache index 54da16b..d0f3b08 100644 --- a/.phpcs-cache +++ b/.phpcs-cache @@ -1 +1 @@ -{"config":{"phpVersion":80226,"phpExtensions":"6444a8d24aa127a4fe13989038fc4447","tabWidth":4,"encoding":"utf-8","recordErrors":true,"annotations":true,"configData":[],"codeHash":"34c672b1930e0760c14766ee1e79c81f","rulesetHash":"670f8348153700c3a70fc6127ca0e484"},"\/home\/carlos\/Projects\/desired-patterns\/src\/Commands\/AbstractCommandHandler.php":{"hash":"c5f8bb6e91557bee33e1c09a2b05c21233188","errors":[],"warnings":[],"metrics":{"Declarations and side effects mixed":{"values":{"no":1}},"PHP short open tag used":{"values":{"no":1}},"EOL char":{"values":{"\\n":1}},"Number of newlines at EOF":{"values":{"1":1}},"PHP closing tag at end of PHP-only file":{"values":{"no":1}},"Line length":{"values":{"80 or less":35}},"Line indent":{"values":{"spaces":28}},"PHP keyword case":{"values":{"lower":19}},"Multiple statements on same line":{"values":{"no":7}},"One class per file":{"values":{"yes":1}},"Class defined in namespace":{"values":{"yes":1}},"PascalCase class name":{"values":{"yes":1}},"Class opening brace placement":{"values":{"new line":1}},"CamelCase method name":{"values":{"yes":3}},"PHP type case":{"values":{"lower":3}},"Function opening brace placement":{"values":{"new line":1}},"Spaces after control structure open parenthesis":{"values":[1]},"Spaces before control structure close parenthesis":{"values":[1]},"Blank lines at start of control structure":{"values":[1]},"Blank lines at end of control structure":{"values":[1]},"Control structure defined inline":{"values":{"no":1}}},"errorCount":0,"warningCount":0,"fixableCount":0,"numTokens":236},"\/home\/carlos\/Projects\/desired-patterns\/src\/Commands\/AbstractCommand.php":{"hash":"46b7ebe10aee22926d7f71cca271a4d733188","errors":[],"warnings":[],"metrics":{"Declarations and side effects mixed":{"values":{"no":1}},"PHP short open tag used":{"values":{"no":1}},"EOL char":{"values":{"\\n":1}},"Number of newlines at EOF":{"values":{"1":1}},"PHP closing tag at end of PHP-only file":{"values":{"no":1}},"Line length":{"values":{"80 or less":24}},"Line indent":{"values":{"spaces":18}},"PHP keyword case":{"values":{"lower":16}},"Multiple statements on same line":{"values":{"no":4}},"One class per file":{"values":{"yes":1}},"Class defined in namespace":{"values":{"yes":1}},"PascalCase class name":{"values":{"yes":1}},"Class opening brace placement":{"values":{"new line":1}},"PHP type case":{"values":{"lower":3}},"CamelCase method name":{"values":{"yes":2}},"Function opening brace placement":{"values":{"new line":2}}},"errorCount":0,"warningCount":0,"fixableCount":0,"numTokens":142},"\/home\/carlos\/Projects\/desired-patterns\/src\/Registry\/Registry.php":{"hash":"64723635722c9e036c4a8599088ae3d233188","errors":[],"warnings":[],"metrics":{"Declarations and side effects mixed":{"values":{"no":1}},"PHP short open tag used":{"values":{"no":1}},"EOL char":{"values":{"\\n":1}},"Number of newlines at EOF":{"values":{"1":1}},"PHP closing tag at end of PHP-only file":{"values":{"no":1}},"Line length":{"values":{"80 or less":71,"81-120":1}},"Line indent":{"values":{"spaces":61}},"PHP keyword case":{"values":{"lower":42}},"Multiple statements on same line":{"values":{"no":10}},"One class per file":{"values":{"yes":1}},"Class defined in namespace":{"values":{"yes":1}},"PascalCase class name":{"values":{"yes":1}},"Class opening brace placement":{"values":{"new line":1}},"PHP type case":{"values":{"lower":13}},"Function opening brace placement":{"values":{"new line":8}},"CamelCase method name":{"values":{"yes":7}},"Spaces after control structure open parenthesis":{"values":[1]},"Spaces before control structure close parenthesis":{"values":[1]},"Blank lines at start of control structure":{"values":[1]},"Blank lines at end of control structure":{"values":[1]},"Control structure defined inline":{"values":{"no":1}}},"errorCount":0,"warningCount":0,"fixableCount":0,"numTokens":448},"\/home\/carlos\/Projects\/desired-patterns\/src\/Traits\/Singleton.php":{"hash":"e47ed994e71d65fc7badc8563f7324cb33204","errors":[],"warnings":[],"metrics":{"Declarations and side effects mixed":{"values":{"no":1}},"PHP short open tag used":{"values":{"no":1}},"EOL char":{"values":{"\\n":1}},"Number of newlines at EOF":{"values":{"1":1}},"PHP closing tag at end of PHP-only file":{"values":{"no":1}},"Line length":{"values":{"80 or less":53}},"Line indent":{"values":{"spaces":48}},"PHP keyword case":{"values":{"lower":28}},"Multiple statements on same line":{"values":{"no":6}},"One class per file":{"values":{"yes":1}},"Class defined in namespace":{"values":{"yes":1}},"PascalCase class name":{"values":{"yes":1}},"Class opening brace placement":{"values":{"new line":1}},"PHP type case":{"values":{"lower":5}},"PHP constant case":{"values":{"lower":1}},"Function opening brace placement":{"values":{"new line":5}},"CamelCase method name":{"values":{"yes":1}}},"errorCount":0,"warningCount":0,"fixableCount":0,"numTokens":285},"\/home\/carlos\/Projects\/desired-patterns\/src\/Traits\/Multiton.php":{"hash":"61e7b1daef195722dce2ac0d3ff82a3433204","errors":[],"warnings":[],"metrics":{"Declarations and side effects mixed":{"values":{"no":1}},"PHP short open tag used":{"values":{"no":1}},"EOL char":{"values":{"\\n":1}},"Number of newlines at EOF":{"values":{"1":1}},"PHP closing tag at end of PHP-only file":{"values":{"no":1}},"Line length":{"values":{"80 or less":73}},"Line indent":{"values":{"spaces":68}},"PHP keyword case":{"values":{"lower":46}},"Multiple statements on same line":{"values":{"no":9}},"One class per file":{"values":{"yes":1}},"Class defined in namespace":{"values":{"yes":1}},"PascalCase class name":{"values":{"yes":1}},"Class opening brace placement":{"values":{"new line":1}},"PHP type case":{"values":{"lower":11}},"Function opening brace placement":{"values":{"new line":8}},"CamelCase method name":{"values":{"yes":4}}},"errorCount":0,"warningCount":0,"fixableCount":0,"numTokens":432},"\/home\/carlos\/Projects\/desired-patterns\/src\/Traits\/CommandHandlerTrait.php":{"hash":"6f731a665700a7be63c9d82e0a30101b33188","errors":[],"warnings":[],"metrics":{"Declarations and side effects mixed":{"values":{"no":1}},"PHP short open tag used":{"values":{"no":1}},"EOL char":{"values":{"\\n":1}},"Number of newlines at EOF":{"values":{"1":1}},"PHP closing tag at end of PHP-only file":{"values":{"no":1}},"Line length":{"values":{"80 or less":22}},"Line indent":{"values":{"spaces":16}},"PHP keyword case":{"values":{"lower":10}},"Multiple statements on same line":{"values":{"no":5}},"One class per file":{"values":{"yes":1}},"Class defined in namespace":{"values":{"yes":1}},"PascalCase class name":{"values":{"yes":1}},"Class opening brace placement":{"values":{"new line":1}},"CamelCase method name":{"values":{"yes":2}},"PHP type case":{"values":{"lower":2}},"Function opening brace placement":{"values":{"new line":1}}},"errorCount":0,"warningCount":0,"fixableCount":0,"numTokens":129},"\/home\/carlos\/Projects\/desired-patterns\/src\/Specifications\/AbstractSpecification.php":{"hash":"0a1a28818f65cf71d21f61c3f2b9918f33204","errors":[],"warnings":[],"metrics":{"Declarations and side effects mixed":{"values":{"no":1}},"PHP short open tag used":{"values":{"no":1}},"EOL char":{"values":{"\\n":1}},"Number of newlines at EOF":{"values":{"1":1}},"PHP closing tag at end of PHP-only file":{"values":{"no":1}},"Line length":{"values":{"80 or less":15,"81-120":3}},"Line indent":{"values":{"spaces":12}},"PHP keyword case":{"values":{"lower":17}},"Multiple statements on same line":{"values":{"no":5}},"One class per file":{"values":{"yes":1}},"Class defined in namespace":{"values":{"yes":1}},"PascalCase class name":{"values":{"yes":1}},"Class opening brace placement":{"values":{"new line":1}},"CamelCase method name":{"values":{"yes":3}},"Function opening brace placement":{"values":{"new line":3}}},"errorCount":0,"warningCount":0,"fixableCount":0,"numTokens":156},"\/home\/carlos\/Projects\/desired-patterns\/src\/Specifications\/Composite\/NotSpecification.php":{"hash":"2cc4683d1411686245458c2cf76d1c8733204","errors":[],"warnings":[],"metrics":{"Declarations and side effects mixed":{"values":{"no":1}},"PHP short open tag used":{"values":{"no":1}},"EOL char":{"values":{"\\n":1}},"Number of newlines at EOF":{"values":{"1":1}},"PHP closing tag at end of PHP-only file":{"values":{"no":1}},"Line length":{"values":{"80 or less":15}},"Line indent":{"values":{"spaces":8}},"PHP keyword case":{"values":{"lower":11}},"Multiple statements on same line":{"values":{"no":4}},"One class per file":{"values":{"yes":1}},"Class defined in namespace":{"values":{"yes":1}},"PascalCase class name":{"values":{"yes":1}},"Class opening brace placement":{"values":{"new line":1}},"CamelCase method name":{"values":{"yes":1}},"PHP type case":{"values":{"lower":2}},"Function opening brace placement":{"values":{"new line":1}}},"errorCount":0,"warningCount":0,"fixableCount":0,"numTokens":102},"\/home\/carlos\/Projects\/desired-patterns\/src\/Specifications\/Composite\/OrSpecification.php":{"hash":"e853be11e3840f3f6a9fc2aff418cfda33204","errors":[],"warnings":[],"metrics":{"Declarations and side effects mixed":{"values":{"no":1}},"PHP short open tag used":{"values":{"no":1}},"EOL char":{"values":{"\\n":1}},"Number of newlines at EOF":{"values":{"1":1}},"PHP closing tag at end of PHP-only file":{"values":{"no":1}},"Line length":{"values":{"80 or less":15,"81-120":1}},"Line indent":{"values":{"spaces":9}},"PHP keyword case":{"values":{"lower":12}},"Multiple statements on same line":{"values":{"no":4}},"One class per file":{"values":{"yes":1}},"Class defined in namespace":{"values":{"yes":1}},"PascalCase class name":{"values":{"yes":1}},"Class opening brace placement":{"values":{"new line":1}},"CamelCase method name":{"values":{"yes":1}},"PHP type case":{"values":{"lower":2}},"Function opening brace placement":{"values":{"new line":1}}},"errorCount":0,"warningCount":0,"fixableCount":0,"numTokens":120},"\/home\/carlos\/Projects\/desired-patterns\/src\/Contracts\/CommandContract.php":{"hash":"ce112220cbf33cf8cd3b5ee27ab7353c33188","errors":[],"warnings":[],"metrics":{"Declarations and side effects mixed":{"values":{"no":1}},"PHP short open tag used":{"values":{"no":1}},"EOL char":{"values":{"\\n":1}},"Number of newlines at EOF":{"values":{"1":1}},"PHP closing tag at end of PHP-only file":{"values":{"no":1}},"Line length":{"values":{"80 or less":15}},"Line indent":{"values":{"spaces":10}},"PHP keyword case":{"values":{"lower":6}},"Multiple statements on same line":{"values":{"no":3}},"One class per file":{"values":{"yes":1}},"Class defined in namespace":{"values":{"yes":1}},"PascalCase class name":{"values":{"yes":1}},"Class opening brace placement":{"values":{"new line":1}},"CamelCase method name":{"values":{"yes":2}},"PHP type case":{"values":{"lower":2}}},"errorCount":0,"warningCount":0,"fixableCount":0,"numTokens":77},"\/home\/carlos\/Projects\/desired-patterns\/src\/Specifications\/Composite\/AndSpecification.php":{"hash":"e9463948eefca3fcbf363703a0ebb7a833204","errors":[],"warnings":[],"metrics":{"Declarations and side effects mixed":{"values":{"no":1}},"PHP short open tag used":{"values":{"no":1}},"EOL char":{"values":{"\\n":1}},"Number of newlines at EOF":{"values":{"1":1}},"PHP closing tag at end of PHP-only file":{"values":{"no":1}},"Line length":{"values":{"80 or less":15,"81-120":1}},"Line indent":{"values":{"spaces":9}},"PHP keyword case":{"values":{"lower":12}},"Multiple statements on same line":{"values":{"no":4}},"One class per file":{"values":{"yes":1}},"Class defined in namespace":{"values":{"yes":1}},"PascalCase class name":{"values":{"yes":1}},"Class opening brace placement":{"values":{"new line":1}},"CamelCase method name":{"values":{"yes":1}},"PHP type case":{"values":{"lower":2}},"Function opening brace placement":{"values":{"new line":1}}},"errorCount":0,"warningCount":0,"fixableCount":0,"numTokens":120},"\/home\/carlos\/Projects\/desired-patterns\/src\/Contracts\/ServiceContract.php":{"hash":"dfa6698ad2d2eed691ac86d3e2d5e80533204","errors":[],"warnings":[],"metrics":{"Declarations and side effects mixed":{"values":{"no":1}},"PHP short open tag used":{"values":{"no":1}},"EOL char":{"values":{"\\n":1}},"Number of newlines at EOF":{"values":{"1":1}},"PHP closing tag at end of PHP-only file":{"values":{"no":1}},"Line length":{"values":{"80 or less":6}},"Line indent":{"values":{"spaces":1}},"PHP keyword case":{"values":{"lower":4}},"Multiple statements on same line":{"values":{"no":2}},"One class per file":{"values":{"yes":1}},"Class defined in namespace":{"values":{"yes":1}},"PascalCase class name":{"values":{"yes":1}},"Class opening brace placement":{"values":{"new line":1}},"CamelCase method name":{"values":{"yes":1}},"PHP type case":{"values":{"lower":1}}},"errorCount":0,"warningCount":0,"fixableCount":0,"numTokens":31},"\/home\/carlos\/Projects\/desired-patterns\/src\/Contracts\/ServiceProviderContract.php":{"hash":"5c55c8ef666eae07b5b8e5cea69a2fb133204","errors":[],"warnings":[],"metrics":{"Declarations and side effects mixed":{"values":{"no":1}},"PHP short open tag used":{"values":{"no":1}},"EOL char":{"values":{"\\n":1}},"Number of newlines at EOF":{"values":{"1":1}},"PHP closing tag at end of PHP-only file":{"values":{"no":1}},"Line length":{"values":{"80 or less":14}},"Line indent":{"values":{"spaces":8}},"PHP keyword case":{"values":{"lower":7}},"Multiple statements on same line":{"values":{"no":4}},"One class per file":{"values":{"yes":1}},"Class defined in namespace":{"values":{"yes":1}},"PascalCase class name":{"values":{"yes":1}},"Class opening brace placement":{"values":{"new line":1}},"CamelCase method name":{"values":{"yes":2}},"PHP type case":{"values":{"lower":3}}},"errorCount":0,"warningCount":0,"fixableCount":0,"numTokens":83},"\/home\/carlos\/Projects\/desired-patterns\/src\/Contracts\/CommandBusContract.php":{"hash":"2b84057eb6279d9a8aa3386d9afdc8c033188","errors":[],"warnings":[],"metrics":{"Declarations and side effects mixed":{"values":{"no":1}},"PHP short open tag used":{"values":{"no":1}},"EOL char":{"values":{"\\n":1}},"Number of newlines at EOF":{"values":{"1":1}},"PHP closing tag at end of PHP-only file":{"values":{"no":1}},"Line length":{"values":{"80 or less":19,"81-120":1}},"Line indent":{"values":{"spaces":15}},"PHP keyword case":{"values":{"lower":7}},"Multiple statements on same line":{"values":{"no":3}},"One class per file":{"values":{"yes":1}},"Class defined in namespace":{"values":{"yes":1}},"PascalCase class name":{"values":{"yes":1}},"Class opening brace placement":{"values":{"new line":1}},"CamelCase method name":{"values":{"yes":2}},"PHP type case":{"values":{"lower":3}}},"errorCount":0,"warningCount":0,"fixableCount":0,"numTokens":119},"\/home\/carlos\/Projects\/desired-patterns\/src\/Contracts\/CommandHandlerContract.php":{"hash":"d0fd6fb99a7f48530fd81513eaa7fce133188","errors":[],"warnings":[],"metrics":{"Declarations and side effects mixed":{"values":{"no":1}},"PHP short open tag used":{"values":{"no":1}},"EOL char":{"values":{"\\n":1}},"Number of newlines at EOF":{"values":{"1":1}},"PHP closing tag at end of PHP-only file":{"values":{"no":1}},"Line length":{"values":{"80 or less":13}},"Line indent":{"values":{"spaces":8}},"PHP keyword case":{"values":{"lower":4}},"Multiple statements on same line":{"values":{"no":2}},"One class per file":{"values":{"yes":1}},"Class defined in namespace":{"values":{"yes":1}},"PascalCase class name":{"values":{"yes":1}},"Class opening brace placement":{"values":{"new line":1}},"CamelCase method name":{"values":{"yes":1}},"PHP type case":{"values":{"lower":1}}},"errorCount":0,"warningCount":0,"fixableCount":0,"numTokens":69},"\/home\/carlos\/Projects\/desired-patterns\/src\/Contracts\/SpecificationContract.php":{"hash":"bc6648818e8380c97d3e04134b1d35f733204","errors":[],"warnings":[],"metrics":{"Declarations and side effects mixed":{"values":{"no":1}},"PHP short open tag used":{"values":{"no":1}},"EOL char":{"values":{"\\n":1}},"Number of newlines at EOF":{"values":{"1":1}},"PHP closing tag at end of PHP-only file":{"values":{"no":1}},"Line length":{"values":{"80 or less":21}},"Line indent":{"values":{"spaces":16}},"PHP keyword case":{"values":{"lower":15}},"Multiple statements on same line":{"values":{"no":5}},"One class per file":{"values":{"yes":1}},"Class defined in namespace":{"values":{"yes":1}},"PascalCase class name":{"values":{"yes":1}},"Class opening brace placement":{"values":{"new line":1}},"CamelCase method name":{"values":{"yes":4}},"PHP type case":{"values":{"lower":7}}},"errorCount":0,"warningCount":0,"fixableCount":0,"numTokens":126},"\/home\/carlos\/Projects\/desired-patterns\/src\/ServiceLocator\/ServiceLocator.php":{"hash":"23799f0e55c93d4e2a4570b39c76715b33188","errors":[],"warnings":[],"metrics":{"Declarations and side effects mixed":{"values":{"no":1}},"PHP short open tag used":{"values":{"no":1}},"EOL char":{"values":{"\\n":1}},"Number of newlines at EOF":{"values":{"1":1}},"PHP closing tag at end of PHP-only file":{"values":{"no":1}},"Line length":{"values":{"80 or less":92,"81-120":3}},"Line indent":{"values":{"spaces":83}},"PHP keyword case":{"values":{"lower":44}},"Multiple statements on same line":{"values":{"no":21}},"One class per file":{"values":{"yes":1}},"Class defined in namespace":{"values":{"yes":1}},"PascalCase class name":{"values":{"yes":1}},"Class opening brace placement":{"values":{"new line":1}},"PHP type case":{"values":{"lower":16}},"CamelCase method name":{"values":{"yes":6}},"Function opening brace placement":{"values":{"new line":6}},"Spaces after control structure open parenthesis":{"values":[6]},"Spaces before control structure close parenthesis":{"values":[6]},"Blank lines at start of control structure":{"values":[6]},"Blank lines at end of control structure":{"values":[6]},"Control structure defined inline":{"values":{"no":6}},"PHP constant case":{"values":{"lower":3}},"Closure opening brace placement":{"values":{"same line":1}}},"errorCount":0,"warningCount":0,"fixableCount":0,"numTokens":690}} \ No newline at end of file +{"config":{"phpVersion":80226,"phpExtensions":"6444a8d24aa127a4fe13989038fc4447","tabWidth":4,"encoding":"utf-8","recordErrors":true,"annotations":true,"configData":[],"codeHash":"34c672b1930e0760c14766ee1e79c81f","rulesetHash":"670f8348153700c3a70fc6127ca0e484"},"\/home\/carlos\/Projects\/desired-patterns\/src\/Commands\/AbstractCommandHandler.php":{"hash":"c5f8bb6e91557bee33e1c09a2b05c21233204","errors":[],"warnings":[],"metrics":{"Declarations and side effects mixed":{"values":{"no":1}},"PHP short open tag used":{"values":{"no":1}},"EOL char":{"values":{"\\n":1}},"Number of newlines at EOF":{"values":{"1":1}},"PHP closing tag at end of PHP-only file":{"values":{"no":1}},"Line length":{"values":{"80 or less":35}},"Line indent":{"values":{"spaces":28}},"PHP keyword case":{"values":{"lower":19}},"Multiple statements on same line":{"values":{"no":7}},"One class per file":{"values":{"yes":1}},"Class defined in namespace":{"values":{"yes":1}},"PascalCase class name":{"values":{"yes":1}},"Class opening brace placement":{"values":{"new line":1}},"CamelCase method name":{"values":{"yes":3}},"PHP type case":{"values":{"lower":3}},"Function opening brace placement":{"values":{"new line":1}},"Spaces after control structure open parenthesis":{"values":[1]},"Spaces before control structure close parenthesis":{"values":[1]},"Blank lines at start of control structure":{"values":[1]},"Blank lines at end of control structure":{"values":[1]},"Control structure defined inline":{"values":{"no":1}}},"errorCount":0,"warningCount":0,"fixableCount":0,"numTokens":236},"\/home\/carlos\/Projects\/desired-patterns\/src\/Commands\/AbstractCommand.php":{"hash":"df72723a0f3b315eeff6bb1eb5d230ce33204","errors":[],"warnings":[],"metrics":{"Declarations and side effects mixed":{"values":{"no":1}},"PHP short open tag used":{"values":{"no":1}},"EOL char":{"values":{"\\n":1}},"Number of newlines at EOF":{"values":{"1":1}},"PHP closing tag at end of PHP-only file":{"values":{"no":1}},"Line length":{"values":{"80 or less":38,"81-120":2}},"Line indent":{"values":{"spaces":27}},"PHP keyword case":{"values":{"lower":16}},"Multiple statements on same line":{"values":{"no":4}},"One class per file":{"values":{"yes":1}},"Class defined in namespace":{"values":{"yes":1}},"PascalCase class name":{"values":{"yes":1}},"Class opening brace placement":{"values":{"new line":1}},"PHP type case":{"values":{"lower":3}},"CamelCase method name":{"values":{"yes":2}},"Function opening brace placement":{"values":{"new line":2}}},"errorCount":0,"warningCount":0,"fixableCount":0,"numTokens":209},"\/home\/carlos\/Projects\/desired-patterns\/src\/Registry\/Registry.php":{"hash":"64723635722c9e036c4a8599088ae3d233204","errors":[],"warnings":[],"metrics":{"Declarations and side effects mixed":{"values":{"no":1}},"PHP short open tag used":{"values":{"no":1}},"EOL char":{"values":{"\\n":1}},"Number of newlines at EOF":{"values":{"1":1}},"PHP closing tag at end of PHP-only file":{"values":{"no":1}},"Line length":{"values":{"80 or less":71,"81-120":1}},"Line indent":{"values":{"spaces":61}},"PHP keyword case":{"values":{"lower":42}},"Multiple statements on same line":{"values":{"no":10}},"One class per file":{"values":{"yes":1}},"Class defined in namespace":{"values":{"yes":1}},"PascalCase class name":{"values":{"yes":1}},"Class opening brace placement":{"values":{"new line":1}},"PHP type case":{"values":{"lower":13}},"Function opening brace placement":{"values":{"new line":8}},"CamelCase method name":{"values":{"yes":7}},"Spaces after control structure open parenthesis":{"values":[1]},"Spaces before control structure close parenthesis":{"values":[1]},"Blank lines at start of control structure":{"values":[1]},"Blank lines at end of control structure":{"values":[1]},"Control structure defined inline":{"values":{"no":1}}},"errorCount":0,"warningCount":0,"fixableCount":0,"numTokens":448},"\/home\/carlos\/Projects\/desired-patterns\/src\/Traits\/Singleton.php":{"hash":"e47ed994e71d65fc7badc8563f7324cb33204","errors":[],"warnings":[],"metrics":{"Declarations and side effects mixed":{"values":{"no":1}},"PHP short open tag used":{"values":{"no":1}},"EOL char":{"values":{"\\n":1}},"Number of newlines at EOF":{"values":{"1":1}},"PHP closing tag at end of PHP-only file":{"values":{"no":1}},"Line length":{"values":{"80 or less":53}},"Line indent":{"values":{"spaces":48}},"PHP keyword case":{"values":{"lower":28}},"Multiple statements on same line":{"values":{"no":6}},"One class per file":{"values":{"yes":1}},"Class defined in namespace":{"values":{"yes":1}},"PascalCase class name":{"values":{"yes":1}},"Class opening brace placement":{"values":{"new line":1}},"PHP type case":{"values":{"lower":5}},"PHP constant case":{"values":{"lower":1}},"Function opening brace placement":{"values":{"new line":5}},"CamelCase method name":{"values":{"yes":1}}},"errorCount":0,"warningCount":0,"fixableCount":0,"numTokens":285},"\/home\/carlos\/Projects\/desired-patterns\/src\/Traits\/Multiton.php":{"hash":"61e7b1daef195722dce2ac0d3ff82a3433204","errors":[],"warnings":[],"metrics":{"Declarations and side effects mixed":{"values":{"no":1}},"PHP short open tag used":{"values":{"no":1}},"EOL char":{"values":{"\\n":1}},"Number of newlines at EOF":{"values":{"1":1}},"PHP closing tag at end of PHP-only file":{"values":{"no":1}},"Line length":{"values":{"80 or less":73}},"Line indent":{"values":{"spaces":68}},"PHP keyword case":{"values":{"lower":46}},"Multiple statements on same line":{"values":{"no":9}},"One class per file":{"values":{"yes":1}},"Class defined in namespace":{"values":{"yes":1}},"PascalCase class name":{"values":{"yes":1}},"Class opening brace placement":{"values":{"new line":1}},"PHP type case":{"values":{"lower":11}},"Function opening brace placement":{"values":{"new line":8}},"CamelCase method name":{"values":{"yes":4}}},"errorCount":0,"warningCount":0,"fixableCount":0,"numTokens":432},"\/home\/carlos\/Projects\/desired-patterns\/src\/Traits\/CommandHandlerTrait.php":{"hash":"6f731a665700a7be63c9d82e0a30101b33204","errors":[],"warnings":[],"metrics":{"Declarations and side effects mixed":{"values":{"no":1}},"PHP short open tag used":{"values":{"no":1}},"EOL char":{"values":{"\\n":1}},"Number of newlines at EOF":{"values":{"1":1}},"PHP closing tag at end of PHP-only file":{"values":{"no":1}},"Line length":{"values":{"80 or less":22}},"Line indent":{"values":{"spaces":16}},"PHP keyword case":{"values":{"lower":10}},"Multiple statements on same line":{"values":{"no":5}},"One class per file":{"values":{"yes":1}},"Class defined in namespace":{"values":{"yes":1}},"PascalCase class name":{"values":{"yes":1}},"Class opening brace placement":{"values":{"new line":1}},"CamelCase method name":{"values":{"yes":2}},"PHP type case":{"values":{"lower":2}},"Function opening brace placement":{"values":{"new line":1}}},"errorCount":0,"warningCount":0,"fixableCount":0,"numTokens":129},"\/home\/carlos\/Projects\/desired-patterns\/src\/Specifications\/AbstractSpecification.php":{"hash":"bbce859bd896c5ca04fd4d18de46b2c333204","errors":[],"warnings":[],"metrics":{"Declarations and side effects mixed":{"values":{"no":1}},"PHP short open tag used":{"values":{"no":1}},"EOL char":{"values":{"\\n":1}},"Number of newlines at EOF":{"values":{"1":1}},"PHP closing tag at end of PHP-only file":{"values":{"no":1}},"Line length":{"values":{"80 or less":35,"81-120":8}},"Line indent":{"values":{"spaces":29}},"PHP keyword case":{"values":{"lower":17}},"Multiple statements on same line":{"values":{"no":5}},"One class per file":{"values":{"yes":1}},"Class defined in namespace":{"values":{"yes":1}},"PascalCase class name":{"values":{"yes":1}},"Class opening brace placement":{"values":{"new line":1}},"CamelCase method name":{"values":{"yes":3}},"Function opening brace placement":{"values":{"new line":3}}},"errorCount":0,"warningCount":0,"fixableCount":0,"numTokens":266},"\/home\/carlos\/Projects\/desired-patterns\/src\/Specifications\/Composite\/NotSpecification.php":{"hash":"32a15b981eecb72f15e1f8956f317ce433204","errors":[],"warnings":[],"metrics":{"Declarations and side effects mixed":{"values":{"no":1}},"PHP short open tag used":{"values":{"no":1}},"EOL char":{"values":{"\\n":1}},"Number of newlines at EOF":{"values":{"1":1}},"PHP closing tag at end of PHP-only file":{"values":{"no":1}},"Line length":{"values":{"80 or less":30,"81-120":2}},"Line indent":{"values":{"spaces":19}},"PHP keyword case":{"values":{"lower":11}},"Multiple statements on same line":{"values":{"no":4}},"One class per file":{"values":{"yes":1}},"Class defined in namespace":{"values":{"yes":1}},"PascalCase class name":{"values":{"yes":1}},"Class opening brace placement":{"values":{"new line":1}},"CamelCase method name":{"values":{"yes":1}},"PHP type case":{"values":{"lower":2}},"Function opening brace placement":{"values":{"new line":1}}},"errorCount":0,"warningCount":0,"fixableCount":0,"numTokens":174},"\/home\/carlos\/Projects\/desired-patterns\/src\/Specifications\/Composite\/OrSpecification.php":{"hash":"ac04274d7cad15985b1b11d54e93e72a33204","errors":[],"warnings":[],"metrics":{"Declarations and side effects mixed":{"values":{"no":1}},"PHP short open tag used":{"values":{"no":1}},"EOL char":{"values":{"\\n":1}},"Number of newlines at EOF":{"values":{"1":1}},"PHP closing tag at end of PHP-only file":{"values":{"no":1}},"Line length":{"values":{"80 or less":30,"81-120":3}},"Line indent":{"values":{"spaces":21}},"PHP keyword case":{"values":{"lower":12}},"Multiple statements on same line":{"values":{"no":4}},"One class per file":{"values":{"yes":1}},"Class defined in namespace":{"values":{"yes":1}},"PascalCase class name":{"values":{"yes":1}},"Class opening brace placement":{"values":{"new line":1}},"CamelCase method name":{"values":{"yes":1}},"PHP type case":{"values":{"lower":2}},"Function opening brace placement":{"values":{"new line":1}}},"errorCount":0,"warningCount":0,"fixableCount":0,"numTokens":194},"\/home\/carlos\/Projects\/desired-patterns\/src\/Contracts\/CommandContract.php":{"hash":"ce112220cbf33cf8cd3b5ee27ab7353c33204","errors":[],"warnings":[],"metrics":{"Declarations and side effects mixed":{"values":{"no":1}},"PHP short open tag used":{"values":{"no":1}},"EOL char":{"values":{"\\n":1}},"Number of newlines at EOF":{"values":{"1":1}},"PHP closing tag at end of PHP-only file":{"values":{"no":1}},"Line length":{"values":{"80 or less":15}},"Line indent":{"values":{"spaces":10}},"PHP keyword case":{"values":{"lower":6}},"Multiple statements on same line":{"values":{"no":3}},"One class per file":{"values":{"yes":1}},"Class defined in namespace":{"values":{"yes":1}},"PascalCase class name":{"values":{"yes":1}},"Class opening brace placement":{"values":{"new line":1}},"CamelCase method name":{"values":{"yes":2}},"PHP type case":{"values":{"lower":2}}},"errorCount":0,"warningCount":0,"fixableCount":0,"numTokens":77},"\/home\/carlos\/Projects\/desired-patterns\/src\/Specifications\/Composite\/AndSpecification.php":{"hash":"152e03a50e9f983e2d73b7329ee3b18533204","errors":[],"warnings":[],"metrics":{"Declarations and side effects mixed":{"values":{"no":1}},"PHP short open tag used":{"values":{"no":1}},"EOL char":{"values":{"\\n":1}},"Number of newlines at EOF":{"values":{"1":1}},"PHP closing tag at end of PHP-only file":{"values":{"no":1}},"Line length":{"values":{"80 or less":30,"81-120":3}},"Line indent":{"values":{"spaces":21}},"PHP keyword case":{"values":{"lower":12}},"Multiple statements on same line":{"values":{"no":4}},"One class per file":{"values":{"yes":1}},"Class defined in namespace":{"values":{"yes":1}},"PascalCase class name":{"values":{"yes":1}},"Class opening brace placement":{"values":{"new line":1}},"CamelCase method name":{"values":{"yes":1}},"PHP type case":{"values":{"lower":2}},"Function opening brace placement":{"values":{"new line":1}}},"errorCount":0,"warningCount":0,"fixableCount":0,"numTokens":194},"\/home\/carlos\/Projects\/desired-patterns\/src\/Contracts\/ServiceContract.php":{"hash":"3702d5a96746493c56d606009918749833204","errors":[],"warnings":[],"metrics":{"Declarations and side effects mixed":{"values":{"no":1}},"PHP short open tag used":{"values":{"no":1}},"EOL char":{"values":{"\\n":1}},"Number of newlines at EOF":{"values":{"1":1}},"PHP closing tag at end of PHP-only file":{"values":{"no":1}},"Line length":{"values":{"80 or less":11}},"Line indent":{"values":{"spaces":1}},"PHP keyword case":{"values":{"lower":4}},"Multiple statements on same line":{"values":{"no":2}},"One class per file":{"values":{"yes":1}},"Class defined in namespace":{"values":{"yes":1}},"PascalCase class name":{"values":{"yes":1}},"Class opening brace placement":{"values":{"new line":1}},"CamelCase method name":{"values":{"yes":1}},"PHP type case":{"values":{"lower":1}}},"errorCount":0,"warningCount":0,"fixableCount":0,"numTokens":49},"\/home\/carlos\/Projects\/desired-patterns\/src\/Contracts\/ServiceProviderContract.php":{"hash":"5c55c8ef666eae07b5b8e5cea69a2fb133204","errors":[],"warnings":[],"metrics":{"Declarations and side effects mixed":{"values":{"no":1}},"PHP short open tag used":{"values":{"no":1}},"EOL char":{"values":{"\\n":1}},"Number of newlines at EOF":{"values":{"1":1}},"PHP closing tag at end of PHP-only file":{"values":{"no":1}},"Line length":{"values":{"80 or less":14}},"Line indent":{"values":{"spaces":8}},"PHP keyword case":{"values":{"lower":7}},"Multiple statements on same line":{"values":{"no":4}},"One class per file":{"values":{"yes":1}},"Class defined in namespace":{"values":{"yes":1}},"PascalCase class name":{"values":{"yes":1}},"Class opening brace placement":{"values":{"new line":1}},"CamelCase method name":{"values":{"yes":2}},"PHP type case":{"values":{"lower":3}}},"errorCount":0,"warningCount":0,"fixableCount":0,"numTokens":83},"\/home\/carlos\/Projects\/desired-patterns\/src\/Contracts\/CommandBusContract.php":{"hash":"2b84057eb6279d9a8aa3386d9afdc8c033204","errors":[],"warnings":[],"metrics":{"Declarations and side effects mixed":{"values":{"no":1}},"PHP short open tag used":{"values":{"no":1}},"EOL char":{"values":{"\\n":1}},"Number of newlines at EOF":{"values":{"1":1}},"PHP closing tag at end of PHP-only file":{"values":{"no":1}},"Line length":{"values":{"80 or less":19,"81-120":1}},"Line indent":{"values":{"spaces":15}},"PHP keyword case":{"values":{"lower":7}},"Multiple statements on same line":{"values":{"no":3}},"One class per file":{"values":{"yes":1}},"Class defined in namespace":{"values":{"yes":1}},"PascalCase class name":{"values":{"yes":1}},"Class opening brace placement":{"values":{"new line":1}},"CamelCase method name":{"values":{"yes":2}},"PHP type case":{"values":{"lower":3}}},"errorCount":0,"warningCount":0,"fixableCount":0,"numTokens":119},"\/home\/carlos\/Projects\/desired-patterns\/src\/Contracts\/CommandHandlerContract.php":{"hash":"d0fd6fb99a7f48530fd81513eaa7fce133204","errors":[],"warnings":[],"metrics":{"Declarations and side effects mixed":{"values":{"no":1}},"PHP short open tag used":{"values":{"no":1}},"EOL char":{"values":{"\\n":1}},"Number of newlines at EOF":{"values":{"1":1}},"PHP closing tag at end of PHP-only file":{"values":{"no":1}},"Line length":{"values":{"80 or less":13}},"Line indent":{"values":{"spaces":8}},"PHP keyword case":{"values":{"lower":4}},"Multiple statements on same line":{"values":{"no":2}},"One class per file":{"values":{"yes":1}},"Class defined in namespace":{"values":{"yes":1}},"PascalCase class name":{"values":{"yes":1}},"Class opening brace placement":{"values":{"new line":1}},"CamelCase method name":{"values":{"yes":1}},"PHP type case":{"values":{"lower":1}}},"errorCount":0,"warningCount":0,"fixableCount":0,"numTokens":69},"\/home\/carlos\/Projects\/desired-patterns\/src\/Contracts\/SpecificationContract.php":{"hash":"bc6648818e8380c97d3e04134b1d35f733204","errors":[],"warnings":[],"metrics":{"Declarations and side effects mixed":{"values":{"no":1}},"PHP short open tag used":{"values":{"no":1}},"EOL char":{"values":{"\\n":1}},"Number of newlines at EOF":{"values":{"1":1}},"PHP closing tag at end of PHP-only file":{"values":{"no":1}},"Line length":{"values":{"80 or less":21}},"Line indent":{"values":{"spaces":16}},"PHP keyword case":{"values":{"lower":15}},"Multiple statements on same line":{"values":{"no":5}},"One class per file":{"values":{"yes":1}},"Class defined in namespace":{"values":{"yes":1}},"PascalCase class name":{"values":{"yes":1}},"Class opening brace placement":{"values":{"new line":1}},"CamelCase method name":{"values":{"yes":4}},"PHP type case":{"values":{"lower":7}}},"errorCount":0,"warningCount":0,"fixableCount":0,"numTokens":126},"\/home\/carlos\/Projects\/desired-patterns\/src\/ServiceLocator\/ServiceLocator.php":{"hash":"23799f0e55c93d4e2a4570b39c76715b33204","errors":[],"warnings":[],"metrics":{"Declarations and side effects mixed":{"values":{"no":1}},"PHP short open tag used":{"values":{"no":1}},"EOL char":{"values":{"\\n":1}},"Number of newlines at EOF":{"values":{"1":1}},"PHP closing tag at end of PHP-only file":{"values":{"no":1}},"Line length":{"values":{"80 or less":92,"81-120":3}},"Line indent":{"values":{"spaces":83}},"PHP keyword case":{"values":{"lower":44}},"Multiple statements on same line":{"values":{"no":21}},"One class per file":{"values":{"yes":1}},"Class defined in namespace":{"values":{"yes":1}},"PascalCase class name":{"values":{"yes":1}},"Class opening brace placement":{"values":{"new line":1}},"PHP type case":{"values":{"lower":16}},"CamelCase method name":{"values":{"yes":6}},"Function opening brace placement":{"values":{"new line":6}},"Spaces after control structure open parenthesis":{"values":[6]},"Spaces before control structure close parenthesis":{"values":[6]},"Blank lines at start of control structure":{"values":[6]},"Blank lines at end of control structure":{"values":[6]},"Control structure defined inline":{"values":{"no":6}},"PHP constant case":{"values":{"lower":3}},"Closure opening brace placement":{"values":{"same line":1}}},"errorCount":0,"warningCount":0,"fixableCount":0,"numTokens":690},"\/home\/carlos\/Projects\/desired-patterns\/src\/Chain\/AbstractHandler.php":{"hash":"44ce11fa4f8d1f8044b2f56a40830e8e33204","errors":[],"warnings":[],"metrics":{"Declarations and side effects mixed":{"values":{"no":1}},"PHP short open tag used":{"values":{"no":1}},"EOL char":{"values":{"\\n":1}},"Number of newlines at EOF":{"values":{"1":1}},"PHP closing tag at end of PHP-only file":{"values":{"no":1}},"Line length":{"values":{"80 or less":59,"81-120":1}},"Line indent":{"values":{"spaces":47}},"PHP keyword case":{"values":{"lower":21}},"Multiple statements on same line":{"values":{"no":9}},"One class per file":{"values":{"yes":1}},"Class defined in namespace":{"values":{"yes":1}},"PascalCase class name":{"values":{"yes":1}},"Class opening brace placement":{"values":{"new line":1}},"CamelCase method name":{"values":{"yes":4}},"Function opening brace placement":{"values":{"new line":4}},"Spaces after control structure open parenthesis":{"values":[1]},"Spaces before control structure close parenthesis":{"values":[1]},"Blank lines at start of control structure":{"values":[1]},"Blank lines at end of control structure":{"values":[1]},"Control structure defined inline":{"values":{"no":1}},"PHP type case":{"values":{"lower":1}},"PHP constant case":{"values":{"lower":1}}},"errorCount":0,"warningCount":0,"fixableCount":0,"numTokens":348},"\/home\/carlos\/Projects\/desired-patterns\/src\/Contracts\/HandlerInterface.php":{"hash":"9ef458455df4e1bcef6b3c04db5b3ffb33204","errors":[],"warnings":[],"metrics":{"Declarations and side effects mixed":{"values":{"no":1}},"PHP short open tag used":{"values":{"no":1}},"EOL char":{"values":{"\\n":1}},"Number of newlines at EOF":{"values":{"1":1}},"PHP closing tag at end of PHP-only file":{"values":{"no":1}},"Line length":{"values":{"80 or less":12,"81-120":1}},"Line indent":{"values":{"spaces":2}},"PHP keyword case":{"values":{"lower":6}},"Multiple statements on same line":{"values":{"no":3}},"One class per file":{"values":{"yes":1}},"Class defined in namespace":{"values":{"yes":1}},"PascalCase class name":{"values":{"yes":1}},"Class opening brace placement":{"values":{"new line":1}},"CamelCase method name":{"values":{"yes":2}}},"errorCount":0,"warningCount":0,"fixableCount":0,"numTokens":68}} \ No newline at end of file diff --git a/src/Chain/AbstractHandler.php b/src/Chain/AbstractHandler.php index 2f43841..b1962cf 100644 --- a/src/Chain/AbstractHandler.php +++ b/src/Chain/AbstractHandler.php @@ -6,7 +6,7 @@ /** * Abstract base class for implementing the Chain of Responsibility pattern. - * + * * This class provides the basic structure for handling requests through a chain * of handler objects. Each handler decides either to process the request or * to pass it along the chain. @@ -40,7 +40,7 @@ public function handle($request) if ($this->nextHandler) { return $this->nextHandler->handle($request); } - + throw new \Exception( sprintf('No handler found for request: %s', json_encode($request)) ); diff --git a/src/Contracts/HandlerInterface.php b/src/Contracts/HandlerInterface.php index 464e450..d036aab 100644 --- a/src/Contracts/HandlerInterface.php +++ b/src/Contracts/HandlerInterface.php @@ -4,7 +4,7 @@ /** * Interface for handling requests in the Chain of Responsibility pattern. - * + * * This interface defines the methods that all concrete handlers must implement, * allowing them to set the next handler in the chain and to process incoming requests. */