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 ( 78d09e...a6964a )
by Denis
02:46
created

Relationships   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 26
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 0

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 1
c 1
b 0
f 0
lcom 1
cbo 0
dl 0
loc 26
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A buildRelationshipsXML() 0 15 1
1
<?php
2
namespace Ellumilel\Rels;
3
4
/**
5
 * @link https://msdn.microsoft.com/en-us/library/bb264572(v=office.12).aspx
6
 *
7
 * Class Relationships
8
 * @package Ellumilel\Rels
9
 * @author Denis Tikhonov <[email protected]>
10
 */
11
class Relationships
12
{
13
    /** @var string */
14
    private $xml = "<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"yes\"?>\n";
15
    /** @var string */
16
    private $urlSchemaFormat = 'http://schemas.openxmlformats.org/officeDocument/2006';
17
18
    /**
19
     * @return string
20
     */
21
    public function buildRelationshipsXML()
22
    {
23
        $relXml = '';
24
        $relXml .= $this->xml;
25
        $relXml .= '<Relationships xmlns="http://schemas.openxmlformats.org/package/2006/relationships">';
26
        $relXml .= '<Relationship Id="rId1" Type="'.$this->urlSchemaFormat.'/relationships/officeDocument"';
27
        $relXml .= ' Target="xl/workbook.xml"/>';
28
        $relXml .= '<Relationship Id="rId2" Type="'.$this->urlSchemaFormat.'/relationships/metadata/core-properties"';
29
        $relXml .= ' Target="docProps/core.xml"/>';
30
        $relXml .= '<Relationship Id="rId3" Type="'.$this->urlSchemaFormat.'/relationships/extended-properties"';
31
        $relXml .= ' Target="docProps/app.xml"/>'."\n";
32
        $relXml .= '</Relationships>';
33
34
        return $relXml;
35
    }
36
}
37