Completed
Push — master ( d6d331...c7c515 )
by Chauncey
10:58
created
src/Charcoal/View/ViewableTrait.php 1 patch
Doc Comments   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -52,7 +52,7 @@  discard block
 block discarded – undo
52 52
      *
53 53
      * @param string $templateIdent The template ID.
54 54
      * @throws InvalidArgumentException If the template identifier is not a string.
55
-     * @return ViewableInterface Chainable
55
+     * @return ViewableTrait Chainable
56 56
      */
57 57
     public function setTemplateIdent($templateIdent)
58 58
     {
@@ -80,9 +80,9 @@  discard block
 block discarded – undo
80 80
     /**
81 81
      * Set the renderable view.
82 82
      *
83
-     * @param ViewInterface|array $view The view instance to use to render.
83
+     * @param ViewInterface $view The view instance to use to render.
84 84
      * @throws InvalidArgumentException If the view parameter is not an array or a View object.
85
-     * @return ViewableInterface Chainable
85
+     * @return ViewableTrait Chainable
86 86
      */
87 87
     public function setView(ViewInterface $view)
88 88
     {
@@ -135,7 +135,7 @@  discard block
 block discarded – undo
135 135
      *
136 136
      * @param ViewableInterface|object|array|null $controller A view controller to use when rendering.
137 137
      * @throws InvalidArgumentException If the controller is invalid.
138
-     * @return ViewableInterface Chainable
138
+     * @return ViewableTrait Chainable
139 139
      */
140 140
     public function setViewController($controller)
141 141
     {
Please login to merge, or discard this patch.
src/Charcoal/View/Mustache/MustacheLoader.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -24,7 +24,7 @@
 block discarded – undo
24 24
      */
25 25
     protected function filenameFromIdent($ident)
26 26
     {
27
-        $filename  = str_replace([ '\\' ], '.', $ident);
27
+        $filename  = str_replace(['\\'], '.', $ident);
28 28
         $filename .= '.mustache';
29 29
 
30 30
         return $filename;
Please login to merge, or discard this patch.
src/Charcoal/View/Php/PhpLoader.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -19,7 +19,7 @@
 block discarded – undo
19 19
      */
20 20
     protected function filenameFromIdent($ident)
21 21
     {
22
-        $filename = str_replace([ '\\' ], '.', $ident);
22
+        $filename = str_replace(['\\'], '.', $ident);
23 23
         $filename .= '.php';
24 24
 
25 25
         return $filename;
Please login to merge, or discard this patch.
src/Charcoal/View/Twig/TwigLoader.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -26,7 +26,7 @@
 block discarded – undo
26 26
      */
27 27
     protected function filenameFromIdent($ident)
28 28
     {
29
-        $filename = str_replace([ '\\' ], '.', $ident);
29
+        $filename = str_replace(['\\'], '.', $ident);
30 30
         $filename .= '.twig';
31 31
 
32 32
         return $filename;
Please login to merge, or discard this patch.
src/Charcoal/View/Mustache/TranslatorHelpers.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -140,7 +140,7 @@
 block discarded – undo
140 140
      * Required by Mustache.
141 141
      *
142 142
      * @param  string $macro A domain, locale, or number.
143
-     * @return mixed
143
+     * @return TranslatorHelpers
144 144
      */
145 145
     public function __get($macro)
146 146
     {
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -111,7 +111,7 @@
 block discarded – undo
111 111
                     $this->number = $helper->render('{{ '.$this->number.' }}');
112 112
                 }
113 113
 
114
-                $text = $this->translator->transChoice($text, (int)$this->number, [], $this->domain, $this->locale);
114
+                $text = $this->translator->transChoice($text, (int) $this->number, [], $this->domain, $this->locale);
115 115
             }
116 116
 
117 117
             $this->reset();
Please login to merge, or discard this patch.
src/Charcoal/View/ViewServiceProvider.php 1 patch
Spacing   +14 added lines, -14 removed lines patch added patch discarded remove patch
@@ -77,7 +77,7 @@  discard block
 block discarded – undo
77 77
          * @param  Container $container A container instance.
78 78
          * @return ViewConfig
79 79
          */
80
-        $container['view/config'] = function (Container $container) {
80
+        $container['view/config'] = function(Container $container) {
81 81
             $appConfig  = isset($container['config']) ? $container['config'] : [];
82 82
             $viewConfig = isset($appConfig['view']) ? $appConfig['view'] : null;
83 83
             return new ViewConfig($viewConfig);
@@ -94,7 +94,7 @@  discard block
 block discarded – undo
94 94
          * @param Container $container A container instance.
95 95
          * @return array The view loader dependencies array.
96 96
          */
97
-        $container['view/loader/dependencies'] = function (Container $container) {
97
+        $container['view/loader/dependencies'] = function(Container $container) {
98 98
             return [
99 99
                 'logger'    => $container['logger'],
100 100
                 'base_path' => $container['config']['base_path'],
@@ -106,7 +106,7 @@  discard block
 block discarded – undo
106 106
          * @param Container $container A container instance.
107 107
          * @return MustacheLoader
108 108
          */
109
-        $container['view/loader/mustache'] = function (Container $container) {
109
+        $container['view/loader/mustache'] = function(Container $container) {
110 110
             return new MustacheLoader($container['view/loader/dependencies']);
111 111
         };
112 112
 
@@ -114,7 +114,7 @@  discard block
 block discarded – undo
114 114
          * @param Container $container A container instance.
115 115
          * @return PhpLoader
116 116
          */
117
-        $container['view/loader/php'] = function (Container $container) {
117
+        $container['view/loader/php'] = function(Container $container) {
118 118
             return new PhpLoader($container['view/loader/dependencies']);
119 119
         };
120 120
 
@@ -122,7 +122,7 @@  discard block
 block discarded – undo
122 122
          * @param Container $container A container instance.
123 123
          * @return TwigLoader
124 124
          */
125
-        $container['view/loader/twig'] = function (Container $container) {
125
+        $container['view/loader/twig'] = function(Container $container) {
126 126
             return new TwigLoader($container['view/loader/dependencies']);
127 127
         };
128 128
     }
@@ -137,7 +137,7 @@  discard block
 block discarded – undo
137 137
          * @param Container $container A container instance.
138 138
          * @return array The engine dependencies array.
139 139
          */
140
-        $container['view/engine/dependencies'] = function (Container $container) {
140
+        $container['view/engine/dependencies'] = function(Container $container) {
141 141
             return [
142 142
                 'logger' => $container['logger'],
143 143
                 'cache'  => null,
@@ -149,7 +149,7 @@  discard block
 block discarded – undo
149 149
          * @param Container $container A container instance.
150 150
          * @return MustacheEngine
151 151
          */
152
-        $container['view/engine/mustache'] = function (Container $container) {
152
+        $container['view/engine/mustache'] = function(Container $container) {
153 153
             $engineOptions = $container['view/engine/dependencies'];
154 154
             $engineOptions['loader']  = $container['view/loader/mustache'];
155 155
             $engineOptions['helpers'] = $container['view/mustache/helpers'];
@@ -160,7 +160,7 @@  discard block
 block discarded – undo
160 160
          * @param Container $container A container instance.
161 161
          * @return PhpEngine
162 162
          */
163
-        $container['view/engine/php'] = function (Container $container) {
163
+        $container['view/engine/php'] = function(Container $container) {
164 164
             $engineOptions = $container['view/engine/dependencies'];
165 165
             $engineOptions['loader'] = $container['view/loader/php'];
166 166
             return new PhpEngine($engineOptions);
@@ -170,7 +170,7 @@  discard block
 block discarded – undo
170 170
          * @param Container $container A container instance.
171 171
          * @return TwigEngine
172 172
          */
173
-        $container['view/engine/twig'] = function (Container $container) {
173
+        $container['view/engine/twig'] = function(Container $container) {
174 174
             $engineOptions = $container['view/engine/dependencies'];
175 175
             $engineOptions['loader'] = $container['view/loader/twig'];
176 176
             return new TwigEngine($engineOptions);
@@ -182,7 +182,7 @@  discard block
 block discarded – undo
182 182
          * @param Container $container A container instance.
183 183
          * @return \Charcoal\View\EngineInterface
184 184
          */
185
-        $container['view/engine'] = function (Container $container) {
185
+        $container['view/engine'] = function(Container $container) {
186 186
             $viewConfig = $container['view/config'];
187 187
             $type = $viewConfig['default_engine'];
188 188
             return $container['view/engine/'.$type];
@@ -196,7 +196,7 @@  discard block
 block discarded – undo
196 196
     protected function registerMustacheTemplatingServices(Container $container)
197 197
     {
198 198
         if (!isset($container['view/mustache/helpers'])) {
199
-            $container['view/mustache/helpers'] = function () {
199
+            $container['view/mustache/helpers'] = function() {
200 200
                 return [];
201 201
             };
202 202
         }
@@ -207,7 +207,7 @@  discard block
 block discarded – undo
207 207
          * @param Container $container A container instance.
208 208
          * @return array
209 209
          */
210
-        $container->extend('view/mustache/helpers', function (array $helpers, Container $container) {
210
+        $container->extend('view/mustache/helpers', function(array $helpers, Container $container) {
211 211
             $deps = [];
212 212
             if (isset($container['translator'])) {
213 213
                 $deps['translator'] = $container['translator'];
@@ -232,7 +232,7 @@  discard block
 block discarded – undo
232 232
          * @param Container $container A container instance.
233 233
          * @return ViewInterface
234 234
          */
235
-        $container['view'] = function (Container $container) {
235
+        $container['view'] = function(Container $container) {
236 236
             return new GenericView([
237 237
                 'logger' => $container['logger'],
238 238
                 'engine' => $container['view/engine']
@@ -245,7 +245,7 @@  discard block
 block discarded – undo
245 245
          * @param Container $container A container instance.
246 246
          * @return Renderer
247 247
          */
248
-        $container['view/renderer'] = function (Container $container) {
248
+        $container['view/renderer'] = function(Container $container) {
249 249
             return new Renderer([
250 250
                 'view' => $container['view']
251 251
             ]);
Please login to merge, or discard this patch.