@@ -25,7 +25,7 @@ |
||
| 25 | 25 | return iterator_to_array($items); |
| 26 | 26 | } |
| 27 | 27 | |
| 28 | - return (array)$items; |
|
| 28 | + return (array) $items; |
|
| 29 | 29 | } |
| 30 | 30 | |
| 31 | 31 | /** |
@@ -40,7 +40,7 @@ discard block |
||
| 40 | 40 | { |
| 41 | 41 | $prefix = $this->buildPrefix(); |
| 42 | 42 | |
| 43 | - return $this->get($prefix . $name); |
|
| 43 | + return $this->get($prefix.$name); |
|
| 44 | 44 | } |
| 45 | 45 | |
| 46 | 46 | /** |
@@ -69,7 +69,7 @@ discard block |
||
| 69 | 69 | { |
| 70 | 70 | $prefix = $this->buildPrefix(); |
| 71 | 71 | |
| 72 | - return $this->add($prefix . $key, $value); |
|
| 72 | + return $this->add($prefix.$key, $value); |
|
| 73 | 73 | } |
| 74 | 74 | |
| 75 | 75 | /** |
@@ -85,7 +85,7 @@ discard block |
||
| 85 | 85 | $prefix = $this->currentLevel; |
| 86 | 86 | $this->currentLevel = false; |
| 87 | 87 | |
| 88 | - return $prefix . "."; |
|
| 88 | + return $prefix."."; |
|
| 89 | 89 | } |
| 90 | 90 | } |
| 91 | 91 | |
@@ -97,7 +97,7 @@ discard block |
||
| 97 | 97 | protected function addToChain($name) |
| 98 | 98 | { |
| 99 | 99 | $dot = ($this->currentLevel === false) ? '' : '.'; |
| 100 | - $this->currentLevel .= $dot . $name; |
|
| 100 | + $this->currentLevel .= $dot.$name; |
|
| 101 | 101 | |
| 102 | 102 | return $this; |
| 103 | 103 | } |
@@ -77,7 +77,7 @@ |
||
| 77 | 77 | } else { |
| 78 | 78 | throw new \BadMethodCallException( |
| 79 | 79 | "Call to undefined method. `$method` does not exist in " |
| 80 | - . get_called_class() . " and it is not part of the Collection API" |
|
| 80 | + . get_called_class()." and it is not part of the Collection API" |
|
| 81 | 81 | ); |
| 82 | 82 | } |
| 83 | 83 | } |
@@ -128,7 +128,7 @@ discard block |
||
| 128 | 128 | if (!empty($this->unsupportedFiles)) { |
| 129 | 129 | $badFiles = implode(", ", $this->unsupportedFiles); |
| 130 | 130 | throw new UnsupportedFilesException( |
| 131 | - 'The file(s) ' . $badFiles . ' are not supported by the available decoders.' |
|
| 131 | + 'The file(s) '.$badFiles.' are not supported by the available decoders.' |
|
| 132 | 132 | ); |
| 133 | 133 | } |
| 134 | 134 | |
@@ -176,11 +176,11 @@ discard block |
||
| 176 | 176 | */ |
| 177 | 177 | protected function checkAndAddDefaultDecoder($mimeType) |
| 178 | 178 | { |
| 179 | - $decoderClass = ucfirst($mimeType) . "Decoder"; |
|
| 179 | + $decoderClass = ucfirst($mimeType)."Decoder"; |
|
| 180 | 180 | |
| 181 | - if (file_exists(__DIR__ . '/Decoders/' . $decoderClass . '.php') && !$this->isSupportedMimeType($mimeType)) { |
|
| 181 | + if (file_exists(__DIR__.'/Decoders/'.$decoderClass.'.php') && !$this->isSupportedMimeType($mimeType)) { |
|
| 182 | 182 | $nameSpace = "Michaels\\Manager\\Decoders\\"; |
| 183 | - $fullQualifiedClassName = $nameSpace . $decoderClass; |
|
| 183 | + $fullQualifiedClassName = $nameSpace.$decoderClass; |
|
| 184 | 184 | $decoder = new $fullQualifiedClassName(); |
| 185 | 185 | $this->addDecoder($decoder); |
| 186 | 186 | } |
@@ -263,7 +263,7 @@ discard block |
||
| 263 | 263 | |
| 264 | 264 | } else { |
| 265 | 265 | // We are namespacing using the file's name |
| 266 | - $filename = rtrim($file->getBasename(), '.' . $file->getExtension()); |
|
| 266 | + $filename = rtrim($file->getBasename(), '.'.$file->getExtension()); |
|
| 267 | 267 | $namespace = $this->sanitizeNamespace($filename); |
| 268 | 268 | return [$namespace, $file]; |
| 269 | 269 | } |
@@ -57,13 +57,13 @@ discard block |
||
| 57 | 57 | public function fetch($alias, $fallback = '_michaels_no_fallback') |
| 58 | 58 | { |
| 59 | 59 | // If this is a link, just go back to the master |
| 60 | - $link = $this->getIfExists($this->nameOfIocManifest . ".$alias"); |
|
| 60 | + $link = $this->getIfExists($this->nameOfIocManifest.".$alias"); |
|
| 61 | 61 | if (is_string($link) && strpos($link, '_michaels_link_') !== false) { |
| 62 | 62 | return $this->fetch(str_replace('_michaels_link_', '', $link)); |
| 63 | 63 | } |
| 64 | 64 | |
| 65 | 65 | // Otherwise, continue |
| 66 | - $shared = $this->getIfExists($this->nameOfIocManifest . "._singletons.$alias"); |
|
| 66 | + $shared = $this->getIfExists($this->nameOfIocManifest."._singletons.$alias"); |
|
| 67 | 67 | |
| 68 | 68 | if ($shared instanceof NoItemFoundMessage) { |
| 69 | 69 | // This is not a shared item. We want a new one each time |
@@ -76,7 +76,7 @@ discard block |
||
| 76 | 76 | // This is shared, but we must produce and cache it |
| 77 | 77 | } else { |
| 78 | 78 | $object = $this->produceDependency($alias, $fallback); |
| 79 | - $this->set($this->nameOfIocManifest . "._singletons.$alias", $object); |
|
| 79 | + $this->set($this->nameOfIocManifest."._singletons.$alias", $object); |
|
| 80 | 80 | return $object; |
| 81 | 81 | } |
| 82 | 82 | } |
@@ -104,17 +104,17 @@ discard block |
||
| 104 | 104 | unset($links[0]); |
| 105 | 105 | } |
| 106 | 106 | |
| 107 | - $this->set($this->nameOfIocManifest . ".$alias", $factory); |
|
| 107 | + $this->set($this->nameOfIocManifest.".$alias", $factory); |
|
| 108 | 108 | |
| 109 | 109 | // Setup any declared dependencies |
| 110 | 110 | if ($declared) { |
| 111 | - $this->set($this->nameOfIocManifest . "._declarations.$alias", $declared); |
|
| 111 | + $this->set($this->nameOfIocManifest."._declarations.$alias", $declared); |
|
| 112 | 112 | } |
| 113 | 113 | |
| 114 | 114 | // Add Links |
| 115 | 115 | if (!empty($links)) { |
| 116 | 116 | foreach ($links as $link) { |
| 117 | - $this->set($this->nameOfIocManifest . ".$link", "_michaels_link_$alias"); |
|
| 117 | + $this->set($this->nameOfIocManifest.".$link", "_michaels_link_$alias"); |
|
| 118 | 118 | } |
| 119 | 119 | } |
| 120 | 120 | |
@@ -128,7 +128,7 @@ discard block |
||
| 128 | 128 | */ |
| 129 | 129 | public function share($alias) |
| 130 | 130 | { |
| 131 | - $this->add($this->nameOfIocManifest . "._singletons.$alias", true); |
|
| 131 | + $this->add($this->nameOfIocManifest."._singletons.$alias", true); |
|
| 132 | 132 | return $this; |
| 133 | 133 | } |
| 134 | 134 | |
@@ -140,7 +140,7 @@ discard block |
||
| 140 | 140 | */ |
| 141 | 141 | public function setup($alias, $pipeline) |
| 142 | 142 | { |
| 143 | - $this->add($this->nameOfIocManifest . "._pipelines.$alias", $pipeline); |
|
| 143 | + $this->add($this->nameOfIocManifest."._pipelines.$alias", $pipeline); |
|
| 144 | 144 | return $this; |
| 145 | 145 | } |
| 146 | 146 | |
@@ -175,7 +175,7 @@ discard block |
||
| 175 | 175 | protected function produceDependency($alias, $fallback = '_michaels_no_fallback') |
| 176 | 176 | { |
| 177 | 177 | /* Get the registered factory (string, closure, object, container, NoItemFoundMessage) */ |
| 178 | - $factory = $this->getIfExists($this->nameOfIocManifest . ".$alias"); |
|
| 178 | + $factory = $this->getIfExists($this->nameOfIocManifest.".$alias"); |
|
| 179 | 179 | |
| 180 | 180 | /* Manage not founds and fallback */ |
| 181 | 181 | if ($factory instanceof NoItemFoundMessage) { |
@@ -189,13 +189,13 @@ discard block |
||
| 189 | 189 | } |
| 190 | 190 | |
| 191 | 191 | /* Get any declared dependencies */ |
| 192 | - $declared = $this->getIfExists($this->nameOfIocManifest . "._declarations.$alias"); |
|
| 192 | + $declared = $this->getIfExists($this->nameOfIocManifest."._declarations.$alias"); |
|
| 193 | 193 | $dependencies = []; |
| 194 | 194 | |
| 195 | 195 | // Now setup those dependencies into an array |
| 196 | 196 | if (!$declared instanceof NoItemFoundMessage) { |
| 197 | 197 | $dependencies = array_map(function(&$value) use ($alias) { |
| 198 | - if (is_string($value) && $this->exists($this->nameOfIocManifest . ".$alias")) { |
|
| 198 | + if (is_string($value) && $this->exists($this->nameOfIocManifest.".$alias")) { |
|
| 199 | 199 | return $this->fetch($value); |
| 200 | 200 | } |
| 201 | 201 | return $value; |
@@ -226,7 +226,7 @@ discard block |
||
| 226 | 226 | } |
| 227 | 227 | |
| 228 | 228 | /* Run the object through the pipeline, if desired */ |
| 229 | - $pipeline = $this->getIfExists($this->nameOfIocManifest . "._pipelines.$alias"); |
|
| 229 | + $pipeline = $this->getIfExists($this->nameOfIocManifest."._pipelines.$alias"); |
|
| 230 | 230 | |
| 231 | 231 | if (!$pipeline instanceof NoItemFoundMessage) { |
| 232 | 232 | /** @var \Closure $pipeline */ |
@@ -160,7 +160,7 @@ |
||
| 160 | 160 | |
| 161 | 161 | public function getDebugInfo() |
| 162 | 162 | { |
| 163 | - return array ( 105 => 50, 89 => 36, 86 => 35, 79 => 31, 62 => 17, 50 => 7, 47 => 6, 41 => 4, 34 => 3, 30 => 1, 28 => 2, 11 => 1,); |
|
| 163 | + return array(105 => 50, 89 => 36, 86 => 35, 79 => 31, 62 => 17, 50 => 7, 47 => 6, 41 => 4, 34 => 3, 30 => 1, 28 => 2, 11 => 1,); |
|
| 164 | 164 | } |
| 165 | 165 | } |
| 166 | 166 | /* {% extends "layout/layout.twig" %}*/ |
@@ -119,7 +119,7 @@ discard block |
||
| 119 | 119 | // line 30 |
| 120 | 120 | echo $this->env->getExtension('sami')->parseDesc($context, $this->getAttribute((isset($context["value"]) ? $context["value"] : $this->getContext($context, "value")), "shortdesc", array()), (isset($context["value"]) ? $context["value"] : $this->getContext($context, "value"))); |
| 121 | 121 | echo "</dd>"; |
| 122 | - } elseif (("method" == // line 31 |
|
| 122 | + } elseif (("method" == // line 31 |
|
| 123 | 123 | (isset($context["type"]) ? $context["type"] : $this->getContext($context, "type")))) { |
| 124 | 124 | // line 32 |
| 125 | 125 | echo "<dt>"; |
@@ -131,7 +131,7 @@ discard block |
||
| 131 | 131 | // line 33 |
| 132 | 132 | echo $this->env->getExtension('sami')->parseDesc($context, $this->getAttribute((isset($context["value"]) ? $context["value"] : $this->getContext($context, "value")), "shortdesc", array()), $this->getAttribute((isset($context["value"]) ? $context["value"] : $this->getContext($context, "value")), "class", array())); |
| 133 | 133 | echo "</dd>"; |
| 134 | - } elseif (("property" == // line 34 |
|
| 134 | + } elseif (("property" == // line 34 |
|
| 135 | 135 | (isset($context["type"]) ? $context["type"] : $this->getContext($context, "type")))) { |
| 136 | 136 | // line 35 |
| 137 | 137 | echo "<dt>\$"; |
@@ -168,7 +168,7 @@ discard block |
||
| 168 | 168 | |
| 169 | 169 | public function getDebugInfo() |
| 170 | 170 | { |
| 171 | - return array ( 152 => 39, 144 => 36, 137 => 35, 135 => 34, 132 => 33, 125 => 32, 123 => 31, 120 => 30, 111 => 29, 109 => 28, 107 => 27, 105 => 26, 101 => 25, 94 => 23, 90 => 22, 86 => 20, 80 => 19, 72 => 17, 64 => 15, 61 => 14, 57 => 13, 49 => 7, 46 => 6, 40 => 4, 33 => 3, 29 => 1, 27 => 2, 11 => 1,); |
|
| 171 | + return array(152 => 39, 144 => 36, 137 => 35, 135 => 34, 132 => 33, 125 => 32, 123 => 31, 120 => 30, 111 => 29, 109 => 28, 107 => 27, 105 => 26, 101 => 25, 94 => 23, 90 => 22, 86 => 20, 80 => 19, 72 => 17, 64 => 15, 61 => 14, 57 => 13, 49 => 7, 46 => 6, 40 => 4, 33 => 3, 29 => 1, 27 => 2, 11 => 1,); |
|
| 172 | 172 | } |
| 173 | 173 | } |
| 174 | 174 | /* {% extends "layout/layout.twig" %}*/ |
@@ -47,7 +47,7 @@ discard block |
||
| 47 | 47 | } |
| 48 | 48 | // line 10 |
| 49 | 49 | echo " <Url type=\"text/html\" method=\"GET\" template=\""; |
| 50 | - echo twig_escape_filter($this->env, (twig_replace_filter($this->getAttribute((isset($context["project"]) ? $context["project"] : $this->getContext($context, "project")), "config", array(0 => "base_url"), "method"), array("%version%" => $this->getAttribute((isset($context["project"]) ? $context["project"] : $this->getContext($context, "project")), "version", array()))) . "/index.html?q={searchTerms}&src={referrer:source?}"), "html", null, true); |
|
| 50 | + echo twig_escape_filter($this->env, (twig_replace_filter($this->getAttribute((isset($context["project"]) ? $context["project"] : $this->getContext($context, "project")), "config", array(0 => "base_url"), "method"), array("%version%" => $this->getAttribute((isset($context["project"]) ? $context["project"] : $this->getContext($context, "project")), "version", array())))."/index.html?q={searchTerms}&src={referrer:source?}"), "html", null, true); |
|
| 51 | 51 | echo "\"/> |
| 52 | 52 | <InputEncoding>UTF-8</InputEncoding> |
| 53 | 53 | <AdultContent>false</AdultContent> |
@@ -68,7 +68,7 @@ discard block |
||
| 68 | 68 | |
| 69 | 69 | public function getDebugInfo() |
| 70 | 70 | { |
| 71 | - return array ( 49 => 10, 43 => 8, 41 => 7, 37 => 6, 31 => 5, 25 => 4, 21 => 2, 19 => 1,); |
|
| 71 | + return array(49 => 10, 43 => 8, 41 => 7, 37 => 6, 31 => 5, 25 => 4, 21 => 2, 19 => 1,); |
|
| 72 | 72 | } |
| 73 | 73 | } |
| 74 | 74 | /* {% if project.config('base_url') -%}*/ |
@@ -448,13 +448,13 @@ discard block |
||
| 448 | 448 | echo "px\" class=\"hd\"> |
| 449 | 449 | <span class=\"glyphicon glyphicon-play\"></span>"; |
| 450 | 450 | // line 231 |
| 451 | - if ( !$this->getAttribute((isset($context["project"]) ? $context["project"] : $this->getContext($context, "project")), "config", array(0 => "simulate_namespaces"), "method")) { |
|
| 451 | + if (!$this->getAttribute((isset($context["project"]) ? $context["project"] : $this->getContext($context, "project")), "config", array(0 => "simulate_namespaces"), "method")) { |
|
| 452 | 452 | echo "<a href=\""; |
| 453 | 453 | echo $this->env->getExtension('sami')->pathForNamespace($context, $this->getAttribute($context["element"], 1, array(), "array")); |
| 454 | 454 | echo "\">"; |
| 455 | 455 | } |
| 456 | 456 | echo $this->getAttribute($context["element"], 0, array(), "array"); |
| 457 | - if ( !$this->getAttribute((isset($context["project"]) ? $context["project"] : $this->getContext($context, "project")), "config", array(0 => "simulate_namespaces"), "method")) { |
|
| 457 | + if (!$this->getAttribute((isset($context["project"]) ? $context["project"] : $this->getContext($context, "project")), "config", array(0 => "simulate_namespaces"), "method")) { |
|
| 458 | 458 | echo "</a>"; |
| 459 | 459 | } |
| 460 | 460 | // line 232 |
@@ -522,7 +522,7 @@ discard block |
||
| 522 | 522 | |
| 523 | 523 | public function getDebugInfo() |
| 524 | 524 | { |
| 525 | - return array ( 498 => 245, 485 => 240, 481 => 239, 472 => 238, 467 => 235, 465 => 234, 461 => 232, 451 => 231, 447 => 230, 438 => 229, 436 => 228, 432 => 227, 429 => 225, 426 => 224, 412 => 223, 396 => 220, 379 => 218, 374 => 217, 371 => 216, 368 => 215, 365 => 214, 353 => 213, 325 => 157, 322 => 156, 316 => 37, 312 => 38, 309 => 37, 306 => 35, 298 => 33, 275 => 32, 271 => 31, 268 => 30, 260 => 28, 243 => 27, 239 => 26, 236 => 25, 224 => 23, 220 => 22, 217 => 21, 214 => 20, 211 => 19, 206 => 222, 173 => 210, 170 => 182, 168 => 156, 49 => 39, 47 => 19, 31 => 7, 24 => 2, 22 => 1,); |
|
| 525 | + return array(498 => 245, 485 => 240, 481 => 239, 472 => 238, 467 => 235, 465 => 234, 461 => 232, 451 => 231, 447 => 230, 438 => 229, 436 => 228, 432 => 227, 429 => 225, 426 => 224, 412 => 223, 396 => 220, 379 => 218, 374 => 217, 371 => 216, 368 => 215, 365 => 214, 353 => 213, 325 => 157, 322 => 156, 316 => 37, 312 => 38, 309 => 37, 306 => 35, 298 => 33, 275 => 32, 271 => 31, 268 => 30, 260 => 28, 243 => 27, 239 => 26, 236 => 25, 224 => 23, 220 => 22, 217 => 21, 214 => 20, 211 => 19, 206 => 222, 173 => 210, 170 => 182, 168 => 156, 49 => 39, 47 => 19, 31 => 7, 24 => 2, 22 => 1,); |
|
| 526 | 526 | } |
| 527 | 527 | } |
| 528 | 528 | /* {% from _self import element %}*/ |