Completed
Push — master ( 4160d6...bd895c )
by Mathieu
03:51
created
src/Charcoal/App/Language/Language.php 2 patches
Doc Comments   -1 removed lines patch added patch discarded remove patch
@@ -127,7 +127,6 @@
 block discarded – undo
127 127
     *
128 128
     * @link   http://www.faqs.org/rfcs/rfc4646.html Tags for Identifying Languages
129 129
     * @link   http://www.faqs.org/rfcs/rfc4647.html Matching of Language Tags
130
-    * @param  string $ident Language identifier
131 130
     * @return self
132 131
     *
133 132
     * @todo   Implement proper ISO 639 sanitization
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -94,7 +94,7 @@
 block discarded – undo
94 94
         if ($name instanceof TranslationStringInterface) {
95 95
             $config = $name->available_langs();
96 96
         } elseif (is_array($name)) {
97
-            $config = [ 'languages' => array_keys($name) ];
97
+            $config = ['languages' => array_keys($name)];
98 98
         } else {
99 99
             $config = null;
100 100
         }
Please login to merge, or discard this patch.
src/Charcoal/App/Language/LanguageInterface.php 1 patch
Doc Comments   -1 removed lines patch added patch discarded remove patch
@@ -44,7 +44,6 @@
 block discarded – undo
44 44
     /**
45 45
     * Set the language's locale
46 46
     *
47
-    * @param  string $ident
48 47
     * @return LanguageInterface Chainable
49 48
     */
50 49
     public function set_locale($locale);
Please login to merge, or discard this patch.
src/Charcoal/App/Language/LanguageManager.php 2 patches
Doc Comments   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -145,7 +145,7 @@  discard block
 block discarded – undo
145 145
     *
146 146
     * @param  LanguageInterface &$lang  The instance that needs resolution
147 147
     * @param  array             $config Array element of fallbacks
148
-    * @param  mixed             $ident  Optional key/index of $config in previous method
148
+    * @param  string|null             $ident  Optional key/index of $config in previous method
149 149
     * @return void
150 150
     * @throws InvalidArgumentException
151 151
     */
@@ -174,7 +174,6 @@  discard block
 block discarded – undo
174 174
     /**
175 175
     * Set the manager's available languages
176 176
     *
177
-    * @param  LanguageInterface[] $lang
178 177
     * @return self
179 178
     */
180 179
     public function set_languages($languages)
Please login to merge, or discard this patch.
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -63,7 +63,7 @@  discard block
 block discarded – undo
63 63
         }
64 64
 
65 65
         if (isset($config['languages'])) {
66
-            $available_langs = array_filter($config['languages'], function ($config) {
66
+            $available_langs = array_filter($config['languages'], function($config) {
67 67
                 return (!isset($config['active']) || $config['active']);
68 68
             });
69 69
 
@@ -133,7 +133,7 @@  discard block
 block discarded – undo
133 133
     public static function language_index()
134 134
     {
135 135
         if (!isset(self::$language_index)) {
136
-            self::$language_index = new GenericConfig(__DIR__ . '/../../../../config/languages.json');
136
+            self::$language_index = new GenericConfig(__DIR__.'/../../../../config/languages.json');
137 137
         }
138 138
 
139 139
         return self::$language_index;
@@ -147,7 +147,7 @@  discard block
 block discarded – undo
147 147
     * @return void
148 148
     * @throws InvalidArgumentException
149 149
     */
150
-    public function resolve_ident(LanguageInterface &$lang, $ident = null)
150
+    public function resolve_ident(LanguageInterface & $lang, $ident = null)
151 151
     {
152 152
         if (is_string($ident)) {
153 153
             $lang->set_ident($ident);
Please login to merge, or discard this patch.
src/Charcoal/App/Routable/RoutableInterface.php 1 patch
Doc Comments   -2 removed lines patch added patch discarded remove patch
@@ -12,7 +12,6 @@  discard block
 block discarded – undo
12 12
 interface RoutableInterface
13 13
 {
14 14
     /**
15
-    * @param boolean $data
16 15
     * @return RoutableInterface Chainable
17 16
     */
18 17
     public function set_routable($routable);
@@ -23,7 +22,6 @@  discard block
 block discarded – undo
23 22
     public function routable();
24 23
 
25 24
         /**
26
-    * @param mixed $url
27 25
     * @return RoutableInterface Chainable
28 26
     */
29 27
     public function set_slug_pattern($pattern);
Please login to merge, or discard this patch.
src/Charcoal/App/Routable/RoutableTrait.php 1 patch
Doc Comments   +3 added lines, -5 removed lines patch added patch discarded remove patch
@@ -32,8 +32,7 @@  discard block
 block discarded – undo
32 32
     private $slug;
33 33
 
34 34
     /**
35
-    * @param boolean $data
36
-    * @return RoutableInterface Chainable
35
+    * @return RoutableTrait Chainable
37 36
     */
38 37
     public function set_routable($routable)
39 38
     {
@@ -50,8 +49,7 @@  discard block
 block discarded – undo
50 49
     }
51 50
 
52 51
     /**
53
-    * @param mixed $url
54
-    * @return RoutableInterface Chainable
52
+    * @return RoutableTrait Chainable
55 53
     */
56 54
     public function set_slug_pattern($pattern)
57 55
     {
@@ -69,7 +67,7 @@  discard block
 block discarded – undo
69 67
 
70 68
     /**
71 69
     * @param mixed $slug
72
-    * @return RoutableInterface Chainable
70
+    * @return RoutableTrait Chainable
73 71
     */
74 72
     public function set_slug($slug)
75 73
     {
Please login to merge, or discard this patch.
src/Charcoal/App/SingletonInterface.php 1 patch
Doc Comments   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -10,8 +10,7 @@
 block discarded – undo
10 10
     /**
11 11
      * Getter for creating/returning the unique instance of this class
12 12
      *
13
-     * @param  mixed $param,...
14
-     * @return object
13
+     * @return SingletonTrait
15 14
      */
16 15
     public static function instance();
17 16
 }
Please login to merge, or discard this patch.
src/Charcoal/App/SingletonTrait.php 1 patch
Doc Comments   -1 removed lines patch added patch discarded remove patch
@@ -51,7 +51,6 @@
 block discarded – undo
51 51
     /**
52 52
      * Getter for creating/returning the unique instance of this class
53 53
      *
54
-     * @param  mixed $param,...
55 54
      * @return self
56 55
      */
57 56
     public static function instance()
Please login to merge, or discard this patch.
src/Charcoal/App/Template/WidgetFactory.php 1 patch
Doc Comments   -1 removed lines patch added patch discarded remove patch
@@ -11,7 +11,6 @@
 block discarded – undo
11 11
 class WidgetFactory extends ResolverFactory
12 12
 {
13 13
     /**
14
-    * @param array $data
15 14
     */
16 15
     public function base_class()
17 16
     {
Please login to merge, or discard this patch.
config/dependencies.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -11,7 +11,7 @@
 block discarded – undo
11 11
 $container = $app->getContainer();
12 12
 
13 13
 // PSR-3 logger with monolog
14
-$container['logger'] = function ($c) {
14
+$container['logger'] = function($c) {
15 15
     $logger = new MonologLogger('Charcoal');
16 16
     $logger->pushProcessor(new UidProcessor());
17 17
     $logger->pushHandler(new MonologStreamHandler('charcoal.app.log', \Monolog\Logger::DEBUG));
Please login to merge, or discard this patch.