Passed
Pull Request — develop (#4)
by
unknown
13:37
created
src/FilterManager.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -42,7 +42,7 @@  discard block
 block discarded – undo
42 42
         }
43 43
 
44 44
         $service = $this->container;
45
-        if (! $service->has($alias)) {
45
+        if (!$service->has($alias)) {
46 46
             throw new InvalidArgumentException(
47 47
                 sprintf(
48 48
                     'There is no "%s" filter in Laminas service manager.',
@@ -52,7 +52,7 @@  discard block
 block discarded – undo
52 52
         }
53 53
 
54 54
         $filter = $service->get($alias);
55
-        if (! $filter instanceof FilterInterface) {
55
+        if (!$filter instanceof FilterInterface) {
56 56
             $givenType = is_object($filter) ? FilterInterface::class : gettype($filter);
57 57
             $message   = 'Retrieved filter "%s" is not instanceof '
58 58
                 . '"Assetic\Filter\FilterInterface", but type was given %s';
Please login to merge, or discard this patch.
src/View/Helper/Asset.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -46,7 +46,7 @@  discard block
 block discarded – undo
46 46
         /**
47 47
          * @psalm-suppress UndefinedDocblockClass Upstram bug in `@return`
48 48
          */
49
-        if (! $this->service->getAssetManager()->has($collectionName)) {
49
+        if (!$this->service->getAssetManager()->has($collectionName)) {
50 50
             throw new Exception\InvalidArgumentException(
51 51
                 'Collection "' . $collectionName . '" does not exist.'
52 52
             );
@@ -63,7 +63,7 @@  discard block
 block discarded – undo
63 63
 
64 64
         if (
65 65
             $this->service->getConfiguration()->isDebug()
66
-            && ! $this->service->getConfiguration()->isCombine()
66
+            && !$this->service->getConfiguration()->isCombine()
67 67
             && $asset instanceof AssetCollection
68 68
         ) {
69 69
             // Move assets as single instance not as a collection
@@ -107,16 +107,16 @@  discard block
 block discarded – undo
107 107
 
108 108
     protected function getScriptTag(string $path, array $options = []): string
109 109
     {
110
-        $type = isset($options['type']) && ! empty($options['type']) ? $options['type'] : 'text/javascript';
110
+        $type = isset($options['type']) && !empty($options['type']) ? $options['type'] : 'text/javascript';
111 111
 
112 112
         return '<script type="' . $this->escape($type) . '" src="' . $this->escape($path) . '"></script>';
113 113
     }
114 114
 
115 115
     protected function getStylesheetTag(string $path, array $options = []): string
116 116
     {
117
-        $media = isset($options['media']) && ! empty($options['media']) ? $options['media'] : 'screen';
118
-        $type  = isset($options['type']) && ! empty($options['type']) ? $options['type'] : 'text/css';
119
-        $rel   = isset($options['rel']) && ! empty($options['rel']) ? $options['rel'] : 'stylesheet';
117
+        $media = isset($options['media']) && !empty($options['media']) ? $options['media'] : 'screen';
118
+        $type  = isset($options['type']) && !empty($options['type']) ? $options['type'] : 'text/css';
119
+        $rel   = isset($options['rel']) && !empty($options['rel']) ? $options['rel'] : 'stylesheet';
120 120
 
121 121
         return '<link href="' . $this->escape($path)
122 122
             . '" media="' . $this->escape($media)
Please login to merge, or discard this patch.