@@ -29,7 +29,7 @@ |
||
| 29 | 29 | /** |
| 30 | 30 | * Checks if $obj contains $property and if not, returns $alternative. |
| 31 | 31 | * |
| 32 | - * @param object $obj Object to check |
|
| 32 | + * @param \SSpkS\Package\Package $obj Object to check |
|
| 33 | 33 | * @param string $property Property to check for |
| 34 | 34 | * @param mixed $alternative Alternative to return if key not found |
| 35 | 35 | * @return mixed Value from $obj->$property or $alternative |
@@ -240,10 +240,10 @@ |
||
| 240 | 240 | throw new \Exception('Package ' . $this->filepath . ' not readable! Will be ignored in the future. Please try again!'); |
| 241 | 241 | } |
| 242 | 242 | foreach($p as $file) { |
| 243 | - if (substr($file, strrpos($file, "/")+1) == 'WIZARD_UIFILES') { |
|
| 244 | - touch($this->wizfile); |
|
| 245 | - return true; |
|
| 246 | - } |
|
| 243 | + if (substr($file, strrpos($file, "/")+1) == 'WIZARD_UIFILES') { |
|
| 244 | + touch($this->wizfile); |
|
| 245 | + return true; |
|
| 246 | + } |
|
| 247 | 247 | } |
| 248 | 248 | return false; |
| 249 | 249 | } |
@@ -56,7 +56,7 @@ discard block |
||
| 56 | 56 | $this->filenameNoExt = basename($filename, '.spk'); |
| 57 | 57 | $this->filepathNoExt = $this->config->paths['cache'] . $this->filenameNoExt; |
| 58 | 58 | $this->metafile = $this->filepathNoExt . '.nfo'; |
| 59 | - $this->wizfile = $this->filepathNoExt . '.wiz'; |
|
| 59 | + $this->wizfile = $this->filepathNoExt . '.wiz'; |
|
| 60 | 60 | } |
| 61 | 61 | |
| 62 | 62 | /** |
@@ -239,8 +239,8 @@ discard block |
||
| 239 | 239 | rename($this->filepath, $this->filepath . '.invalid'); |
| 240 | 240 | throw new \Exception('Package ' . $this->filepath . ' not readable! Will be ignored in the future. Please try again!'); |
| 241 | 241 | } |
| 242 | - foreach($p as $file) { |
|
| 243 | - if (substr($file, strrpos($file, "/")+1) == 'WIZARD_UIFILES') { |
|
| 242 | + foreach ($p as $file) { |
|
| 243 | + if (substr($file, strrpos($file, "/") + 1) == 'WIZARD_UIFILES') { |
|
| 244 | 244 | touch($this->wizfile); |
| 245 | 245 | return true; |
| 246 | 246 | } |