File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -45,8 +45,8 @@ public function __construct(
4545 public function open ($ filename )
4646 {
4747 $ pathInfo = pathinfo ($ filename );
48- if (! key_exists ('extension ' , $ pathInfo )
49- || ! in_array ($ pathInfo ['extension ' ], $ this ->settings ->getExtraFiletypes ())
48+ if (key_exists ('extension ' , $ pathInfo )
49+ && in_array ($ pathInfo ['extension ' ], $ this ->settings ->getExtraFiletypes ())
5050 ) {
5151 parent ::open ($ filename );
5252 }
@@ -65,8 +65,8 @@ public function save($destination = null, $newName = null)
6565 {
6666 $ fileName = $ this ->_prepareDestination ($ destination , $ newName );
6767 $ pathInfo = pathinfo ($ fileName );
68- if (! key_exists ('extension ' , $ pathInfo )
69- || ! in_array ($ pathInfo ['extension ' ], $ this ->settings ->getExtraFiletypes ())
68+ if (key_exists ('extension ' , $ pathInfo )
69+ && in_array ($ pathInfo ['extension ' ], $ this ->settings ->getExtraFiletypes ())
7070 ) {
7171 parent ::save ($ destination , $ newName );
7272 }
You can’t perform that action at this time.
0 commit comments