Completed
Branch dependabot/npm_and_yarn/wordpr... (4c4f9d)
by
unknown
09:05 queued 06:36
created
core/services/container/SharedCoffeeMaker.php 1 patch
Indentation   +37 added lines, -37 removed lines patch added patch discarded remove patch
@@ -18,43 +18,43 @@
 block discarded – undo
18 18
 {
19 19
 
20 20
 
21
-    /**
22
-     * @return string
23
-     */
24
-    public function type()
25
-    {
26
-        return CoffeeMaker::BREW_SHARED;
27
-    }
21
+	/**
22
+	 * @return string
23
+	 */
24
+	public function type()
25
+	{
26
+		return CoffeeMaker::BREW_SHARED;
27
+	}
28 28
 
29 29
 
30
-    /**
31
-     * @param RecipeInterface $recipe
32
-     * @param array           $arguments
33
-     * @return mixed
34
-     */
35
-    public function brew(RecipeInterface $recipe, $arguments = array())
36
-    {
37
-        $this->resolveClassAndFilepath($recipe);
38
-        $reflector = $this->injector()->getReflectionClass($recipe->fqcn());
39
-        $method = $this->resolveInstantiationMethod($reflector);
40
-        switch ($method) {
41
-            case 'instance':
42
-            case 'new_instance':
43
-            case 'new_instance_from_db':
44
-                $service = call_user_func_array(
45
-                    array($reflector->getName(), $method),
46
-                    $this->injector()->resolveDependencies($recipe, $reflector, $arguments)
47
-                );
48
-                break;
49
-            case 'newInstance':
50
-                $service = $reflector->newInstance();
51
-                break;
52
-            case 'newInstanceArgs':
53
-            default:
54
-                $service = $reflector->newInstanceArgs(
55
-                    $this->injector()->resolveDependencies($recipe, $reflector, $arguments)
56
-                );
57
-        }
58
-        return $this->coffeePot()->addService($recipe->identifier(), $service);
59
-    }
30
+	/**
31
+	 * @param RecipeInterface $recipe
32
+	 * @param array           $arguments
33
+	 * @return mixed
34
+	 */
35
+	public function brew(RecipeInterface $recipe, $arguments = array())
36
+	{
37
+		$this->resolveClassAndFilepath($recipe);
38
+		$reflector = $this->injector()->getReflectionClass($recipe->fqcn());
39
+		$method = $this->resolveInstantiationMethod($reflector);
40
+		switch ($method) {
41
+			case 'instance':
42
+			case 'new_instance':
43
+			case 'new_instance_from_db':
44
+				$service = call_user_func_array(
45
+					array($reflector->getName(), $method),
46
+					$this->injector()->resolveDependencies($recipe, $reflector, $arguments)
47
+				);
48
+				break;
49
+			case 'newInstance':
50
+				$service = $reflector->newInstance();
51
+				break;
52
+			case 'newInstanceArgs':
53
+			default:
54
+				$service = $reflector->newInstanceArgs(
55
+					$this->injector()->resolveDependencies($recipe, $reflector, $arguments)
56
+				);
57
+		}
58
+		return $this->coffeePot()->addService($recipe->identifier(), $service);
59
+	}
60 60
 }
Please login to merge, or discard this patch.
core/services/container/LoadOnlyCoffeeMaker.php 1 patch
Indentation   +17 added lines, -17 removed lines patch added patch discarded remove patch
@@ -21,23 +21,23 @@
 block discarded – undo
21 21
 class LoadOnlyCoffeeMaker extends CoffeeMaker
22 22
 {
23 23
 
24
-    /**
25
-     * @return string
26
-     */
27
-    public function type()
28
-    {
29
-        return CoffeeMaker::BREW_LOAD_ONLY;
30
-    }
24
+	/**
25
+	 * @return string
26
+	 */
27
+	public function type()
28
+	{
29
+		return CoffeeMaker::BREW_LOAD_ONLY;
30
+	}
31 31
 
32 32
 
33
-    /**
34
-     * @param RecipeInterface $recipe
35
-     * @param array           $arguments
36
-     * @return mixed
37
-     * @throws InvalidClassException
38
-     */
39
-    public function brew(RecipeInterface $recipe, $arguments = array())
40
-    {
41
-        return $this->resolveClassAndFilepath($recipe);
42
-    }
33
+	/**
34
+	 * @param RecipeInterface $recipe
35
+	 * @param array           $arguments
36
+	 * @return mixed
37
+	 * @throws InvalidClassException
38
+	 */
39
+	public function brew(RecipeInterface $recipe, $arguments = array())
40
+	{
41
+		return $this->resolveClassAndFilepath($recipe);
42
+	}
43 43
 }
Please login to merge, or discard this patch.
core/services/progress_steps/ProgressStepCollection.php 1 patch
Indentation   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -17,13 +17,13 @@
 block discarded – undo
17 17
 class ProgressStepCollection extends Collection
18 18
 {
19 19
 
20
-    /**
21
-     * ProgressStepCollection constructor.
22
-     *
23
-     * @throws \EventEspresso\core\exceptions\InvalidInterfaceException
24
-     */
25
-    public function __construct()
26
-    {
27
-        parent::__construct('\EventEspresso\core\services\progress_steps\ProgressStepInterface');
28
-    }
20
+	/**
21
+	 * ProgressStepCollection constructor.
22
+	 *
23
+	 * @throws \EventEspresso\core\exceptions\InvalidInterfaceException
24
+	 */
25
+	public function __construct()
26
+	{
27
+		parent::__construct('\EventEspresso\core\services\progress_steps\ProgressStepInterface');
28
+	}
29 29
 }
Please login to merge, or discard this patch.
core/services/loaders/LoaderDecorator.php 1 patch
Indentation   +13 added lines, -13 removed lines patch added patch discarded remove patch
@@ -14,19 +14,19 @@
 block discarded – undo
14 14
 {
15 15
 
16 16
 
17
-    /**
18
-     * @var LoaderDecoratorInterface $loader
19
-     */
20
-    protected $loader;
17
+	/**
18
+	 * @var LoaderDecoratorInterface $loader
19
+	 */
20
+	protected $loader;
21 21
 
22 22
 
23
-    /**
24
-     * LoaderDecorator constructor.
25
-     *
26
-     * @param LoaderDecoratorInterface $loader
27
-     */
28
-    public function __construct(LoaderDecoratorInterface $loader)
29
-    {
30
-        $this->loader = $loader;
31
-    }
23
+	/**
24
+	 * LoaderDecorator constructor.
25
+	 *
26
+	 * @param LoaderDecoratorInterface $loader
27
+	 */
28
+	public function __construct(LoaderDecoratorInterface $loader)
29
+	{
30
+		$this->loader = $loader;
31
+	}
32 32
 }
Please login to merge, or discard this patch.
core/services/locators/Locator.php 2 patches
Indentation   +39 added lines, -39 removed lines patch added patch discarded remove patch
@@ -17,43 +17,43 @@
 block discarded – undo
17 17
 abstract class Locator implements LocatorInterface, Countable
18 18
 {
19 19
 
20
-    /**
21
-     * @var array $flags
22
-     */
23
-    protected $flags = array();
24
-
25
-
26
-    /**
27
-     * FileLocator constructor.
28
-     *
29
-     * @access public
30
-     * @param array $flags controls how files are found and/or file data is returned
31
-     * @throws \EventEspresso\core\exceptions\InvalidDataTypeException
32
-     */
33
-    public function __construct($flags = array())
34
-    {
35
-        if (empty($flags)) {
36
-            $flags = array(
37
-                FilesystemIterator::SKIP_DOTS,
38
-                FilesystemIterator::UNIX_PATHS,
39
-                FilesystemIterator::CURRENT_AS_PATHNAME,
40
-            );
41
-        }
42
-        $this->setFlags($flags);
43
-    }
44
-
45
-
46
-    /**
47
-     * @see    http://php.net/manual/en/class.filesystemiterator.php#filesystemiterator.constants
48
-     * @access public
49
-     * @param array $flags
50
-     * @throws \EventEspresso\core\exceptions\InvalidDataTypeException
51
-     */
52
-    public function setFlags($flags)
53
-    {
54
-        if (! is_array($flags)) {
55
-            throw new InvalidDataTypeException('$flags', $flags, 'array');
56
-        }
57
-        $this->flags = $flags;
58
-    }
20
+	/**
21
+	 * @var array $flags
22
+	 */
23
+	protected $flags = array();
24
+
25
+
26
+	/**
27
+	 * FileLocator constructor.
28
+	 *
29
+	 * @access public
30
+	 * @param array $flags controls how files are found and/or file data is returned
31
+	 * @throws \EventEspresso\core\exceptions\InvalidDataTypeException
32
+	 */
33
+	public function __construct($flags = array())
34
+	{
35
+		if (empty($flags)) {
36
+			$flags = array(
37
+				FilesystemIterator::SKIP_DOTS,
38
+				FilesystemIterator::UNIX_PATHS,
39
+				FilesystemIterator::CURRENT_AS_PATHNAME,
40
+			);
41
+		}
42
+		$this->setFlags($flags);
43
+	}
44
+
45
+
46
+	/**
47
+	 * @see    http://php.net/manual/en/class.filesystemiterator.php#filesystemiterator.constants
48
+	 * @access public
49
+	 * @param array $flags
50
+	 * @throws \EventEspresso\core\exceptions\InvalidDataTypeException
51
+	 */
52
+	public function setFlags($flags)
53
+	{
54
+		if (! is_array($flags)) {
55
+			throw new InvalidDataTypeException('$flags', $flags, 'array');
56
+		}
57
+		$this->flags = $flags;
58
+	}
59 59
 }
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -51,7 +51,7 @@
 block discarded – undo
51 51
      */
52 52
     public function setFlags($flags)
53 53
     {
54
-        if (! is_array($flags)) {
54
+        if ( ! is_array($flags)) {
55 55
             throw new InvalidDataTypeException('$flags', $flags, 'array');
56 56
         }
57 57
         $this->flags = $flags;
Please login to merge, or discard this patch.
core/services/address/formatters/AddressFormatter.php 1 patch
Indentation   +34 added lines, -34 removed lines patch added patch discarded remove patch
@@ -12,38 +12,38 @@
 block discarded – undo
12 12
  */
13 13
 class AddressFormatter
14 14
 {
15
-    // phpcs:disable PSR1.Methods.CamelCapsMethodName.NotCamelCaps
16
-    /**
17
-     * @param string $address
18
-     * @param string $address2
19
-     * @param string $city
20
-     * @param string $state
21
-     * @param string $zip
22
-     * @param string $country
23
-     * @param string $formatted_address
24
-     * @param string $sub
25
-     * @return mixed
26
-     */
27
-    protected function parse_formatted_address(
28
-        $address,
29
-        $address2,
30
-        $city,
31
-        $state,
32
-        $zip,
33
-        $country,
34
-        $formatted_address,
35
-        $sub
36
-    ) {
37
-        // swap address part placeholders for the real text
38
-        $formatted_address = str_replace(
39
-            // find
40
-            array('{address}', '{address2}', '{city}', '{state}', '{zip}', '{country}'),
41
-            // replace
42
-            array($address, $address2, $city, $state, $zip, $country),
43
-            // string
44
-            $formatted_address
45
-        );
46
-        // remove placeholder from start and end, reduce repeating placeholders to singles, then replace with HTML line breaks
47
-        return preg_replace('/%+/', $sub, trim($formatted_address, '%'));
48
-    }
15
+	// phpcs:disable PSR1.Methods.CamelCapsMethodName.NotCamelCaps
16
+	/**
17
+	 * @param string $address
18
+	 * @param string $address2
19
+	 * @param string $city
20
+	 * @param string $state
21
+	 * @param string $zip
22
+	 * @param string $country
23
+	 * @param string $formatted_address
24
+	 * @param string $sub
25
+	 * @return mixed
26
+	 */
27
+	protected function parse_formatted_address(
28
+		$address,
29
+		$address2,
30
+		$city,
31
+		$state,
32
+		$zip,
33
+		$country,
34
+		$formatted_address,
35
+		$sub
36
+	) {
37
+		// swap address part placeholders for the real text
38
+		$formatted_address = str_replace(
39
+			// find
40
+			array('{address}', '{address2}', '{city}', '{state}', '{zip}', '{country}'),
41
+			// replace
42
+			array($address, $address2, $city, $state, $zip, $country),
43
+			// string
44
+			$formatted_address
45
+		);
46
+		// remove placeholder from start and end, reduce repeating placeholders to singles, then replace with HTML line breaks
47
+		return preg_replace('/%+/', $sub, trim($formatted_address, '%'));
48
+	}
49 49
 }
Please login to merge, or discard this patch.
core/services/address/formatters/NullAddressFormatter.php 1 patch
Indentation   +14 added lines, -14 removed lines patch added patch discarded remove patch
@@ -13,18 +13,18 @@
 block discarded – undo
13 13
 class NullAddressFormatter implements \EEI_Address_Formatter
14 14
 {
15 15
 
16
-    /**
17
-     * @param string $address
18
-     * @param string $address2
19
-     * @param string $city
20
-     * @param string $state
21
-     * @param string $zip
22
-     * @param string $country
23
-     * @param string $CNT_ISO
24
-     * @return string
25
-     */
26
-    public function format($address, $address2, $city, $state, $zip, $country, $CNT_ISO)
27
-    {
28
-        return null;
29
-    }
16
+	/**
17
+	 * @param string $address
18
+	 * @param string $address2
19
+	 * @param string $city
20
+	 * @param string $state
21
+	 * @param string $zip
22
+	 * @param string $country
23
+	 * @param string $CNT_ISO
24
+	 * @return string
25
+	 */
26
+	public function format($address, $address2, $city, $state, $zip, $country, $CNT_ISO)
27
+	{
28
+		return null;
29
+	}
30 30
 }
Please login to merge, or discard this patch.
core/services/commands/CommandFactory.php 1 patch
Indentation   +32 added lines, -32 removed lines patch added patch discarded remove patch
@@ -18,36 +18,36 @@
 block discarded – undo
18 18
 {
19 19
 
20 20
 
21
-    /**
22
-     * @var LoaderInterface $loader
23
-     */
24
-    private $loader;
25
-
26
-
27
-    /**
28
-     * CommandFactory constructor
29
-     *
30
-     * @param LoaderInterface $loader
31
-     * @throws InvalidDataTypeException
32
-     * @throws InvalidInterfaceException
33
-     * @throws InvalidArgumentException
34
-     */
35
-    public function __construct(LoaderInterface $loader = null)
36
-    {
37
-        $this->loader = $loader;
38
-    }
39
-
40
-
41
-    /**
42
-     * @param string $command_fqcn
43
-     * @param array  $arguments
44
-     * @return mixed
45
-     * @throws InvalidArgumentException
46
-     * @throws InvalidDataTypeException
47
-     * @throws InvalidInterfaceException
48
-     */
49
-    public function getNew($command_fqcn, $arguments = array())
50
-    {
51
-        return $this->loader->getNew($command_fqcn, $arguments);
52
-    }
21
+	/**
22
+	 * @var LoaderInterface $loader
23
+	 */
24
+	private $loader;
25
+
26
+
27
+	/**
28
+	 * CommandFactory constructor
29
+	 *
30
+	 * @param LoaderInterface $loader
31
+	 * @throws InvalidDataTypeException
32
+	 * @throws InvalidInterfaceException
33
+	 * @throws InvalidArgumentException
34
+	 */
35
+	public function __construct(LoaderInterface $loader = null)
36
+	{
37
+		$this->loader = $loader;
38
+	}
39
+
40
+
41
+	/**
42
+	 * @param string $command_fqcn
43
+	 * @param array  $arguments
44
+	 * @return mixed
45
+	 * @throws InvalidArgumentException
46
+	 * @throws InvalidDataTypeException
47
+	 * @throws InvalidInterfaceException
48
+	 */
49
+	public function getNew($command_fqcn, $arguments = array())
50
+	{
51
+		return $this->loader->getNew($command_fqcn, $arguments);
52
+	}
53 53
 }
Please login to merge, or discard this patch.
core/services/commands/Command.php 1 patch
Indentation   +16 added lines, -16 removed lines patch added patch discarded remove patch
@@ -17,26 +17,26 @@
 block discarded – undo
17 17
 abstract class Command implements CommandInterface
18 18
 {
19 19
 
20
-    /*
20
+	/*
21 21
      * @var CapCheckInterface $cap_check
22 22
      */
23
-    protected $cap_check;
23
+	protected $cap_check;
24 24
 
25 25
 
26
-    /**
27
-     * @return mixed
28
-     */
29
-    public function getCapCheck()
30
-    {
31
-        return $this->cap_check;
32
-    }
26
+	/**
27
+	 * @return mixed
28
+	 */
29
+	public function getCapCheck()
30
+	{
31
+		return $this->cap_check;
32
+	}
33 33
 
34 34
 
35
-    /**
36
-     * @param CapCheckInterface $cap_check
37
-     */
38
-    public function setCapCheck(CapCheckInterface $cap_check)
39
-    {
40
-        $this->cap_check = $cap_check;
41
-    }
35
+	/**
36
+	 * @param CapCheckInterface $cap_check
37
+	 */
38
+	public function setCapCheck(CapCheckInterface $cap_check)
39
+	{
40
+		$this->cap_check = $cap_check;
41
+	}
42 42
 }
Please login to merge, or discard this patch.