Completed
Push — 5.0 ( d49403...9430f0 )
by Marc André
01:47
created
src/Interfaces/SingletonInterface.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -42,5 +42,8 @@
 block discarded – undo
42 42
  */
43 43
 interface SingletonInterface
44 44
 {
45
+    /**
46
+     * @return void
47
+     */
45 48
     public function __construct(Context $context);
46 49
 }
Please login to merge, or discard this patch.
src/Router.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -187,7 +187,7 @@
 block discarded – undo
187 187
     /**
188 188
      * Add a new route.
189 189
      *
190
-     * @param string|string[] $http_method The HTTP method, example: GET, HEAD, POST, PATCH, PUT, DELETE, CLI, etc. Can be an array of values.
190
+     * @param string $http_method The HTTP method, example: GET, HEAD, POST, PATCH, PUT, DELETE, CLI, etc. Can be an array of values.
191 191
      * @param string $route The route
192 192
      * @param string $controller_class The Controller's class
193 193
      * @param array $parameters The parameters to pass
Please login to merge, or discard this patch.
src/Core.php 1 patch
Braces   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -44,7 +44,8 @@
 block discarded – undo
44 44
 {
45 45
     private $context = null;
46 46
 
47
-    public function __construct(?BaseConfig $config = null) {
47
+    public function __construct(?BaseConfig $config = null)
48
+    {
48 49
         $this->context = new Context($config);
49 50
     }
50 51
 
Please login to merge, or discard this patch.
src/ModulesManager.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -53,7 +53,7 @@  discard block
 block discarded – undo
53 53
         $path = realpath($path);
54 54
         $path_len = strlen($path);
55 55
 
56
-        foreach (glob($path. \DIRECTORY_SEPARATOR . '*', \GLOB_NOSORT | \GLOB_NOESCAPE) as $file) {
56
+        foreach (glob($path . \DIRECTORY_SEPARATOR . '*', \GLOB_NOSORT | \GLOB_NOESCAPE) as $file) {
57 57
 
58 58
             if (is_dir($file)) {
59 59
                 $this->addVendor(substr($file, $path_len + 1), $file);
@@ -76,7 +76,7 @@  discard block
 block discarded – undo
76 76
     {
77 77
         $path_len = strlen($path);
78 78
 
79
-        foreach (glob($path. \DIRECTORY_SEPARATOR . '*', \GLOB_NOSORT | \GLOB_NOESCAPE) as $file) {
79
+        foreach (glob($path . \DIRECTORY_SEPARATOR . '*', \GLOB_NOSORT | \GLOB_NOESCAPE) as $file) {
80 80
 
81 81
             if (is_dir($file)) {
82 82
                 $this->addModule($vendor_name, substr($file, $path_len + 1), $file);
Please login to merge, or discard this patch.