Preferred formatting (following 'pull left' principle):

```
QgsVectorFileWriter.writeAsVectorFormat(
    line_layer_in, file_name_in, "utf-8", None, "ESRI Shapefile")
```