This repository was archived by the owner on Oct 20, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 5 files changed +21
-21
lines changed
Expand file tree Collapse file tree 5 files changed +21
-21
lines changed Original file line number Diff line number Diff line change 1- name : Configure and Run Tests Before Release
1+ name : Release
22
33on :
44 push :
Original file line number Diff line number Diff line change 1- name : Execute Tests
1+ name : Tests
22
33on :
44 push :
6363
6464 - name : Push changes to main
6565 run : |
66- git fetch origin main dev
67- git checkout main
68- git config pull.rebase false
69- git pull origin main
70- git merge origin/dev --allow-unrelated-histories --no-ff
71- git push origin main
66+ git checkout -b main
67+ git reset --hard dev
68+ git push -u -f origin main
7269 env :
7370 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
Original file line number Diff line number Diff line change 33/**
44 * Start the PhpSlides Application
55 */
6- (new \PhpSlides \Src \Foundation \Application ())->create ();
6+ (new \PhpSlides \Core \Foundation \Application ())->create ();
Original file line number Diff line number Diff line change 11<?php declare (strict_types=1 );
22
33
4- namespace PhpSlides \Src \Cli ;
4+ namespace PhpSlides \Core \Cli ;
55
66trait Configure
77{
Original file line number Diff line number Diff line change 22
33declare (strict_types=1 );
44
5- namespace PhpSlides \Src \Controller ;
5+ namespace PhpSlides \Core \Controller ;
66
77use PhpSlides \Exception ;
88
@@ -23,22 +23,25 @@ class ClassController extends Controller
2323 * @return mixed From class methods and __invoke function
2424 */
2525
26- protected static function __class (
27- object |string $ class ,
28- string $ method ,
29- array |null $ param = null ,
26+ protected static function __class (
27+ object |string $ class ,
28+ string $ method ,
29+ array |null $ param = null ,
3030 ) {
31- if (class_exists ($ class )) {
31+ if (class_exists ($ class ))
32+ {
3233 $ instance = new $ class ();
3334 $ class_info = [
34- 'method ' => $ method ,
35- 'class_name ' => $ class ,
36- 'class_methods ' => get_class_methods ($ instance ),
35+ 'method ' => $ method ,
36+ 'class_name ' => $ class ,
37+ 'class_methods ' => get_class_methods ($ instance ),
3738 ];
3839
3940 return self ::class_info ($ class_info , $ param );
40- } else {
41+ }
42+ else
43+ {
4144 throw new Exception ("No controller class found as - $ class " , 1 );
4245 }
4346 }
44- }
47+ }
You can’t perform that action at this time.
0 commit comments