Completed
Push — master ( 171213...1d6a93 )
by Aimeos
02:06
created
lib/custom/src/MW/Filesystem/Manager/Laravel.php 1 patch
Spacing   +11 added lines, -11 removed lines patch added patch discarded remove patch
@@ -31,9 +31,9 @@  discard block
 block discarded – undo
31 31
 	 * @param \Aimeos\MW\Config\Iface $config Configuration object
32 32
 	 * @param string $tempdir Directory for storing temporary files
33 33
 	 */
34
-	public function __construct( \Illuminate\Filesystem\FilesystemManager $fsm, \Aimeos\MW\Config\Iface $config, $tempdir )
34
+	public function __construct(\Illuminate\Filesystem\FilesystemManager $fsm, \Aimeos\MW\Config\Iface $config, $tempdir)
35 35
 	{
36
-		parent::__construct( $config );
36
+		parent::__construct($config);
37 37
 
38 38
 		$this->fsm = $fsm;
39 39
 		$this->tempdir = $tempdir;
@@ -45,8 +45,8 @@  discard block
 block discarded – undo
45 45
 	 */
46 46
 	public function __destruct()
47 47
 	{
48
-		foreach( $this->objects as $key => $object ) {
49
-			unset( $this->objects[$key] );
48
+		foreach ($this->objects as $key => $object) {
49
+			unset($this->objects[$key]);
50 50
 		}
51 51
 	}
52 52
 
@@ -60,7 +60,7 @@  discard block
 block discarded – undo
60 60
 
61 61
 		$this->objects = [];
62 62
 
63
-		return get_object_vars( $this );
63
+		return get_object_vars($this);
64 64
 	}
65 65
 
66 66
 
@@ -71,19 +71,19 @@  discard block
 block discarded – undo
71 71
 	 * @return \Aimeos\MW\Filesystem\Iface File system object
72 72
 	 * @throws \Aimeos\MW\Filesystem\Exception If an no configuration for that name is found
73 73
 	 */
74
-	public function get( $name )
74
+	public function get($name)
75 75
 	{
76
-		$key = $this->getConfig( $name );
76
+		$key = $this->getConfig($name);
77 77
 
78
-		if( is_string( $key ) )
78
+		if (is_string($key))
79 79
 		{
80
-			if( !isset( $this->objects[$key] ) ) {
81
-				$this->objects[$key] = new \Aimeos\MW\Filesystem\Laravel( $this->fsm->disk( $key ), $this->tempdir );
80
+			if (!isset($this->objects[$key])) {
81
+				$this->objects[$key] = new \Aimeos\MW\Filesystem\Laravel($this->fsm->disk($key), $this->tempdir);
82 82
 			}
83 83
 
84 84
 			return $this->objects[$key];
85 85
 		}
86 86
 
87
-		return parent::get( $name );
87
+		return parent::get($name);
88 88
 	}
89 89
 }
Please login to merge, or discard this patch.