Completed
Push — master ( 18f460...9e5c66 )
by Mikołaj
02:35
created
src/component/Hooks/Action.php 2 patches
Doc Comments   -2 removed lines patch added patch discarded remove patch
@@ -92,8 +92,6 @@
 block discarded – undo
92 92
      * @since 0.1
93 93
      *
94 94
      * @param string $tag     The name of the action to be executed.
95
-     * @param mixed  $arg,... Optional additional arguments which are passed on to the functions
96
-     *                        hooked to the action.
97 95
      */
98 96
     public static function dispatch($tag, $arg = '')
99 97
     {
Please login to merge, or discard this patch.
Spacing   +7 added lines, -9 removed lines patch added patch discarded remove patch
@@ -103,8 +103,7 @@  discard block
 block discarded – undo
103 103
 
104 104
         if (!isset(self::$actions[$tag])) {
105 105
             self::$actions[$tag] = 1;
106
-        } else {
107
-            ++self::$actions[$tag];
106
+        } else {++self::$actions[$tag];
108 107
         }
109 108
 
110 109
         // Do 'all' actions first
@@ -137,9 +136,9 @@  discard block
 block discarded – undo
137 136
         }
138 137
 
139 138
         // Sort
140
-        if (!isset(Filter::$mergedFilters[ $tag ])) {
139
+        if (!isset(Filter::$mergedFilters[$tag])) {
141 140
             ksort(Filter::$filters[$tag]);
142
-            Filter::$mergedFilters[ $tag ] = true;
141
+            Filter::$mergedFilters[$tag] = true;
143 142
         }
144 143
 
145 144
         reset(Filter::$filters[$tag]);
@@ -171,8 +170,7 @@  discard block
 block discarded – undo
171 170
 
172 171
         if (!isset(self::$actions[$tag])) {
173 172
             self::$actions[$tag] = 1;
174
-        } else {
175
-            ++self::$actions[$tag];
173
+        } else {++self::$actions[$tag];
176 174
         }
177 175
 
178 176
         // Do 'all' actions first
@@ -195,12 +193,12 @@  discard block
 block discarded – undo
195 193
         }
196 194
 
197 195
         // Sort
198
-        if (!isset($merged_filters[ $tag ])) {
196
+        if (!isset($merged_filters[$tag])) {
199 197
             ksort(Filter::$filters[$tag]);
200
-            $merged_filters[ $tag ] = true;
198
+            $merged_filters[$tag] = true;
201 199
         }
202 200
 
203
-        reset(Filter::$filters[ $tag ]);
201
+        reset(Filter::$filters[$tag]);
204 202
 
205 203
         do {
206 204
             foreach ((array) current(Filter::$filters[$tag]) as $the_) {
Please login to merge, or discard this patch.
src/component/Html/Head.php 1 patch
Doc Comments   -1 removed lines patch added patch discarded remove patch
@@ -125,7 +125,6 @@
 block discarded – undo
125 125
     /**
126 126
      * Set page favicon.
127 127
      *
128
-     * @param string $href Favicon location
129 128
      */
130 129
     public function setFavicon($favicon)
131 130
     {
Please login to merge, or discard this patch.
src/component/Logger/Logger.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -11,6 +11,9 @@
 block discarded – undo
11 11
         file_put_contents(LOG_ROOT.'/'.$level.'.log', $this->format($message), FILE_APPEND | LOCK_EX);
12 12
     }
13 13
 
14
+    /**
15
+     * @param string $message
16
+     */
14 17
     private function format($message)
15 18
     {
16 19
         return sprintf(
Please login to merge, or discard this patch.
src/component/Routing/Route.php 1 patch
Doc Comments   +2 added lines, -3 removed lines patch added patch discarded remove patch
@@ -49,7 +49,6 @@  discard block
 block discarded – undo
49 49
     /**
50 50
      * Sets the pattern for the path.
51 51
      *
52
-     * @param string $pattern The path pattern
53 52
      */
54 53
     private function setPath($path)
55 54
     {
@@ -79,7 +78,7 @@  discard block
 block discarded – undo
79 78
     /**
80 79
      * Returns the controller name.
81 80
      *
82
-     * @return array $controllerName
81
+     * @return string $controllerName
83 82
      */
84 83
     public function getControllerName()
85 84
     {
@@ -109,7 +108,7 @@  discard block
 block discarded – undo
109 108
     /**
110 109
      * Returns the priority.
111 110
      *
112
-     * @return array $priority
111
+     * @return integer $priority
113 112
      */
114 113
     public function getPriority()
115 114
     {
Please login to merge, or discard this patch.
src/framework/Model/BaseModel.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -45,7 +45,7 @@
 block discarded – undo
45 45
     /**
46 46
      * Create connection with database.
47 47
      *
48
-     * @return object PDO
48
+     * @return PDO PDO
49 49
      */
50 50
     private function connect()
51 51
     {
Please login to merge, or discard this patch.
src/module/Albums/Model.php 1 patch
Doc Comments   +1 added lines patch added patch discarded remove patch
@@ -9,6 +9,7 @@
 block discarded – undo
9 9
     /**
10 10
      * Returns part of query.
11 11
      *
12
+     * @param string $part
12 13
      * @return string
13 14
      */
14 15
     protected function queryPart($part)
Please login to merge, or discard this patch.
src/module/Albums/One/Album.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -135,7 +135,7 @@
 block discarded – undo
135 135
     /**
136 136
      * Returns modifier full name.
137 137
      *
138
-     * @return int
138
+     * @return string
139 139
      */
140 140
     public function modifierFullName($type = '')
141 141
     {
Please login to merge, or discard this patch.
src/module/Appearance/One/Admin/EditorModel.php 1 patch
Doc Comments   +9 added lines patch added patch discarded remove patch
@@ -15,6 +15,9 @@  discard block
 block discarded – undo
15 15
         $this->root = THEMES_ROOT.'/front/'.FRONT_THEME.'/';
16 16
     }
17 17
 
18
+    /**
19
+     * @param string $path
20
+     */
18 21
     public function getFilesListByPath($path)
19 22
     {
20 23
         return array_diff(
@@ -23,6 +26,9 @@  discard block
 block discarded – undo
23 26
         );
24 27
     }
25 28
 
29
+    /**
30
+     * @param string $path
31
+     */
26 32
     public function getFileInfo($path)
27 33
     {
28 34
         $file = $this->root.$path;
@@ -40,6 +46,9 @@  discard block
 block discarded – undo
40 46
         ];
41 47
     }
42 48
 
49
+    /**
50
+     * @param string $path
51
+     */
43 52
     public function saveFile($path, $data)
44 53
     {
45 54
         $file = $this->root.$path;
Please login to merge, or discard this patch.
src/module/Articles/Model.php 1 patch
Doc Comments   +1 added lines patch added patch discarded remove patch
@@ -9,6 +9,7 @@
 block discarded – undo
9 9
     /**
10 10
      * Returns part of query.
11 11
      *
12
+     * @param string $part
12 13
      * @return string
13 14
      */
14 15
     protected function queryPart($part)
Please login to merge, or discard this patch.