Completed
Push — master ( 857ea9...f24760 )
by Fran
03:35
created
src/services/DocumentorService.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -30,7 +30,7 @@  discard block
 block discarded – undo
30 30
                         if (!preg_match('/^\@ROOT/i', $domain)) {
31 31
                             $modules[] = str_replace('/', '', str_replace('@', '', $domain));
32 32
                         }
33
-                    } catch (\Exception $e) {
33
+                    }catch (\Exception $e) {
34 34
                         $modules[] = $e->getMessage();
35 35
                     }
36 36
                 }
@@ -48,7 +48,7 @@  discard block
 block discarded – undo
48 48
          */
49 49
         public function extractApiEndpoints($module)
50 50
         {
51
-            $module_path = CORE_DIR . DIRECTORY_SEPARATOR . $module . DIRECTORY_SEPARATOR . "Api";
51
+            $module_path = CORE_DIR.DIRECTORY_SEPARATOR.$module.DIRECTORY_SEPARATOR."Api";
52 52
             $endpoints = [];
53 53
             if (file_exists($module_path)) {
54 54
                 $finder = new Finder();
@@ -56,7 +56,7 @@  discard block
 block discarded – undo
56 56
                 if (count($finder)) {
57 57
                     /** @var \SplFileInfo $file */
58 58
                     foreach ($finder as $file) {
59
-                        $namespace = "\\{$module}\\Api\\" . str_replace('.php', '', $file->getFilename());
59
+                        $namespace = "\\{$module}\\Api\\".str_replace('.php', '', $file->getFilename());
60 60
                         $endpoints[$namespace] = $this->extractApiInfo($namespace);
61 61
                     }
62 62
                 }
@@ -208,7 +208,7 @@  discard block
 block discarded – undo
208 208
                     $tableMap = $namespace::TABLE_MAP;
209 209
                     $fieldNames = $tableMap::getFieldNames();
210 210
                     if (count($fieldNames)) {
211
-                        foreach($fieldNames as $field) {
211
+                        foreach ($fieldNames as $field) {
212 212
                             $variable = $reflector->getProperty(strtolower($field));
213 213
                             $varDoc = $variable->getDocComment();
214 214
                             $payload[$field] = $this->extractVarType($varDoc);
Please login to merge, or discard this patch.