@@ -80,9 +80,9 @@ public function getPath(string $code, bool $relativePath = false): string
8080 throw new \RuntimeException ("Code {$ code } is not registered " );
8181 }
8282
83- if (!array_key_exists (static ::PATH , $ directories [$ code ])) {
83+ if (!array_key_exists (self ::PATH , $ directories [$ code ])) {
8484 throw new \RuntimeException (
85- sprintf ('Config var "%s" does not exists ' , static ::PATH )
85+ sprintf ('Config var "%s" does not exists ' , self ::PATH )
8686 );
8787 }
8888
@@ -113,7 +113,7 @@ public function getMagentoRoot(): string
113113 */
114114 public function getInit (): string
115115 {
116- return $ this ->getPath (static ::DIR_INIT );
116+ return $ this ->getPath (self ::DIR_INIT );
117117 }
118118
119119 /**
@@ -122,7 +122,7 @@ public function getInit(): string
122122 */
123123 public function getVar (): string
124124 {
125- return $ this ->getPath (static ::DIR_VAR );
125+ return $ this ->getPath (self ::DIR_VAR );
126126 }
127127
128128 /**
@@ -131,7 +131,7 @@ public function getVar(): string
131131 */
132132 public function getLog (): string
133133 {
134- return $ this ->getPath (static ::DIR_LOG );
134+ return $ this ->getPath (self ::DIR_LOG );
135135 }
136136
137137 /**
@@ -140,7 +140,7 @@ public function getLog(): string
140140 */
141141 public function getGeneratedCode (): string
142142 {
143- return $ this ->getPath (static ::DIR_GENERATED_CODE );
143+ return $ this ->getPath (self ::DIR_GENERATED_CODE );
144144 }
145145
146146 /**
@@ -149,7 +149,7 @@ public function getGeneratedCode(): string
149149 */
150150 public function getGeneratedMetadata (): string
151151 {
152- return $ this ->getPath (static ::DIR_GENERATED_METADATA );
152+ return $ this ->getPath (self ::DIR_GENERATED_METADATA );
153153 }
154154
155155 /**
@@ -161,15 +161,15 @@ public function getGeneratedMetadata(): string
161161 public function getWritableDirectories (): array
162162 {
163163 $ writableDirs = [
164- static ::DIR_ETC ,
165- static ::DIR_MEDIA ,
166- static ::DIR_LOG ,
167- static ::DIR_VIEW_PREPROCESSED ,
164+ self ::DIR_ETC ,
165+ self ::DIR_MEDIA ,
166+ self ::DIR_LOG ,
167+ self ::DIR_VIEW_PREPROCESSED ,
168168 ];
169169
170170 if ($ this ->magentoVersion ->satisfies ('2.1.* ' )) {
171- $ writableDirs [] = static ::DIR_GENERATED_METADATA ;
172- $ writableDirs [] = static ::DIR_GENERATED_CODE ;
171+ $ writableDirs [] = self ::DIR_GENERATED_METADATA ;
172+ $ writableDirs [] = self ::DIR_GENERATED_CODE ;
173173 }
174174
175175 return array_map (function ($ path ) {
@@ -186,10 +186,10 @@ public function getWritableDirectories(): array
186186 public function getMountPoints (): array
187187 {
188188 $ mountPoints = [
189- static ::DIR_ETC ,
190- static ::DIR_VAR ,
191- static ::DIR_MEDIA ,
192- static ::DIR_STATIC
189+ self ::DIR_ETC ,
190+ self ::DIR_VAR ,
191+ self ::DIR_MEDIA ,
192+ self ::DIR_STATIC
193193 ];
194194
195195 return array_map (function ($ path ) {
@@ -203,13 +203,13 @@ public function getMountPoints(): array
203203 private function getDefaultDirectories (): array
204204 {
205205 $ config = [
206- static ::DIR_INIT => [static ::PATH => 'init ' ],
207- static ::DIR_VAR => [static ::PATH => 'var ' ],
208- static ::DIR_LOG => [static ::PATH => 'var/log ' ],
209- static ::DIR_ETC => [static ::PATH => 'app/etc ' ],
210- static ::DIR_MEDIA => [static ::PATH => 'pub/media ' ],
211- static ::DIR_STATIC => [static ::PATH => 'pub/static ' ],
212- static ::DIR_VIEW_PREPROCESSED => [static ::PATH => 'var/view_preprocessed ' ],
206+ self ::DIR_INIT => [self ::PATH => 'init ' ],
207+ self ::DIR_VAR => [self ::PATH => 'var ' ],
208+ self ::DIR_LOG => [self ::PATH => 'var/log ' ],
209+ self ::DIR_ETC => [self ::PATH => 'app/etc ' ],
210+ self ::DIR_MEDIA => [self ::PATH => 'pub/media ' ],
211+ self ::DIR_STATIC => [self ::PATH => 'pub/static ' ],
212+ self ::DIR_VIEW_PREPROCESSED => [self ::PATH => 'var/view_preprocessed ' ],
213213 ];
214214
215215 return $ config ;
@@ -224,11 +224,11 @@ private function getDefaultVariadicDirectories(): array
224224 $ config = [];
225225
226226 if ($ this ->magentoVersion ->satisfies ('2.1.* ' )) {
227- $ config [static ::DIR_GENERATED_CODE ] = [static ::PATH => 'var/generation ' ];
228- $ config [static ::DIR_GENERATED_METADATA ] = [static ::PATH => 'var/di ' ];
227+ $ config [self ::DIR_GENERATED_CODE ] = [self ::PATH => 'var/generation ' ];
228+ $ config [self ::DIR_GENERATED_METADATA ] = [self ::PATH => 'var/di ' ];
229229 } else {
230- $ config [static ::DIR_GENERATED_CODE ] = [static ::PATH => 'generated/code ' ];
231- $ config [static ::DIR_GENERATED_METADATA ] = [static ::PATH => 'generated/metadata ' ];
230+ $ config [self ::DIR_GENERATED_CODE ] = [self ::PATH => 'generated/code ' ];
231+ $ config [self ::DIR_GENERATED_METADATA ] = [self ::PATH => 'generated/metadata ' ];
232232 }
233233
234234 return $ config ;
0 commit comments