GitHub Access Token became invalid

It seems like the GitHub access token used for retrieving details about this repository from GitHub became invalid. This might prevent certain types of inspections from being run (in particular, everything related to pull requests).
Please ask an admin of your repository to re-new the access token on this website.
Completed
Push — master ( 803ce4...84c999 )
by Michael
14:57 queued 01:03
created

TShopRunnerMessage::normalizeWhitespace()

Size

Total Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 1
nc 1
1
<?php
2
/**
3
 * Copyright (c) 2013-2014 eBay Enterprise, Inc.
4
 *
5
 * NOTICE OF LICENSE
6
 *
7
 * This source file is subject to the Open Software License (OSL 3.0)
8
 * that is bundled with this package in the file LICENSE.md.
9
 * It is also available through the world-wide-web at this URL:
10
 * http://opensource.org/licenses/osl-3.0.php
11
 *
12
 * @copyright   Copyright (c) 2013-2014 eBay Enterprise, Inc. (http://www.ebayenterprise.com/)
13
 * @license     http://opensource.org/licenses/osl-3.0.php  Open Software License (OSL 3.0)
14
 */
15
16
namespace eBayEnterprise\RetailOrderManagement\Payload\OrderEvents;
17
18
trait TShopRunnerMessage
19
{
20
    /** @var string */
21
    protected $shopRunnerMessage;
22
23
    public function getShopRunnerMessage()
24
    {
25
        return $this->shopRunnerMessage;
26
    }
27
28
    public function setShopRunnerMessage($shopRunnerMessage)
29
    {
30
        $this->shopRunnerMessage = $this->normalizeWhitespace($shopRunnerMessage);
31
        return $this;
32
    }
33
34
    protected function serializeShopRunnerMessage()
35
    {
36
        $message = $this->getShopRunnerMessage();
37
        return $message
38
            ? "<ShopRunnerMessage>$message</ShopRunnerMessage>"
39
            : '';
40
    }
41
42
    /**
43
     * Normalize any whitespace characters, tab, new line, etc., with a single
44
     * space caracter. Does not collapse whitespace.
45
     *
46
     * @param string
47
     * @return string
48
     */
49
    abstract protected function normalizeWhitespace($string);
50
}
51