Passed
Push — master ( f8cb44...13b119 )
by Luis
04:20 queued 01:13
created
src/classes/processor/neato.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -21,17 +21,17 @@
 block discarded – undo
21 21
         return 'image/png';
22 22
     }
23 23
 
24
-    public function execute( $infile, $outfile, $type ) 
24
+    public function execute($infile, $outfile, $type) 
25 25
     {
26 26
         exec(
27
-            'neato -Tpng -o ' . escapeshellarg( $outfile ) . ' ' . escapeshellarg( $infile ),
27
+            'neato -Tpng -o ' . escapeshellarg($outfile) . ' ' . escapeshellarg($infile),
28 28
             $output,
29 29
             $return
30 30
         );
31 31
 
32
-        if ( $return !== 0 ) 
32
+        if ($return !== 0) 
33 33
         {
34
-            throw new plProcessorExternalExecutionException( $output );
34
+            throw new plProcessorExternalExecutionException($output);
35 35
         }
36 36
     }
37 37
 }
Please login to merge, or discard this patch.
src/classes/php/attribute.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -4,7 +4,7 @@  discard block
 block discarded – undo
4 4
 {
5 5
     private $properties;
6 6
 
7
-    public function __construct( $name, $modifier = 'public', $type = null ) 
7
+    public function __construct($name, $modifier = 'public', $type = null) 
8 8
     {
9 9
         $this->properties = array( 
10 10
             'name'      =>  $name,
@@ -13,20 +13,20 @@  discard block
 block discarded – undo
13 13
         );
14 14
     }
15 15
 
16
-    public function __get( $key )
16
+    public function __get($key)
17 17
     {
18
-        if ( !array_key_exists( $key, $this->properties ) )
18
+        if (!array_key_exists($key, $this->properties))
19 19
         {
20
-            throw new plBasePropertyException( $key, plBasePropertyException::READ );
20
+            throw new plBasePropertyException($key, plBasePropertyException::READ);
21 21
         }
22 22
         return $this->properties[$key];
23 23
     }
24 24
 
25
-    public function __set( $key, $val )
25
+    public function __set($key, $val)
26 26
     {
27
-        if ( !array_key_exists( $key, $this->properties ) )
27
+        if (!array_key_exists($key, $this->properties))
28 28
         {
29
-            throw new plBasePropertyException( $key, plBasePropertyException::WRITE );
29
+            throw new plBasePropertyException($key, plBasePropertyException::WRITE);
30 30
         }
31 31
         $this->properties[$key] = $val;            
32 32
     }
Please login to merge, or discard this patch.
src/classes/php/class.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -4,7 +4,7 @@  discard block
 block discarded – undo
4 4
 {
5 5
     private $properties;
6 6
 
7
-    public function __construct( $name, $attributes = array(), $functions = array(), $implements = array(), $extends = null ) 
7
+    public function __construct($name, $attributes = array(), $functions = array(), $implements = array(), $extends = null) 
8 8
     {
9 9
         $this->properties = array( 
10 10
             'name'          =>  $name,
@@ -15,20 +15,20 @@  discard block
 block discarded – undo
15 15
         );
16 16
     }
17 17
 
18
-    public function __get( $key )
18
+    public function __get($key)
19 19
     {
20
-        if ( !array_key_exists( $key, $this->properties ) )
20
+        if (!array_key_exists($key, $this->properties))
21 21
         {
22
-            throw new plBasePropertyException( $key, plBasePropertyException::READ );
22
+            throw new plBasePropertyException($key, plBasePropertyException::READ);
23 23
         }
24 24
         return $this->properties[$key];
25 25
     }
26 26
 
27
-    public function __set( $key, $val )
27
+    public function __set($key, $val)
28 28
     {
29
-        if ( !array_key_exists( $key, $this->properties ) )
29
+        if (!array_key_exists($key, $this->properties))
30 30
         {
31
-            throw new plBasePropertyException( $key, plBasePropertyException::WRITE );
31
+            throw new plBasePropertyException($key, plBasePropertyException::WRITE);
32 32
         }
33 33
         $this->properties[$key] = $val;            
34 34
     }
Please login to merge, or discard this patch.
src/classes/php/function.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -4,7 +4,7 @@  discard block
 block discarded – undo
4 4
 {
5 5
     private $properties;
6 6
 
7
-    public function __construct( $name, $modifier = 'public', $params = array() ) 
7
+    public function __construct($name, $modifier = 'public', $params = array()) 
8 8
     {
9 9
         $this->properties = array( 
10 10
             'name'      =>  $name,
@@ -13,20 +13,20 @@  discard block
 block discarded – undo
13 13
         );
14 14
     }
15 15
 
16
-    public function __get( $key )
16
+    public function __get($key)
17 17
     {
18
-        if ( !array_key_exists( $key, $this->properties ) )
18
+        if (!array_key_exists($key, $this->properties))
19 19
         {
20
-            throw new plBasePropertyException( $key, plBasePropertyException::READ );
20
+            throw new plBasePropertyException($key, plBasePropertyException::READ);
21 21
         }
22 22
         return $this->properties[$key];
23 23
     }
24 24
 
25
-    public function __set( $key, $val )
25
+    public function __set($key, $val)
26 26
     {
27
-        if ( !array_key_exists( $key, $this->properties ) )
27
+        if (!array_key_exists($key, $this->properties))
28 28
         {
29
-            throw new plBasePropertyException( $key, plBasePropertyException::WRITE );
29
+            throw new plBasePropertyException($key, plBasePropertyException::WRITE);
30 30
         }
31 31
         $this->properties[$key] = $val;            
32 32
     }
Please login to merge, or discard this patch.
src/classes/php/functionParameter.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -4,7 +4,7 @@  discard block
 block discarded – undo
4 4
 {
5 5
     private $properties;
6 6
 
7
-    public function __construct( $name, $type = null ) 
7
+    public function __construct($name, $type = null) 
8 8
     {
9 9
         $this->properties = array( 
10 10
             'name'      =>  $name,
@@ -12,20 +12,20 @@  discard block
 block discarded – undo
12 12
         );
13 13
     }
14 14
 
15
-    public function __get( $key )
15
+    public function __get($key)
16 16
     {
17
-        if ( !array_key_exists( $key, $this->properties ) )
17
+        if (!array_key_exists($key, $this->properties))
18 18
         {
19
-            throw new plBasePropertyException( $key, plBasePropertyException::READ );
19
+            throw new plBasePropertyException($key, plBasePropertyException::READ);
20 20
         }
21 21
         return $this->properties[$key];
22 22
     }
23 23
 
24
-    public function __set( $key, $val )
24
+    public function __set($key, $val)
25 25
     {
26
-        if ( !array_key_exists( $key, $this->properties ) )
26
+        if (!array_key_exists($key, $this->properties))
27 27
         {
28
-            throw new plBasePropertyException( $key, plBasePropertyException::WRITE );
28
+            throw new plBasePropertyException($key, plBasePropertyException::WRITE);
29 29
         }
30 30
         $this->properties[$key] = $val;            
31 31
     }
Please login to merge, or discard this patch.
src/classes/php/interface.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -4,7 +4,7 @@  discard block
 block discarded – undo
4 4
 {
5 5
     private $properties;
6 6
 
7
-    public function __construct( $name, $functions = array(), $extends = null ) 
7
+    public function __construct($name, $functions = array(), $extends = null) 
8 8
     {
9 9
         $this->properties = array( 
10 10
             'name'      =>  $name,
@@ -13,20 +13,20 @@  discard block
 block discarded – undo
13 13
         );
14 14
     }
15 15
 
16
-    public function __get( $key )
16
+    public function __get($key)
17 17
     {
18
-        if ( !array_key_exists( $key, $this->properties ) )
18
+        if (!array_key_exists($key, $this->properties))
19 19
         {
20
-            throw new plBasePropertyException( $key, plBasePropertyException::READ );
20
+            throw new plBasePropertyException($key, plBasePropertyException::READ);
21 21
         }
22 22
         return $this->properties[$key];
23 23
     }
24 24
 
25
-    public function __set( $key, $val )
25
+    public function __set($key, $val)
26 26
     {
27
-        if ( !array_key_exists( $key, $this->properties ) )
27
+        if (!array_key_exists($key, $this->properties))
28 28
         {
29
-            throw new plBasePropertyException( $key, plBasePropertyException::WRITE );
29
+            throw new plBasePropertyException($key, plBasePropertyException::WRITE);
30 30
         }
31 31
         $this->properties[$key] = $val;            
32 32
     }
Please login to merge, or discard this patch.
src/classes/base.php 1 patch
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -5,24 +5,24 @@  discard block
 block discarded – undo
5 5
     private static $autoload = array();
6 6
     private static $autoloadDirectory = array();
7 7
 
8
-    public static function autoload( $classname )
8
+    public static function autoload($classname)
9 9
     {
10
-        if ( isset( self::$autoload[$classname] ) ) 
10
+        if (isset(self::$autoload[$classname])) 
11 11
         {
12
-            include_once( self::$autoload[$classname] );
12
+            include_once(self::$autoload[$classname]);
13 13
         }
14 14
     }
15 15
 
16
-    public static function addAutoloadDirectory( $directory ) 
16
+    public static function addAutoloadDirectory($directory) 
17 17
     {
18
-        if ( !in_array( $directory, self::$autoloadDirectory ) && is_dir( $directory ) && is_readable( $directory ) )
18
+        if (!in_array($directory, self::$autoloadDirectory) && is_dir($directory) && is_readable($directory))
19 19
         {
20 20
             self::$autoloadDirectory[] = $directory;
21
-            foreach( $glob = glob( $directory."/*.php" ) as $file )
21
+            foreach ($glob = glob($directory . "/*.php") as $file)
22 22
             {
23
-                if ( is_array( $autoload = include( $file ) ) ) 
23
+                if (is_array($autoload = include($file))) 
24 24
                 {
25
-                    self::$autoload = array_merge( $autoload, self::$autoload );
25
+                    self::$autoload = array_merge($autoload, self::$autoload);
26 26
                 }
27 27
             }
28 28
         }
@@ -30,7 +30,7 @@  discard block
 block discarded – undo
30 30
 
31 31
     public static function getAutoloadClasses() 
32 32
     {
33
-        return array_keys( self::$autoload );
33
+        return array_keys(self::$autoload);
34 34
     }
35 35
 }
36 36
 
Please login to merge, or discard this patch.
src/exceptions/phuml/invalidProcessorChain.php 2 patches
Indentation   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -6,11 +6,11 @@
 block discarded – undo
6 6
     {
7 7
         parent::__construct( 
8 8
             'To processors in the chain are incompatible. The first processor\'s output is "' 
9
-          . $first 
10
-          . '". The next Processor in the queue does only support the following input types: ' 
11
-          . implode( ', ', $second ) 
12
-          . '.' 
13
-       );
9
+            . $first 
10
+            . '". The next Processor in the queue does only support the following input types: ' 
11
+            . implode( ', ', $second ) 
12
+            . '.' 
13
+        );
14 14
     }
15 15
 }
16 16
 
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -2,13 +2,13 @@
 block discarded – undo
2 2
 
3 3
 class plPhumlInvalidProcessorChainException extends Exception 
4 4
 {
5
-    public function __construct( $first, $second ) 
5
+    public function __construct($first, $second) 
6 6
     {
7 7
         parent::__construct( 
8 8
             'To processors in the chain are incompatible. The first processor\'s output is "' 
9 9
           . $first 
10 10
           . '". The next Processor in the queue does only support the following input types: ' 
11
-          . implode( ', ', $second ) 
11
+          . implode(', ', $second) 
12 12
           . '.' 
13 13
        );
14 14
     }
Please login to merge, or discard this patch.
src/exceptions/phuml/invalidProcessor.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -4,7 +4,7 @@
 block discarded – undo
4 4
 {
5 5
     public function __construct() 
6 6
     {
7
-        parent::__construct( 'The supplied processor is invalid.' );
7
+        parent::__construct('The supplied processor is invalid.');
8 8
     }
9 9
 }
10 10
 
Please login to merge, or discard this patch.