Completed
Branch master (5ee980)
by Vladimir
04:05
created
src/Object/Configuration.php 1 patch
Doc Comments   +10 added lines, -1 removed lines patch added patch discarded remove patch
@@ -34,7 +34,7 @@  discard block
 block discarded – undo
34 34
      * Configuration constructor.
35 35
      *
36 36
      * @param string                                $configFile
37
-     * @param ConsoleInterface|OutputInterface|null $output
37
+     * @param ConsoleInterface $output
38 38
      */
39 39
     public function __construct($configFile, $output = null)
40 40
     {
@@ -83,11 +83,17 @@  discard block
 block discarded – undo
83 83
         return $base;
84 84
     }
85 85
 
86
+    /**
87
+     * @return string[]
88
+     */
86 89
     public function getDataFolders ()
87 90
     {
88 91
         return $this->returnConfigOption('data');
89 92
     }
90 93
 
94
+    /**
95
+     * @return string[]
96
+     */
91 97
     public function getDataSets ()
92 98
     {
93 99
         return $this->returnConfigOption('datasets');
@@ -133,6 +139,9 @@  discard block
 block discarded – undo
133 139
         return $this->configuration['twig']['autoescape'];
134 140
     }
135 141
 
142
+    /**
143
+     * @param string $name
144
+     */
136 145
     private function returnConfigOption ($name, $default = null)
137 146
     {
138 147
         return (isset($this->configuration[$name]) ? $this->configuration[$name] : $default);
Please login to merge, or discard this patch.
src/System/FileSystem.php 2 patches
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -140,6 +140,9 @@
 block discarded – undo
140 140
         return pathinfo($filename, PATHINFO_EXTENSION);
141 141
     }
142 142
 
143
+    /**
144
+     * @param string $folderPath
145
+     */
143 146
     public function isDir ($folderPath)
144 147
     {
145 148
         return is_dir($folderPath);
Please login to merge, or discard this patch.
Indentation   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -66,9 +66,9 @@  discard block
 block discarded – undo
66 66
     {
67 67
         $finder = new Finder();
68 68
         $finder->files()
69
-               ->ignoreVCS(true)
70
-               ->ignoreDotFiles(true)
71
-               ->ignoreUnreadableDirs();
69
+                ->ignoreVCS(true)
70
+                ->ignoreDotFiles(true)
71
+                ->ignoreUnreadableDirs();
72 72
 
73 73
         $finder->in(
74 74
             empty(trim($searchIn)) ? getcwd() : $searchIn
@@ -155,9 +155,9 @@  discard block
 block discarded – undo
155 155
     public function removeExtension ($filename)
156 156
     {
157 157
         return $this->appendPath(
158
-                   $this->getFolderPath($filename),
159
-                   $this->getBaseName($filename)
160
-               );
158
+                    $this->getFolderPath($filename),
159
+                    $this->getBaseName($filename)
160
+                );
161 161
     }
162 162
 
163 163
     /**
Please login to merge, or discard this patch.
src/System/Folder.php 1 patch
Doc Comments   +11 added lines patch added patch discarded remove patch
@@ -62,6 +62,10 @@  discard block
 block discarded – undo
62 62
         }
63 63
     }
64 64
 
65
+    /**
66
+     * @param string $absolutePath
67
+     * @param string $targetPath
68
+     */
65 69
     public function copyFile ($absolutePath, $targetPath)
66 70
     {
67 71
         $targetPath = ltrim($targetPath, DIRECTORY_SEPARATOR);
@@ -73,6 +77,10 @@  discard block
 block discarded – undo
73 77
         );
74 78
     }
75 79
 
80
+    /**
81
+     * @param string $targetPath
82
+     * @param string $fileContent
83
+     */
76 84
     public function writeFile ($targetPath, $fileContent)
77 85
     {
78 86
         $outputFolder   = $this->fs->getFolderPath($targetPath);
@@ -98,6 +106,9 @@  discard block
 block discarded – undo
98 106
         ));
99 107
     }
100 108
 
109
+    /**
110
+     * @param string $pathFragments
111
+     */
101 112
     private function buildPath ($pathFragments)
102 113
     {
103 114
         $paths = func_get_args();
Please login to merge, or discard this patch.
src/Twig/TextFilter.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -15,7 +15,7 @@
 block discarded – undo
15 15
     /**
16 16
      * Returns a list of filters.
17 17
      *
18
-     * @return array
18
+     * @return Twig_SimpleFilter[]
19 19
      */
20 20
     public function getFilters()
21 21
     {
Please login to merge, or discard this patch.
src/Manager/PageManager.php 1 patch
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -76,10 +76,10 @@
 block discarded – undo
76 76
 
77 77
             $finder = new Finder();
78 78
             $finder->files()
79
-                   ->name('/\.(html|twig)/')
80
-                   ->ignoreDotFiles(true)
81
-                   ->ignoreUnreadableDirs()
82
-                   ->in($pageViewFolder);
79
+                    ->name('/\.(html|twig)/')
80
+                    ->ignoreDotFiles(true)
81
+                    ->ignoreUnreadableDirs()
82
+                    ->in($pageViewFolder);
83 83
 
84 84
             foreach ($finder as $viewFile)
85 85
             {
Please login to merge, or discard this patch.
src/Manager/DataManager.php 1 patch
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -112,9 +112,9 @@
 block discarded – undo
112 112
         $dataItems = array();
113 113
         $finder    = new Finder();
114 114
         $finder->files()
115
-               ->ignoreDotFiles(true)
116
-               ->ignoreUnreadableDirs()
117
-               ->in($this->fs->absolutePath($folder));
115
+                ->ignoreDotFiles(true)
116
+                ->ignoreUnreadableDirs()
117
+                ->in($this->fs->absolutePath($folder));
118 118
 
119 119
         foreach ($finder as $dataItem)
120 120
         {
Please login to merge, or discard this patch.