Completed
Branch 0.x (6a23b0)
by Andrew
02:36
created
src/ModuleLoader.php 2 patches
Doc Comments   +18 added lines patch added patch discarded remove patch
@@ -86,6 +86,11 @@  discard block
 block discarded – undo
86 86
         $this->isResolved = true;
87 87
     }
88 88
 
89
+    /**
90
+     * @param ArrayIterator $modules
91
+     * @param ModuleInterface $module
92
+     * @param string $name
93
+     */
89 94
     protected function resolveRequire($modules, $module, $name)
90 95
     {
91 96
         $requiredModules = $module->require();
@@ -94,6 +99,11 @@  discard block
 block discarded – undo
94 99
         }
95 100
     }
96 101
 
102
+    /**
103
+     * @param ArrayIterator $modules
104
+     * @param ModuleInterface $module
105
+     * @param string $name
106
+     */
97 107
     protected function resolveRequireDev($modules, $module, $name)
98 108
     {
99 109
         if ($this->isDev) {
@@ -104,6 +114,10 @@  discard block
 block discarded – undo
104 114
         }
105 115
     }
106 116
 
117
+    /**
118
+     * @param ModuleInterface $module
119
+     * @param string $name
120
+     */
107 121
     protected function resolveConflict($module, $name)
108 122
     {
109 123
         $conflictingModules = $module->conflict();
@@ -115,6 +129,10 @@  discard block
 block discarded – undo
115 129
         }
116 130
     }
117 131
 
132
+    /**
133
+     * @param ModuleInterface $module
134
+     * @param string $name
135
+     */
118 136
     protected function resolveReplace($module, $name)
119 137
     {
120 138
         $replacesModules = $module->replace();
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -143,7 +143,7 @@
 block discarded – undo
143 143
             $module = new $module($this);
144 144
         }
145 145
 
146
-        if (! $module instanceof ModuleInterface) {
146
+        if (!$module instanceof ModuleInterface) {
147 147
             throw new \InvalidArgumentException(
148 148
                 'Modules must implement ModuleInterface'
149 149
             );
Please login to merge, or discard this patch.