Skip to content
This repository was archived by the owner on Oct 20, 2025. It is now read-only.

Commit 3201a9c

Browse files
committed
Refactor namespaces and update workflow configurations
1 parent cc26fde commit 3201a9c

File tree

5 files changed

+21
-21
lines changed

5 files changed

+21
-21
lines changed

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Configure and Run Tests Before Release
1+
name: Release
22

33
on:
44
push:

.github/workflows/tests.yml

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Execute Tests
1+
name: Tests
22

33
on:
44
push:
@@ -63,11 +63,8 @@ jobs:
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 }}

src/Bootstrap/App.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@
33
/**
44
* Start the PhpSlides Application
55
*/
6-
(new \PhpSlides\Src\Foundation\Application())->create();
6+
(new \PhpSlides\Core\Foundation\Application())->create();

src/Cli/Configure.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?php declare(strict_types=1);
22

33

4-
namespace PhpSlides\Src\Cli;
4+
namespace PhpSlides\Core\Cli;
55

66
trait Configure
77
{

src/Controller/ClassController.php

Lines changed: 14 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
declare(strict_types=1);
44

5-
namespace PhpSlides\Src\Controller;
5+
namespace PhpSlides\Core\Controller;
66

77
use 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+
}

0 commit comments

Comments
 (0)