Completed
Push — master ( 3aaa57...3b1bb7 )
by Aimeos
02:24
created
lib/custom/src/MW/Filesystem/FlyAwsS3.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -33,19 +33,19 @@
 block discarded – undo
33 33
 	 */
34 34
 	protected function getProvider()
35 35
 	{
36
-		if( !isset( $this->fs ) )
36
+		if (!isset($this->fs))
37 37
 		{
38 38
 			$config = $this->getConfig();
39 39
 
40
-			if( !isset( $config['bucket'] ) ) {
41
-				throw new Exception( sprintf( 'Configuration option "%1$s" missing', 'bucket' ) );
40
+			if (!isset($config['bucket'])) {
41
+				throw new Exception(sprintf('Configuration option "%1$s" missing', 'bucket'));
42 42
 			}
43 43
 
44
-			$prefix = ( isset( $config['prefix'] ) ? $config['prefix'] : null );
44
+			$prefix = (isset($config['prefix']) ? $config['prefix'] : null);
45 45
 
46
-			$client = S3Client::factory( $config );
47
-			$adapter = new AwsS3Adapter( $client, $config['bucket'], $prefix );
48
-			$this->fs = new Filesystem( $adapter );
46
+			$client = S3Client::factory($config);
47
+			$adapter = new AwsS3Adapter($client, $config['bucket'], $prefix);
48
+			$this->fs = new Filesystem($adapter);
49 49
 		}
50 50
 
51 51
 		return $this->fs;
Please login to merge, or discard this patch.
lib/custom/src/MW/Filesystem/FlyAzure.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -33,20 +33,20 @@
 block discarded – undo
33 33
 	 */
34 34
 	protected function getProvider()
35 35
 	{
36
-		if( !isset( $this->fs ) )
36
+		if (!isset($this->fs))
37 37
 		{
38 38
 			$config = $this->getConfig();
39 39
 
40
-			if( !isset( $config['endpoint'] ) ) {
41
-				throw new Exception( sprintf( 'Configuration option "%1$s" missing', 'endpoint' ) );
40
+			if (!isset($config['endpoint'])) {
41
+				throw new Exception(sprintf('Configuration option "%1$s" missing', 'endpoint'));
42 42
 			}
43 43
 
44
-			if( !isset( $config['container'] ) ) {
45
-				throw new Exception( sprintf( 'Configuration option "%1$s" missing', 'container' ) );
44
+			if (!isset($config['container'])) {
45
+				throw new Exception(sprintf('Configuration option "%1$s" missing', 'container'));
46 46
 			}
47 47
 
48
-			$service = ServicesBuilder::getInstance()->createBlobService( $config['endpoint'] );
49
-			$this->fs = new Filesystem( new AzureAdapter( $service, $config['container'] ) );
48
+			$service = ServicesBuilder::getInstance()->createBlobService($config['endpoint']);
49
+			$this->fs = new Filesystem(new AzureAdapter($service, $config['container']));
50 50
 		}
51 51
 
52 52
 		return $this->fs;
Please login to merge, or discard this patch.
lib/custom/src/MW/Filesystem/FlyCopy.php 1 patch
Spacing   +12 added lines, -12 removed lines patch added patch discarded remove patch
@@ -33,30 +33,30 @@
 block discarded – undo
33 33
 	 */
34 34
 	protected function getProvider()
35 35
 	{
36
-		if( !isset( $this->fs ) )
36
+		if (!isset($this->fs))
37 37
 		{
38 38
 			$config = $this->getConfig();
39 39
 
40
-			if( !isset( $config['consumerkey'] ) ) {
41
-				throw new Exception( sprintf( 'Configuration option "%1$s" missing', 'consumerkey' ) );
40
+			if (!isset($config['consumerkey'])) {
41
+				throw new Exception(sprintf('Configuration option "%1$s" missing', 'consumerkey'));
42 42
 			}
43 43
 
44
-			if( !isset( $config['consumersecret'] ) ) {
45
-				throw new Exception( sprintf( 'Configuration option "%1$s" missing', 'consumersecret' ) );
44
+			if (!isset($config['consumersecret'])) {
45
+				throw new Exception(sprintf('Configuration option "%1$s" missing', 'consumersecret'));
46 46
 			}
47 47
 
48
-			if( !isset( $config['accesstoken'] ) ) {
49
-				throw new Exception( sprintf( 'Configuration option "%1$s" missing', 'accesstoken' ) );
48
+			if (!isset($config['accesstoken'])) {
49
+				throw new Exception(sprintf('Configuration option "%1$s" missing', 'accesstoken'));
50 50
 			}
51 51
 
52
-			if( !isset( $config['tokensecret'] ) ) {
53
-				throw new Exception( sprintf( 'Configuration option "%1$s" missing', 'tokensecret' ) );
52
+			if (!isset($config['tokensecret'])) {
53
+				throw new Exception(sprintf('Configuration option "%1$s" missing', 'tokensecret'));
54 54
 			}
55 55
 
56
-			$prefix = ( isset( $config['prefix'] ) ? $config['prefix'] : null );
56
+			$prefix = (isset($config['prefix']) ? $config['prefix'] : null);
57 57
 
58
-			$client = new API( $config['consumerkey'], $config['consumersecret'], $config['accesstoken'], $config['tokensecret'] );
59
-			$this->fs = new Filesystem( new CopyAdapter( $client, $prefix ) );
58
+			$client = new API($config['consumerkey'], $config['consumersecret'], $config['accesstoken'], $config['tokensecret']);
59
+			$this->fs = new Filesystem(new CopyAdapter($client, $prefix));
60 60
 		}
61 61
 
62 62
 		return $this->fs;
Please login to merge, or discard this patch.
lib/custom/src/MW/Filesystem/FlyDropbox.php 1 patch
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -33,22 +33,22 @@
 block discarded – undo
33 33
 	 */
34 34
 	protected function getProvider()
35 35
 	{
36
-		if( !isset( $this->fs ) )
36
+		if (!isset($this->fs))
37 37
 		{
38 38
 			$config = $this->getConfig();
39 39
 
40
-			if( !isset( $config['accesstoken'] ) ) {
41
-				throw new Exception( sprintf( 'Configuration option "%1$s" missing', 'accesstoken' ) );
40
+			if (!isset($config['accesstoken'])) {
41
+				throw new Exception(sprintf('Configuration option "%1$s" missing', 'accesstoken'));
42 42
 			}
43 43
 
44
-			if( !isset( $config['appsecret'] ) ) {
45
-				throw new Exception( sprintf( 'Configuration option "%1$s" missing', 'appsecret' ) );
44
+			if (!isset($config['appsecret'])) {
45
+				throw new Exception(sprintf('Configuration option "%1$s" missing', 'appsecret'));
46 46
 			}
47 47
 
48
-			$prefix = ( isset( $config['prefix'] ) ? $config['prefix'] : null );
48
+			$prefix = (isset($config['prefix']) ? $config['prefix'] : null);
49 49
 
50
-			$client = new Client( $config['accesstoken'], $config['appsecret'] );
51
-			$this->fs = new Filesystem( new DropboxAdapter( $client, $prefix ) );
50
+			$client = new Client($config['accesstoken'], $config['appsecret']);
51
+			$this->fs = new Filesystem(new DropboxAdapter($client, $prefix));
52 52
 		}
53 53
 
54 54
 		return $this->fs;
Please login to merge, or discard this patch.
lib/custom/src/MW/Filesystem/FlyFtp.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -32,10 +32,10 @@
 block discarded – undo
32 32
 	 */
33 33
 	protected function getProvider()
34 34
 	{
35
-		if( !isset( $this->fs ) )
35
+		if (!isset($this->fs))
36 36
 		{
37 37
 			$config = $this->getConfig();
38
-			$this->fs = new Filesystem( new FtpAdapter( $config ) );
38
+			$this->fs = new Filesystem(new FtpAdapter($config));
39 39
 		}
40 40
 
41 41
 		return $this->fs;
Please login to merge, or discard this patch.
lib/custom/src/MW/Filesystem/FlyGridfs.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -32,16 +32,16 @@
 block discarded – undo
32 32
 	 */
33 33
 	protected function getProvider()
34 34
 	{
35
-		if( !isset( $this->fs ) )
35
+		if (!isset($this->fs))
36 36
 		{
37 37
 			$config = $this->getConfig();
38 38
 
39
-			if( !isset( $config['dbname'] ) ) {
40
-				throw new Exception( sprintf( 'Configuration option "%1$s" missing', 'dbname' ) );
39
+			if (!isset($config['dbname'])) {
40
+				throw new Exception(sprintf('Configuration option "%1$s" missing', 'dbname'));
41 41
 			}
42 42
 
43 43
 			$client = new \MongoClient();
44
-			$this->fs = new Filesystem( new GridFSAdapter( $client->selectDB( $config['dbname'] )->getGridFS() ) );
44
+			$this->fs = new Filesystem(new GridFSAdapter($client->selectDB($config['dbname'])->getGridFS()));
45 45
 		}
46 46
 
47 47
 		return $this->fs;
Please login to merge, or discard this patch.
lib/custom/src/MW/Filesystem/FlyLocal.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -32,16 +32,16 @@
 block discarded – undo
32 32
 	 */
33 33
 	protected function getProvider()
34 34
 	{
35
-		if( !isset( $this->fs ) )
35
+		if (!isset($this->fs))
36 36
 		{
37 37
 			$config = $this->getConfig();
38 38
 
39
-			if( !isset( $config['basedir'] ) ) {
40
-				throw new Exception( sprintf( 'Configuration option "%1$s" missing', 'basedir' ) );
39
+			if (!isset($config['basedir'])) {
40
+				throw new Exception(sprintf('Configuration option "%1$s" missing', 'basedir'));
41 41
 			}
42 42
 
43
-			$adapter = new Local( $config['basedir'], LOCK_EX, Local::SKIP_LINKS, $config );
44
-			$this->fs = new Filesystem( $adapter );
43
+			$adapter = new Local($config['basedir'], LOCK_EX, Local::SKIP_LINKS, $config);
44
+			$this->fs = new Filesystem($adapter);
45 45
 		}
46 46
 
47 47
 		return $this->fs;
Please login to merge, or discard this patch.
lib/custom/src/MW/Filesystem/FlyMemory.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -32,8 +32,8 @@
 block discarded – undo
32 32
 	 */
33 33
 	protected function getProvider()
34 34
 	{
35
-		if( !isset( $this->fs ) ) {
36
-			$this->fs = new Filesystem( new MemoryAdapter() );
35
+		if (!isset($this->fs)) {
36
+			$this->fs = new Filesystem(new MemoryAdapter());
37 37
 		}
38 38
 
39 39
 		return $this->fs;
Please login to merge, or discard this patch.
lib/custom/src/MW/Filesystem/FlyNone.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -32,8 +32,8 @@
 block discarded – undo
32 32
 	 */
33 33
 	protected function getProvider()
34 34
 	{
35
-		if( !isset( $this->fs ) ) {
36
-			$this->fs = new Filesystem( new NullAdapter() );
35
+		if (!isset($this->fs)) {
36
+			$this->fs = new Filesystem(new NullAdapter());
37 37
 		}
38 38
 
39 39
 		return $this->fs;
Please login to merge, or discard this patch.