NobGit
public nobgit read

NobMail

Based on mailcow: dockerized

Languages

Repository composition by tracked source files.

PHP
PHP 49% JavaScript 35% HTML 9% CSS 4% Shell 2% Python 1% Lua 0% Perl 0% Ruby 0% SCSS 0%
Create file Wiki Documentation
Clone
https://nobgit.com/orgs/nobgit/nobmail.git
ssh://[email protected]:2222/orgs/nobgit/nobmail.git

Trace

data/web/inc/lib/vendor/mustangostang/spyc/Spyc.php

Trace helps you understand code history line by line. See who changed each line, when it changed, and which commit introduced it.

Spyc.php on main
Author Date Commit Line Code
tinect over 6 years ago f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
1
<?php
Open commit View diff
1 <?php
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
2
/**
Open commit View diff
2 /**
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
3
   * Spyc -- A Simple PHP YAML Class
Open commit View diff
3 * Spyc -- A Simple PHP YAML Class
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
4
   * @version 0.6.2
Open commit View diff
4 * @version 0.6.2
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
5
   * @author Vlad Andersen <[email protected]>
Open commit View diff
5 * @author Vlad Andersen <[email protected]>
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
6
   * @author Chris Wanstrath <[email protected]>
Open commit View diff
6 * @author Chris Wanstrath <[email protected]>
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
7
   * @link https://github.com/mustangostang/spyc/
Open commit View diff
7 * @link https://github.com/mustangostang/spyc/
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
8
   * @copyright Copyright 2005-2006 Chris Wanstrath, 2006-2011 Vlad Andersen
Open commit View diff
8 * @copyright Copyright 2005-2006 Chris Wanstrath, 2006-2011 Vlad Andersen
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
9
   * @license http://www.opensource.org/licenses/mit-license.php MIT License
Open commit View diff
9 * @license http://www.opensource.org/licenses/mit-license.php MIT License
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
10
   * @package Spyc
Open commit View diff
10 * @package Spyc
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
11
   */
Open commit View diff
11 */
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
12
Open commit View diff
12
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
13
if (!function_exists('spyc_load')) {
Open commit View diff
13 if (!function_exists('spyc_load')) {
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
14
  /**
Open commit View diff
14 /**
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
15
   * Parses YAML to array.
Open commit View diff
15 * Parses YAML to array.
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
16
   * @param string $string YAML string.
Open commit View diff
16 * @param string $string YAML string.
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
17
   * @return array
Open commit View diff
17 * @return array
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
18
   */
Open commit View diff
18 */
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
19
  function spyc_load ($string) {
Open commit View diff
19 function spyc_load ($string) {
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
20
    return Spyc::YAMLLoadString($string);
Open commit View diff
20 return Spyc::YAMLLoadString($string);
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
21
  }
Open commit View diff
21 }
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
22
}
Open commit View diff
22 }
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
23
Open commit View diff
23
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
24
if (!function_exists('spyc_load_file')) {
Open commit View diff
24 if (!function_exists('spyc_load_file')) {
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
25
  /**
Open commit View diff
25 /**
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
26
   * Parses YAML to array.
Open commit View diff
26 * Parses YAML to array.
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
27
   * @param string $file Path to YAML file.
Open commit View diff
27 * @param string $file Path to YAML file.
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
28
   * @return array
Open commit View diff
28 * @return array
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
29
   */
Open commit View diff
29 */
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
30
  function spyc_load_file ($file) {
Open commit View diff
30 function spyc_load_file ($file) {
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
31
    return Spyc::YAMLLoad($file);
Open commit View diff
31 return Spyc::YAMLLoad($file);
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
32
  }
Open commit View diff
32 }
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
33
}
Open commit View diff
33 }
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
34
Open commit View diff
34
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
35
if (!function_exists('spyc_dump')) {
Open commit View diff
35 if (!function_exists('spyc_dump')) {
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
36
  /**
Open commit View diff
36 /**
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
37
   * Dumps array to YAML.
Open commit View diff
37 * Dumps array to YAML.
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
38
   * @param array $data Array.
Open commit View diff
38 * @param array $data Array.
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
39
   * @return string
Open commit View diff
39 * @return string
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
40
   */
Open commit View diff
40 */
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
41
  function spyc_dump ($data) {
Open commit View diff
41 function spyc_dump ($data) {
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
42
    return Spyc::YAMLDump($data, false, false, true);
Open commit View diff
42 return Spyc::YAMLDump($data, false, false, true);
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
43
  }
Open commit View diff
43 }
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
44
}
Open commit View diff
44 }
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
45
Open commit View diff
45
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
46
if (!class_exists('Spyc')) {
Open commit View diff
46 if (!class_exists('Spyc')) {
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
47
Open commit View diff
47
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
48
/**
Open commit View diff
48 /**
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
49
   * The Simple PHP YAML Class.
Open commit View diff
49 * The Simple PHP YAML Class.
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
50
   *
Open commit View diff
50 *
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
51
   * This class can be used to read a YAML file and convert its contents
Open commit View diff
51 * This class can be used to read a YAML file and convert its contents
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
52
   * into a PHP array.  It currently supports a very limited subsection of
Open commit View diff
52 * into a PHP array. It currently supports a very limited subsection of
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
53
   * the YAML spec.
Open commit View diff
53 * the YAML spec.
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
54
   *
Open commit View diff
54 *
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
55
   * Usage:
Open commit View diff
55 * Usage:
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
56
   * <code>
Open commit View diff
56 * <code>
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
57
   *   $Spyc  = new Spyc;
Open commit View diff
57 * $Spyc = new Spyc;
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
58
   *   $array = $Spyc->load($file);
Open commit View diff
58 * $array = $Spyc->load($file);
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
59
   * </code>
Open commit View diff
59 * </code>
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
60
   * or:
Open commit View diff
60 * or:
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
61
   * <code>
Open commit View diff
61 * <code>
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
62
   *   $array = Spyc::YAMLLoad($file);
Open commit View diff
62 * $array = Spyc::YAMLLoad($file);
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
63
   * </code>
Open commit View diff
63 * </code>
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
64
   * or:
Open commit View diff
64 * or:
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
65
   * <code>
Open commit View diff
65 * <code>
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
66
   *   $array = spyc_load_file($file);
Open commit View diff
66 * $array = spyc_load_file($file);
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
67
   * </code>
Open commit View diff
67 * </code>
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
68
   * @package Spyc
Open commit View diff
68 * @package Spyc
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
69
   */
Open commit View diff
69 */
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
70
class Spyc {
Open commit View diff
70 class Spyc {
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
71
Open commit View diff
71
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
72
  // SETTINGS
Open commit View diff
72 // SETTINGS
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
73
Open commit View diff
73
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
74
  const REMPTY = "\0\0\0\0\0";
Open commit View diff
74 const REMPTY = "\0\0\0\0\0";
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
75
Open commit View diff
75
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
76
  /**
Open commit View diff
76 /**
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
77
   * Setting this to true will force YAMLDump to enclose any string value in
Open commit View diff
77 * Setting this to true will force YAMLDump to enclose any string value in
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
78
   * quotes.  False by default.
Open commit View diff
78 * quotes. False by default.
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
79
   *
Open commit View diff
79 *
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
80
   * @var bool
Open commit View diff
80 * @var bool
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
81
   */
Open commit View diff
81 */
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
82
  public $setting_dump_force_quotes = false;
Open commit View diff
82 public $setting_dump_force_quotes = false;
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
83
Open commit View diff
83
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
84
  /**
Open commit View diff
84 /**
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
85
   * Setting this to true will forse YAMLLoad to use syck_load function when
Open commit View diff
85 * Setting this to true will forse YAMLLoad to use syck_load function when
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
86
   * possible. False by default.
Open commit View diff
86 * possible. False by default.
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
87
   * @var bool
Open commit View diff
87 * @var bool
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
88
   */
Open commit View diff
88 */
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
89
  public $setting_use_syck_is_possible = false;
Open commit View diff
89 public $setting_use_syck_is_possible = false;
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
90
Open commit View diff
90
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
91
  /**
Open commit View diff
91 /**
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
92
   * Setting this to true will forse YAMLLoad to use syck_load function when
Open commit View diff
92 * Setting this to true will forse YAMLLoad to use syck_load function when
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
93
   * possible. False by default.
Open commit View diff
93 * possible. False by default.
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
94
   * @var bool
Open commit View diff
94 * @var bool
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
95
   */
Open commit View diff
95 */
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
96
  public $setting_empty_hash_as_object = false;
Open commit View diff
96 public $setting_empty_hash_as_object = false;
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
97
Open commit View diff
97
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
98
Open commit View diff
98
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
99
  /**#@+
Open commit View diff
99 /**#@+
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
100
  * @access private
Open commit View diff
100 * @access private
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
101
  * @var mixed
Open commit View diff
101 * @var mixed
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
102
  */
Open commit View diff
102 */
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
103
  private $_dumpIndent;
Open commit View diff
103 private $_dumpIndent;
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
104
  private $_dumpWordWrap;
Open commit View diff
104 private $_dumpWordWrap;
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
105
  private $_containsGroupAnchor = false;
Open commit View diff
105 private $_containsGroupAnchor = false;
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
106
  private $_containsGroupAlias = false;
Open commit View diff
106 private $_containsGroupAlias = false;
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
107
  private $path;
Open commit View diff
107 private $path;
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
108
  private $result;
Open commit View diff
108 private $result;
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
109
  private $LiteralPlaceHolder = '___YAML_Literal_Block___';
Open commit View diff
109 private $LiteralPlaceHolder = '___YAML_Literal_Block___';
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
110
  private $SavedGroups = array();
Open commit View diff
110 private $SavedGroups = array();
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
111
  private $indent;
Open commit View diff
111 private $indent;
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
112
  /**
Open commit View diff
112 /**
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
113
   * Path modifier that should be applied after adding current element.
Open commit View diff
113 * Path modifier that should be applied after adding current element.
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
114
   * @var array
Open commit View diff
114 * @var array
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
115
   */
Open commit View diff
115 */
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
116
  private $delayedPath = array();
Open commit View diff
116 private $delayedPath = array();
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
117
Open commit View diff
117
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
118
  /**#@+
Open commit View diff
118 /**#@+
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
119
  * @access public
Open commit View diff
119 * @access public
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
120
  * @var mixed
Open commit View diff
120 * @var mixed
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
121
  */
Open commit View diff
121 */
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
122
  public $_nodeId;
Open commit View diff
122 public $_nodeId;
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
123
Open commit View diff
123
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
124
/**
Open commit View diff
124 /**
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
125
 * Load a valid YAML string to Spyc.
Open commit View diff
125 * Load a valid YAML string to Spyc.
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
126
 * @param string $input
Open commit View diff
126 * @param string $input
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
127
 * @return array
Open commit View diff
127 * @return array
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
128
 */
Open commit View diff
128 */
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
129
  public function load ($input) {
Open commit View diff
129 public function load ($input) {
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
130
    return $this->_loadString($input);
Open commit View diff
130 return $this->_loadString($input);
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
131
  }
Open commit View diff
131 }
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
132
Open commit View diff
132
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
133
 /**
Open commit View diff
133 /**
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
134
 * Load a valid YAML file to Spyc.
Open commit View diff
134 * Load a valid YAML file to Spyc.
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
135
 * @param string $file
Open commit View diff
135 * @param string $file
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
136
 * @return array
Open commit View diff
136 * @return array
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
137
 */
Open commit View diff
137 */
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
138
  public function loadFile ($file) {
Open commit View diff
138 public function loadFile ($file) {
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
139
    return $this->_load($file);
Open commit View diff
139 return $this->_load($file);
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
140
  }
Open commit View diff
140 }
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
141
Open commit View diff
141
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
142
  /**
Open commit View diff
142 /**
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
143
     * Load YAML into a PHP array statically
Open commit View diff
143 * Load YAML into a PHP array statically
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
144
     *
Open commit View diff
144 *
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
145
     * The load method, when supplied with a YAML stream (string or file),
Open commit View diff
145 * The load method, when supplied with a YAML stream (string or file),
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
146
     * will do its best to convert YAML in a file into a PHP array.  Pretty
Open commit View diff
146 * will do its best to convert YAML in a file into a PHP array. Pretty
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
147
     * simple.
Open commit View diff
147 * simple.
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
148
     *  Usage:
Open commit View diff
148 * Usage:
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
149
     *  <code>
Open commit View diff
149 * <code>
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
150
     *   $array = Spyc::YAMLLoad('lucky.yaml');
Open commit View diff
150 * $array = Spyc::YAMLLoad('lucky.yaml');
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
151
     *   print_r($array);
Open commit View diff
151 * print_r($array);
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
152
     *  </code>
Open commit View diff
152 * </code>
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
153
     * @access public
Open commit View diff
153 * @access public
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
154
     * @return array
Open commit View diff
154 * @return array
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
155
     * @param string $input Path of YAML file or string containing YAML
Open commit View diff
155 * @param string $input Path of YAML file or string containing YAML
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
156
     * @param array set options
Open commit View diff
156 * @param array set options
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
157
     */
Open commit View diff
157 */
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
158
  public static function YAMLLoad($input, $options = []) {
Open commit View diff
158 public static function YAMLLoad($input, $options = []) {
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
159
    $Spyc = new Spyc;
Open commit View diff
159 $Spyc = new Spyc;
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
160
    foreach ($options as $key => $value) {
Open commit View diff
160 foreach ($options as $key => $value) {
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
161
        if (property_exists($Spyc, $key)) {
Open commit View diff
161 if (property_exists($Spyc, $key)) {
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
162
            $Spyc->$key = $value;
Open commit View diff
162 $Spyc->$key = $value;
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
163
        }
Open commit View diff
163 }
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
164
    }
Open commit View diff
164 }
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
165
    return $Spyc->_load($input);
Open commit View diff
165 return $Spyc->_load($input);
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
166
  }
Open commit View diff
166 }
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
167
Open commit View diff
167
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
168
  /**
Open commit View diff
168 /**
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
169
     * Load a string of YAML into a PHP array statically
Open commit View diff
169 * Load a string of YAML into a PHP array statically
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
170
     *
Open commit View diff
170 *
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
171
     * The load method, when supplied with a YAML string, will do its best
Open commit View diff
171 * The load method, when supplied with a YAML string, will do its best
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
172
     * to convert YAML in a string into a PHP array.  Pretty simple.
Open commit View diff
172 * to convert YAML in a string into a PHP array. Pretty simple.
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
173
     *
Open commit View diff
173 *
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
174
     * Note: use this function if you don't want files from the file system
Open commit View diff
174 * Note: use this function if you don't want files from the file system
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
175
     * loaded and processed as YAML.  This is of interest to people concerned
Open commit View diff
175 * loaded and processed as YAML. This is of interest to people concerned
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
176
     * about security whose input is from a string.
Open commit View diff
176 * about security whose input is from a string.
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
177
     *
Open commit View diff
177 *
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
178
     *  Usage:
Open commit View diff
178 * Usage:
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
179
     *  <code>
Open commit View diff
179 * <code>
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
180
     *   $array = Spyc::YAMLLoadString("---\n0: hello world\n");
Open commit View diff
180 * $array = Spyc::YAMLLoadString("---\n0: hello world\n");
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
181
     *   print_r($array);
Open commit View diff
181 * print_r($array);
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
182
     *  </code>
Open commit View diff
182 * </code>
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
183
     * @access public
Open commit View diff
183 * @access public
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
184
     * @return array
Open commit View diff
184 * @return array
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
185
     * @param string $input String containing YAML
Open commit View diff
185 * @param string $input String containing YAML
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
186
     * @param array set options
Open commit View diff
186 * @param array set options
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
187
     */
Open commit View diff
187 */
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
188
  public static function YAMLLoadString($input, $options = []) {
Open commit View diff
188 public static function YAMLLoadString($input, $options = []) {
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
189
    $Spyc = new Spyc;
Open commit View diff
189 $Spyc = new Spyc;
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
190
    foreach ($options as $key => $value) {
Open commit View diff
190 foreach ($options as $key => $value) {
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
191
        if (property_exists($Spyc, $key)) {
Open commit View diff
191 if (property_exists($Spyc, $key)) {
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
192
            $Spyc->$key = $value;
Open commit View diff
192 $Spyc->$key = $value;
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
193
        }
Open commit View diff
193 }
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
194
    }
Open commit View diff
194 }
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
195
    return $Spyc->_loadString($input);
Open commit View diff
195 return $Spyc->_loadString($input);
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
196
  }
Open commit View diff
196 }
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
197
Open commit View diff
197
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
198
  /**
Open commit View diff
198 /**
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
199
     * Dump YAML from PHP array statically
Open commit View diff
199 * Dump YAML from PHP array statically
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
200
     *
Open commit View diff
200 *
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
201
     * The dump method, when supplied with an array, will do its best
Open commit View diff
201 * The dump method, when supplied with an array, will do its best
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
202
     * to convert the array into friendly YAML.  Pretty simple.  Feel free to
Open commit View diff
202 * to convert the array into friendly YAML. Pretty simple. Feel free to
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
203
     * save the returned string as nothing.yaml and pass it around.
Open commit View diff
203 * save the returned string as nothing.yaml and pass it around.
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
204
     *
Open commit View diff
204 *
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
205
     * Oh, and you can decide how big the indent is and what the wordwrap
Open commit View diff
205 * Oh, and you can decide how big the indent is and what the wordwrap
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
206
     * for folding is.  Pretty cool -- just pass in 'false' for either if
Open commit View diff
206 * for folding is. Pretty cool -- just pass in 'false' for either if
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
207
     * you want to use the default.
Open commit View diff
207 * you want to use the default.
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
208
     *
Open commit View diff
208 *
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
209
     * Indent's default is 2 spaces, wordwrap's default is 40 characters.  And
Open commit View diff
209 * Indent's default is 2 spaces, wordwrap's default is 40 characters. And
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
210
     * you can turn off wordwrap by passing in 0.
Open commit View diff
210 * you can turn off wordwrap by passing in 0.
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
211
     *
Open commit View diff
211 *
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
212
     * @access public
Open commit View diff
212 * @access public
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
213
     * @return string
Open commit View diff
213 * @return string
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
214
     * @param array|\stdClass $array PHP array
Open commit View diff
214 * @param array|\stdClass $array PHP array
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
215
     * @param int $indent Pass in false to use the default, which is 2
Open commit View diff
215 * @param int $indent Pass in false to use the default, which is 2
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
216
     * @param int $wordwrap Pass in 0 for no wordwrap, false for default (40)
Open commit View diff
216 * @param int $wordwrap Pass in 0 for no wordwrap, false for default (40)
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
217
     * @param bool $no_opening_dashes Do not start YAML file with "---\n"
Open commit View diff
217 * @param bool $no_opening_dashes Do not start YAML file with "---\n"
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
218
     */
Open commit View diff
218 */
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
219
  public static function YAMLDump($array, $indent = false, $wordwrap = false, $no_opening_dashes = false) {
Open commit View diff
219 public static function YAMLDump($array, $indent = false, $wordwrap = false, $no_opening_dashes = false) {
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
220
    $spyc = new Spyc;
Open commit View diff
220 $spyc = new Spyc;
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
221
    return $spyc->dump($array, $indent, $wordwrap, $no_opening_dashes);
Open commit View diff
221 return $spyc->dump($array, $indent, $wordwrap, $no_opening_dashes);
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
222
  }
Open commit View diff
222 }
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
223
Open commit View diff
223
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
224
Open commit View diff
224
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
225
  /**
Open commit View diff
225 /**
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
226
     * Dump PHP array to YAML
Open commit View diff
226 * Dump PHP array to YAML
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
227
     *
Open commit View diff
227 *
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
228
     * The dump method, when supplied with an array, will do its best
Open commit View diff
228 * The dump method, when supplied with an array, will do its best
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
229
     * to convert the array into friendly YAML.  Pretty simple.  Feel free to
Open commit View diff
229 * to convert the array into friendly YAML. Pretty simple. Feel free to
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
230
     * save the returned string as tasteful.yaml and pass it around.
Open commit View diff
230 * save the returned string as tasteful.yaml and pass it around.
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
231
     *
Open commit View diff
231 *
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
232
     * Oh, and you can decide how big the indent is and what the wordwrap
Open commit View diff
232 * Oh, and you can decide how big the indent is and what the wordwrap
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
233
     * for folding is.  Pretty cool -- just pass in 'false' for either if
Open commit View diff
233 * for folding is. Pretty cool -- just pass in 'false' for either if
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
234
     * you want to use the default.
Open commit View diff
234 * you want to use the default.
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
235
     *
Open commit View diff
235 *
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
236
     * Indent's default is 2 spaces, wordwrap's default is 40 characters.  And
Open commit View diff
236 * Indent's default is 2 spaces, wordwrap's default is 40 characters. And
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
237
     * you can turn off wordwrap by passing in 0.
Open commit View diff
237 * you can turn off wordwrap by passing in 0.
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
238
     *
Open commit View diff
238 *
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
239
     * @access public
Open commit View diff
239 * @access public
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
240
     * @return string
Open commit View diff
240 * @return string
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
241
     * @param array $array PHP array
Open commit View diff
241 * @param array $array PHP array
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
242
     * @param int $indent Pass in false to use the default, which is 2
Open commit View diff
242 * @param int $indent Pass in false to use the default, which is 2
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
243
     * @param int $wordwrap Pass in 0 for no wordwrap, false for default (40)
Open commit View diff
243 * @param int $wordwrap Pass in 0 for no wordwrap, false for default (40)
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
244
     */
Open commit View diff
244 */
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
245
  public function dump($array,$indent = false,$wordwrap = false, $no_opening_dashes = false) {
Open commit View diff
245 public function dump($array,$indent = false,$wordwrap = false, $no_opening_dashes = false) {
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
246
    // Dumps to some very clean YAML.  We'll have to add some more features
Open commit View diff
246 // Dumps to some very clean YAML. We'll have to add some more features
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
247
    // and options soon.  And better support for folding.
Open commit View diff
247 // and options soon. And better support for folding.
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
248
Open commit View diff
248
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
249
    // New features and options.
Open commit View diff
249 // New features and options.
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
250
    if ($indent === false or !is_numeric($indent)) {
Open commit View diff
250 if ($indent === false or !is_numeric($indent)) {
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
251
      $this->_dumpIndent = 2;
Open commit View diff
251 $this->_dumpIndent = 2;
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
252
    } else {
Open commit View diff
252 } else {
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
253
      $this->_dumpIndent = $indent;
Open commit View diff
253 $this->_dumpIndent = $indent;
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
254
    }
Open commit View diff
254 }
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
255
Open commit View diff
255
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
256
    if ($wordwrap === false or !is_numeric($wordwrap)) {
Open commit View diff
256 if ($wordwrap === false or !is_numeric($wordwrap)) {
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
257
      $this->_dumpWordWrap = 40;
Open commit View diff
257 $this->_dumpWordWrap = 40;
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
258
    } else {
Open commit View diff
258 } else {
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
259
      $this->_dumpWordWrap = $wordwrap;
Open commit View diff
259 $this->_dumpWordWrap = $wordwrap;
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
260
    }
Open commit View diff
260 }
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
261
Open commit View diff
261
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
262
    // New YAML document
Open commit View diff
262 // New YAML document
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
263
    $string = "";
Open commit View diff
263 $string = "";
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
264
    if (!$no_opening_dashes) $string = "---\n";
Open commit View diff
264 if (!$no_opening_dashes) $string = "---\n";
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
265
Open commit View diff
265
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
266
    // Start at the base of the array and move through it.
Open commit View diff
266 // Start at the base of the array and move through it.
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
267
    if ($array) {
Open commit View diff
267 if ($array) {
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
268
      $array = (array)$array;
Open commit View diff
268 $array = (array)$array;
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
269
      $previous_key = -1;
Open commit View diff
269 $previous_key = -1;
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
270
      foreach ($array as $key => $value) {
Open commit View diff
270 foreach ($array as $key => $value) {
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
271
        if (!isset($first_key)) $first_key = $key;
Open commit View diff
271 if (!isset($first_key)) $first_key = $key;
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
272
        $string .= $this->_yamlize($key,$value,0,$previous_key, $first_key, $array);
Open commit View diff
272 $string .= $this->_yamlize($key,$value,0,$previous_key, $first_key, $array);
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
273
        $previous_key = $key;
Open commit View diff
273 $previous_key = $key;
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
274
      }
Open commit View diff
274 }
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
275
    }
Open commit View diff
275 }
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
276
    return $string;
Open commit View diff
276 return $string;
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
277
  }
Open commit View diff
277 }
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
278
Open commit View diff
278
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
279
  /**
Open commit View diff
279 /**
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
280
     * Attempts to convert a key / value array item to YAML
Open commit View diff
280 * Attempts to convert a key / value array item to YAML
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
281
     * @access private
Open commit View diff
281 * @access private
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
282
     * @return string
Open commit View diff
282 * @return string
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
283
     * @param $key The name of the key
Open commit View diff
283 * @param $key The name of the key
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
284
     * @param $value The value of the item
Open commit View diff
284 * @param $value The value of the item
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
285
     * @param $indent The indent of the current node
Open commit View diff
285 * @param $indent The indent of the current node
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
286
     */
Open commit View diff
286 */
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
287
  private function _yamlize($key,$value,$indent, $previous_key = -1, $first_key = 0, $source_array = null) {
Open commit View diff
287 private function _yamlize($key,$value,$indent, $previous_key = -1, $first_key = 0, $source_array = null) {
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
288
    if(is_object($value)) $value = (array)$value;
Open commit View diff
288 if(is_object($value)) $value = (array)$value;
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
289
    if (is_array($value)) {
Open commit View diff
289 if (is_array($value)) {
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
290
      if (empty ($value))
Open commit View diff
290 if (empty ($value))
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
291
        return $this->_dumpNode($key, array(), $indent, $previous_key, $first_key, $source_array);
Open commit View diff
291 return $this->_dumpNode($key, array(), $indent, $previous_key, $first_key, $source_array);
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
292
      // It has children.  What to do?
Open commit View diff
292 // It has children. What to do?
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
293
      // Make it the right kind of item
Open commit View diff
293 // Make it the right kind of item
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
294
      $string = $this->_dumpNode($key, self::REMPTY, $indent, $previous_key, $first_key, $source_array);
Open commit View diff
294 $string = $this->_dumpNode($key, self::REMPTY, $indent, $previous_key, $first_key, $source_array);
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
295
      // Add the indent
Open commit View diff
295 // Add the indent
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
296
      $indent += $this->_dumpIndent;
Open commit View diff
296 $indent += $this->_dumpIndent;
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
297
      // Yamlize the array
Open commit View diff
297 // Yamlize the array
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
298
      $string .= $this->_yamlizeArray($value,$indent);
Open commit View diff
298 $string .= $this->_yamlizeArray($value,$indent);
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
299
    } elseif (!is_array($value)) {
Open commit View diff
299 } elseif (!is_array($value)) {
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
300
      // It doesn't have children.  Yip.
Open commit View diff
300 // It doesn't have children. Yip.
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
301
      $string = $this->_dumpNode($key, $value, $indent, $previous_key, $first_key, $source_array);
Open commit View diff
301 $string = $this->_dumpNode($key, $value, $indent, $previous_key, $first_key, $source_array);
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
302
    }
Open commit View diff
302 }
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
303
    return $string;
Open commit View diff
303 return $string;
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
304
  }
Open commit View diff
304 }
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
305
Open commit View diff
305
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
306
  /**
Open commit View diff
306 /**
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
307
     * Attempts to convert an array to YAML
Open commit View diff
307 * Attempts to convert an array to YAML
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
308
     * @access private
Open commit View diff
308 * @access private
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
309
     * @return string
Open commit View diff
309 * @return string
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
310
     * @param $array The array you want to convert
Open commit View diff
310 * @param $array The array you want to convert
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
311
     * @param $indent The indent of the current level
Open commit View diff
311 * @param $indent The indent of the current level
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
312
     */
Open commit View diff
312 */
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
313
  private function _yamlizeArray($array,$indent) {
Open commit View diff
313 private function _yamlizeArray($array,$indent) {
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
314
    if (is_array($array)) {
Open commit View diff
314 if (is_array($array)) {
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
315
      $string = '';
Open commit View diff
315 $string = '';
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
316
      $previous_key = -1;
Open commit View diff
316 $previous_key = -1;
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
317
      foreach ($array as $key => $value) {
Open commit View diff
317 foreach ($array as $key => $value) {
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
318
        if (!isset($first_key)) $first_key = $key;
Open commit View diff
318 if (!isset($first_key)) $first_key = $key;
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
319
        $string .= $this->_yamlize($key, $value, $indent, $previous_key, $first_key, $array);
Open commit View diff
319 $string .= $this->_yamlize($key, $value, $indent, $previous_key, $first_key, $array);
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
320
        $previous_key = $key;
Open commit View diff
320 $previous_key = $key;
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
321
      }
Open commit View diff
321 }
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
322
      return $string;
Open commit View diff
322 return $string;
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
323
    } else {
Open commit View diff
323 } else {
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
324
      return false;
Open commit View diff
324 return false;
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
325
    }
Open commit View diff
325 }
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
326
  }
Open commit View diff
326 }
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
327
Open commit View diff
327
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
328
  /**
Open commit View diff
328 /**
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
329
     * Returns YAML from a key and a value
Open commit View diff
329 * Returns YAML from a key and a value
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
330
     * @access private
Open commit View diff
330 * @access private
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
331
     * @return string
Open commit View diff
331 * @return string
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
332
     * @param $key The name of the key
Open commit View diff
332 * @param $key The name of the key
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
333
     * @param $value The value of the item
Open commit View diff
333 * @param $value The value of the item
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
334
     * @param $indent The indent of the current node
Open commit View diff
334 * @param $indent The indent of the current node
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
335
     */
Open commit View diff
335 */
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
336
  private function _dumpNode($key, $value, $indent, $previous_key = -1, $first_key = 0, $source_array = null) {
Open commit View diff
336 private function _dumpNode($key, $value, $indent, $previous_key = -1, $first_key = 0, $source_array = null) {
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
337
    // do some folding here, for blocks
Open commit View diff
337 // do some folding here, for blocks
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
338
    if (is_string ($value) && ((strpos($value,"\n") !== false || strpos($value,": ") !== false || strpos($value,"- ") !== false ||
Open commit View diff
338 if (is_string ($value) && ((strpos($value,"\n") !== false || strpos($value,": ") !== false || strpos($value,"- ") !== false ||
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
339
      strpos($value,"*") !== false || strpos($value,"#") !== false || strpos($value,"<") !== false || strpos($value,">") !== false || strpos ($value, '%') !== false || strpos ($value, '  ') !== false ||
Open commit View diff
339 strpos($value,"*") !== false || strpos($value,"#") !== false || strpos($value,"<") !== false || strpos($value,">") !== false || strpos ($value, '%') !== false || strpos ($value, ' ') !== false ||
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
340
      strpos($value,"[") !== false || strpos($value,"]") !== false || strpos($value,"{") !== false || strpos($value,"}") !== false) || strpos($value,"&") !== false || strpos($value, "'") !== false || strpos($value, "!") === 0 ||
Open commit View diff
340 strpos($value,"[") !== false || strpos($value,"]") !== false || strpos($value,"{") !== false || strpos($value,"}") !== false) || strpos($value,"&") !== false || strpos($value, "'") !== false || strpos($value, "!") === 0 ||
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
341
      substr ($value, -1, 1) == ':')
Open commit View diff
341 substr ($value, -1, 1) == ':')
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
342
    ) {
Open commit View diff
342 ) {
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
343
      $value = $this->_doLiteralBlock($value,$indent);
Open commit View diff
343 $value = $this->_doLiteralBlock($value,$indent);
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
344
    } else {
Open commit View diff
344 } else {
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
345
      $value  = $this->_doFolding($value,$indent);
Open commit View diff
345 $value = $this->_doFolding($value,$indent);
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
346
    }
Open commit View diff
346 }
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
347
Open commit View diff
347
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
348
    if ($value === array()) $value = '[ ]';
Open commit View diff
348 if ($value === array()) $value = '[ ]';
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
349
    if ($value === "") $value = '""';
Open commit View diff
349 if ($value === "") $value = '""';
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
350
    if (self::isTranslationWord($value)) {
Open commit View diff
350 if (self::isTranslationWord($value)) {
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
351
      $value = $this->_doLiteralBlock($value, $indent);
Open commit View diff
351 $value = $this->_doLiteralBlock($value, $indent);
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
352
    }
Open commit View diff
352 }
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
353
    if (trim ($value) != $value)
Open commit View diff
353 if (trim ($value) != $value)
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
354
       $value = $this->_doLiteralBlock($value,$indent);
Open commit View diff
354 $value = $this->_doLiteralBlock($value,$indent);
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
355
Open commit View diff
355
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
356
    if (is_bool($value)) {
Open commit View diff
356 if (is_bool($value)) {
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
357
       $value = $value ? "true" : "false";
Open commit View diff
357 $value = $value ? "true" : "false";
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
358
    }
Open commit View diff
358 }
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
359
Open commit View diff
359
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
360
    if ($value === null) $value = 'null';
Open commit View diff
360 if ($value === null) $value = 'null';
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
361
    if ($value === "'" . self::REMPTY . "'") $value = null;
Open commit View diff
361 if ($value === "'" . self::REMPTY . "'") $value = null;
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
362
Open commit View diff
362
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
363
    $spaces = str_repeat(' ',$indent);
Open commit View diff
363 $spaces = str_repeat(' ',$indent);
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
364
Open commit View diff
364
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
365
    //if (is_int($key) && $key - 1 == $previous_key && $first_key===0) {
Open commit View diff
365 //if (is_int($key) && $key - 1 == $previous_key && $first_key===0) {
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
366
    if (is_array ($source_array) && array_keys($source_array) === range(0, count($source_array) - 1)) {
Open commit View diff
366 if (is_array ($source_array) && array_keys($source_array) === range(0, count($source_array) - 1)) {
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
367
      // It's a sequence
Open commit View diff
367 // It's a sequence
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
368
      $string = $spaces.'- '.$value."\n";
Open commit View diff
368 $string = $spaces.'- '.$value."\n";
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
369
    } else {
Open commit View diff
369 } else {
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
370
      // if ($first_key===0)  throw new Exception('Keys are all screwy.  The first one was zero, now it\'s "'. $key .'"');
Open commit View diff
370 // if ($first_key===0) throw new Exception('Keys are all screwy. The first one was zero, now it\'s "'. $key .'"');
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
371
      // It's mapped
Open commit View diff
371 // It's mapped
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
372
      if (strpos($key, ":") !== false || strpos($key, "#") !== false) { $key = '"' . $key . '"'; }
Open commit View diff
372 if (strpos($key, ":") !== false || strpos($key, "#") !== false) { $key = '"' . $key . '"'; }
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
373
      $string = rtrim ($spaces.$key.': '.$value)."\n";
Open commit View diff
373 $string = rtrim ($spaces.$key.': '.$value)."\n";
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
374
    }
Open commit View diff
374 }
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
375
    return $string;
Open commit View diff
375 return $string;
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
376
  }
Open commit View diff
376 }
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
377
Open commit View diff
377
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
378
  /**
Open commit View diff
378 /**
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
379
     * Creates a literal block for dumping
Open commit View diff
379 * Creates a literal block for dumping
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
380
     * @access private
Open commit View diff
380 * @access private
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
381
     * @return string
Open commit View diff
381 * @return string
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
382
     * @param $value
Open commit View diff
382 * @param $value
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
383
     * @param $indent int The value of the indent
Open commit View diff
383 * @param $indent int The value of the indent
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
384
     */
Open commit View diff
384 */
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
385
  private function _doLiteralBlock($value,$indent) {
Open commit View diff
385 private function _doLiteralBlock($value,$indent) {
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
386
    if ($value === "\n") return '\n';
Open commit View diff
386 if ($value === "\n") return '\n';
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
387
    if (strpos($value, "\n") === false && strpos($value, "'") === false) {
Open commit View diff
387 if (strpos($value, "\n") === false && strpos($value, "'") === false) {
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
388
      return sprintf ("'%s'", $value);
Open commit View diff
388 return sprintf ("'%s'", $value);
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
389
    }
Open commit View diff
389 }
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
390
    if (strpos($value, "\n") === false && strpos($value, '"') === false) {
Open commit View diff
390 if (strpos($value, "\n") === false && strpos($value, '"') === false) {
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
391
      return sprintf ('"%s"', $value);
Open commit View diff
391 return sprintf ('"%s"', $value);
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
392
    }
Open commit View diff
392 }
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
393
    $exploded = explode("\n",$value);
Open commit View diff
393 $exploded = explode("\n",$value);
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
394
    $newValue = '|';
Open commit View diff
394 $newValue = '|';
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
395
    if (isset($exploded[0]) && ($exploded[0] == "|" || $exploded[0] == "|-" || $exploded[0] == ">")) {
Open commit View diff
395 if (isset($exploded[0]) && ($exploded[0] == "|" || $exploded[0] == "|-" || $exploded[0] == ">")) {
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
396
        $newValue = $exploded[0];
Open commit View diff
396 $newValue = $exploded[0];
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
397
        unset($exploded[0]);
Open commit View diff
397 unset($exploded[0]);
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
398
    }
Open commit View diff
398 }
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
399
    $indent += $this->_dumpIndent;
Open commit View diff
399 $indent += $this->_dumpIndent;
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
400
    $spaces   = str_repeat(' ',$indent);
Open commit View diff
400 $spaces = str_repeat(' ',$indent);
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
401
    foreach ($exploded as $line) {
Open commit View diff
401 foreach ($exploded as $line) {
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
402
      $line = trim($line);
Open commit View diff
402 $line = trim($line);
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
403
      if (strpos($line, '"') === 0 && strrpos($line, '"') == (strlen($line)-1) || strpos($line, "'") === 0 && strrpos($line, "'") == (strlen($line)-1)) {
Open commit View diff
403 if (strpos($line, '"') === 0 && strrpos($line, '"') == (strlen($line)-1) || strpos($line, "'") === 0 && strrpos($line, "'") == (strlen($line)-1)) {
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
404
        $line = substr($line, 1, -1);
Open commit View diff
404 $line = substr($line, 1, -1);
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
405
      }
Open commit View diff
405 }
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
406
      $newValue .= "\n" . $spaces . ($line);
Open commit View diff
406 $newValue .= "\n" . $spaces . ($line);
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
407
    }
Open commit View diff
407 }
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
408
    return $newValue;
Open commit View diff
408 return $newValue;
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
409
  }
Open commit View diff
409 }
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
410
Open commit View diff
410
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
411
  /**
Open commit View diff
411 /**
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
412
     * Folds a string of text, if necessary
Open commit View diff
412 * Folds a string of text, if necessary
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
413
     * @access private
Open commit View diff
413 * @access private
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
414
     * @return string
Open commit View diff
414 * @return string
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
415
     * @param $value The string you wish to fold
Open commit View diff
415 * @param $value The string you wish to fold
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
416
     */
Open commit View diff
416 */
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
417
  private function _doFolding($value,$indent) {
Open commit View diff
417 private function _doFolding($value,$indent) {
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
418
    // Don't do anything if wordwrap is set to 0
Open commit View diff
418 // Don't do anything if wordwrap is set to 0
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
419
Open commit View diff
419
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
420
    if ($this->_dumpWordWrap !== 0 && is_string ($value) && strlen($value) > $this->_dumpWordWrap) {
Open commit View diff
420 if ($this->_dumpWordWrap !== 0 && is_string ($value) && strlen($value) > $this->_dumpWordWrap) {
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
421
      $indent += $this->_dumpIndent;
Open commit View diff
421 $indent += $this->_dumpIndent;
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
422
      $indent = str_repeat(' ',$indent);
Open commit View diff
422 $indent = str_repeat(' ',$indent);
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
423
      $wrapped = wordwrap($value,$this->_dumpWordWrap,"\n$indent");
Open commit View diff
423 $wrapped = wordwrap($value,$this->_dumpWordWrap,"\n$indent");
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
424
      $value   = ">\n".$indent.$wrapped;
Open commit View diff
424 $value = ">\n".$indent.$wrapped;
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
425
    } else {
Open commit View diff
425 } else {
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
426
      if ($this->setting_dump_force_quotes && is_string ($value) && $value !== self::REMPTY)
Open commit View diff
426 if ($this->setting_dump_force_quotes && is_string ($value) && $value !== self::REMPTY)
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
427
        $value = '"' . $value . '"';
Open commit View diff
427 $value = '"' . $value . '"';
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
428
      if (is_numeric($value) && is_string($value))
Open commit View diff
428 if (is_numeric($value) && is_string($value))
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
429
        $value = '"' . $value . '"';
Open commit View diff
429 $value = '"' . $value . '"';
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
430
    }
Open commit View diff
430 }
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
431
Open commit View diff
431
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
432
Open commit View diff
432
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
433
    return $value;
Open commit View diff
433 return $value;
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
434
  }
Open commit View diff
434 }
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
435
Open commit View diff
435
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
436
  private function isTrueWord($value) {
Open commit View diff
436 private function isTrueWord($value) {
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
437
    $words = self::getTranslations(array('true', 'on', 'yes', 'y'));
Open commit View diff
437 $words = self::getTranslations(array('true', 'on', 'yes', 'y'));
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
438
    return in_array($value, $words, true);
Open commit View diff
438 return in_array($value, $words, true);
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
439
  }
Open commit View diff
439 }
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
440
Open commit View diff
440
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
441
  private function isFalseWord($value) {
Open commit View diff
441 private function isFalseWord($value) {
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
442
    $words = self::getTranslations(array('false', 'off', 'no', 'n'));
Open commit View diff
442 $words = self::getTranslations(array('false', 'off', 'no', 'n'));
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
443
    return in_array($value, $words, true);
Open commit View diff
443 return in_array($value, $words, true);
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
444
  }
Open commit View diff
444 }
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
445
Open commit View diff
445
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
446
  private function isNullWord($value) {
Open commit View diff
446 private function isNullWord($value) {
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
447
    $words = self::getTranslations(array('null', '~'));
Open commit View diff
447 $words = self::getTranslations(array('null', '~'));
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
448
    return in_array($value, $words, true);
Open commit View diff
448 return in_array($value, $words, true);
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
449
  }
Open commit View diff
449 }
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
450
Open commit View diff
450
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
451
  private function isTranslationWord($value) {
Open commit View diff
451 private function isTranslationWord($value) {
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
452
    return (
Open commit View diff
452 return (
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
453
      self::isTrueWord($value)  ||
Open commit View diff
453 self::isTrueWord($value) ||
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
454
      self::isFalseWord($value) ||
Open commit View diff
454 self::isFalseWord($value) ||
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
455
      self::isNullWord($value)
Open commit View diff
455 self::isNullWord($value)
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
456
    );
Open commit View diff
456 );
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
457
  }
Open commit View diff
457 }
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
458
Open commit View diff
458
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
459
  /**
Open commit View diff
459 /**
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
460
     * Coerce a string into a native type
Open commit View diff
460 * Coerce a string into a native type
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
461
     * Reference: http://yaml.org/type/bool.html
Open commit View diff
461 * Reference: http://yaml.org/type/bool.html
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
462
     * TODO: Use only words from the YAML spec.
Open commit View diff
462 * TODO: Use only words from the YAML spec.
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
463
     * @access private
Open commit View diff
463 * @access private
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
464
     * @param $value The value to coerce
Open commit View diff
464 * @param $value The value to coerce
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
465
     */
Open commit View diff
465 */
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
466
  private function coerceValue(&$value) {
Open commit View diff
466 private function coerceValue(&$value) {
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
467
    if (self::isTrueWord($value)) {
Open commit View diff
467 if (self::isTrueWord($value)) {
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
468
      $value = true;
Open commit View diff
468 $value = true;
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
469
    } else if (self::isFalseWord($value)) {
Open commit View diff
469 } else if (self::isFalseWord($value)) {
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
470
      $value = false;
Open commit View diff
470 $value = false;
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
471
    } else if (self::isNullWord($value)) {
Open commit View diff
471 } else if (self::isNullWord($value)) {
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
472
      $value = null;
Open commit View diff
472 $value = null;
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
473
    }
Open commit View diff
473 }
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
474
  }
Open commit View diff
474 }
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
475
Open commit View diff
475
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
476
  /**
Open commit View diff
476 /**
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
477
     * Given a set of words, perform the appropriate translations on them to
Open commit View diff
477 * Given a set of words, perform the appropriate translations on them to
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
478
     * match the YAML 1.1 specification for type coercing.
Open commit View diff
478 * match the YAML 1.1 specification for type coercing.
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
479
     * @param $words The words to translate
Open commit View diff
479 * @param $words The words to translate
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
480
     * @access private
Open commit View diff
480 * @access private
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
481
     */
Open commit View diff
481 */
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
482
  private static function getTranslations(array $words) {
Open commit View diff
482 private static function getTranslations(array $words) {
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
483
    $result = array();
Open commit View diff
483 $result = array();
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
484
    foreach ($words as $i) {
Open commit View diff
484 foreach ($words as $i) {
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
485
      $result = array_merge($result, array(ucfirst($i), strtoupper($i), strtolower($i)));
Open commit View diff
485 $result = array_merge($result, array(ucfirst($i), strtoupper($i), strtolower($i)));
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
486
    }
Open commit View diff
486 }
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
487
    return $result;
Open commit View diff
487 return $result;
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
488
  }
Open commit View diff
488 }
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
489
Open commit View diff
489
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
490
// LOADING FUNCTIONS
Open commit View diff
490 // LOADING FUNCTIONS
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
491
Open commit View diff
491
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
492
  private function _load($input) {
Open commit View diff
492 private function _load($input) {
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
493
    $Source = $this->loadFromSource($input);
Open commit View diff
493 $Source = $this->loadFromSource($input);
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
494
    return $this->loadWithSource($Source);
Open commit View diff
494 return $this->loadWithSource($Source);
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
495
  }
Open commit View diff
495 }
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
496
Open commit View diff
496
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
497
  private function _loadString($input) {
Open commit View diff
497 private function _loadString($input) {
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
498
    $Source = $this->loadFromString($input);
Open commit View diff
498 $Source = $this->loadFromString($input);
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
499
    return $this->loadWithSource($Source);
Open commit View diff
499 return $this->loadWithSource($Source);
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
500
  }
Open commit View diff
500 }
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
501
Open commit View diff
501
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
502
  private function loadWithSource($Source) {
Open commit View diff
502 private function loadWithSource($Source) {
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
503
    if (empty ($Source)) return array();
Open commit View diff
503 if (empty ($Source)) return array();
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
504
    if ($this->setting_use_syck_is_possible && function_exists ('syck_load')) {
Open commit View diff
504 if ($this->setting_use_syck_is_possible && function_exists ('syck_load')) {
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
505
      $array = syck_load (implode ("\n", $Source));
Open commit View diff
505 $array = syck_load (implode ("\n", $Source));
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
506
      return is_array($array) ? $array : array();
Open commit View diff
506 return is_array($array) ? $array : array();
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
507
    }
Open commit View diff
507 }
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
508
Open commit View diff
508
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
509
    $this->path = array();
Open commit View diff
509 $this->path = array();
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
510
    $this->result = array();
Open commit View diff
510 $this->result = array();
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
511
Open commit View diff
511
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
512
    $cnt = count($Source);
Open commit View diff
512 $cnt = count($Source);
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
513
    for ($i = 0; $i < $cnt; $i++) {
Open commit View diff
513 for ($i = 0; $i < $cnt; $i++) {
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
514
      $line = $Source[$i];
Open commit View diff
514 $line = $Source[$i];
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
515
Open commit View diff
515
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
516
      $this->indent = strlen($line) - strlen(ltrim($line));
Open commit View diff
516 $this->indent = strlen($line) - strlen(ltrim($line));
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
517
      $tempPath = $this->getParentPathByIndent($this->indent);
Open commit View diff
517 $tempPath = $this->getParentPathByIndent($this->indent);
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
518
      $line = self::stripIndent($line, $this->indent);
Open commit View diff
518 $line = self::stripIndent($line, $this->indent);
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
519
      if (self::isComment($line)) continue;
Open commit View diff
519 if (self::isComment($line)) continue;
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
520
      if (self::isEmpty($line)) continue;
Open commit View diff
520 if (self::isEmpty($line)) continue;
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
521
      $this->path = $tempPath;
Open commit View diff
521 $this->path = $tempPath;
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
522
Open commit View diff
522
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
523
      $literalBlockStyle = self::startsLiteralBlock($line);
Open commit View diff
523 $literalBlockStyle = self::startsLiteralBlock($line);
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
524
      if ($literalBlockStyle) {
Open commit View diff
524 if ($literalBlockStyle) {
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
525
        $line = rtrim ($line, $literalBlockStyle . " \n");
Open commit View diff
525 $line = rtrim ($line, $literalBlockStyle . " \n");
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
526
        $literalBlock = '';
Open commit View diff
526 $literalBlock = '';
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
527
        $line .= ' '.$this->LiteralPlaceHolder;
Open commit View diff
527 $line .= ' '.$this->LiteralPlaceHolder;
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
528
        $literal_block_indent = strlen($Source[$i+1]) - strlen(ltrim($Source[$i+1]));
Open commit View diff
528 $literal_block_indent = strlen($Source[$i+1]) - strlen(ltrim($Source[$i+1]));
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
529
        while (++$i < $cnt && $this->literalBlockContinues($Source[$i], $this->indent)) {
Open commit View diff
529 while (++$i < $cnt && $this->literalBlockContinues($Source[$i], $this->indent)) {
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
530
          $literalBlock = $this->addLiteralLine($literalBlock, $Source[$i], $literalBlockStyle, $literal_block_indent);
Open commit View diff
530 $literalBlock = $this->addLiteralLine($literalBlock, $Source[$i], $literalBlockStyle, $literal_block_indent);
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
531
        }
Open commit View diff
531 }
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
532
        $i--;
Open commit View diff
532 $i--;
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
533
      }
Open commit View diff
533 }
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
534
Open commit View diff
534
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
535
      // Strip out comments
Open commit View diff
535 // Strip out comments
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
536
      if (strpos ($line, '#')) {
Open commit View diff
536 if (strpos ($line, '#')) {
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
537
          $line = preg_replace('/\s*#([^"\']+)$/','',$line);
Open commit View diff
537 $line = preg_replace('/\s*#([^"\']+)$/','',$line);
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
538
      }
Open commit View diff
538 }
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
539
Open commit View diff
539
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
540
      while (++$i < $cnt && self::greedilyNeedNextLine($line)) {
Open commit View diff
540 while (++$i < $cnt && self::greedilyNeedNextLine($line)) {
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
541
        $line = rtrim ($line, " \n\t\r") . ' ' . ltrim ($Source[$i], " \t");
Open commit View diff
541 $line = rtrim ($line, " \n\t\r") . ' ' . ltrim ($Source[$i], " \t");
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
542
      }
Open commit View diff
542 }
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
543
      $i--;
Open commit View diff
543 $i--;
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
544
Open commit View diff
544
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
545
      $lineArray = $this->_parseLine($line);
Open commit View diff
545 $lineArray = $this->_parseLine($line);
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
546
Open commit View diff
546
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
547
      if ($literalBlockStyle)
Open commit View diff
547 if ($literalBlockStyle)
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
548
        $lineArray = $this->revertLiteralPlaceHolder ($lineArray, $literalBlock);
Open commit View diff
548 $lineArray = $this->revertLiteralPlaceHolder ($lineArray, $literalBlock);
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
549
Open commit View diff
549
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
550
      $this->addArray($lineArray, $this->indent);
Open commit View diff
550 $this->addArray($lineArray, $this->indent);
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
551
Open commit View diff
551
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
552
      foreach ($this->delayedPath as $indent => $delayedPath)
Open commit View diff
552 foreach ($this->delayedPath as $indent => $delayedPath)
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
553
        $this->path[$indent] = $delayedPath;
Open commit View diff
553 $this->path[$indent] = $delayedPath;
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
554
Open commit View diff
554
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
555
      $this->delayedPath = array();
Open commit View diff
555 $this->delayedPath = array();
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
556
Open commit View diff
556
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
557
    }
Open commit View diff
557 }
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
558
    return $this->result;
Open commit View diff
558 return $this->result;
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
559
  }
Open commit View diff
559 }
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
560
Open commit View diff
560
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
561
  private function loadFromSource ($input) {
Open commit View diff
561 private function loadFromSource ($input) {
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
562
    if (!empty($input) && strpos($input, "\n") === false && file_exists($input))
Open commit View diff
562 if (!empty($input) && strpos($input, "\n") === false && file_exists($input))
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
563
      $input = file_get_contents($input);
Open commit View diff
563 $input = file_get_contents($input);
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
564
Open commit View diff
564
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
565
    return $this->loadFromString($input);
Open commit View diff
565 return $this->loadFromString($input);
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
566
  }
Open commit View diff
566 }
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
567
Open commit View diff
567
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
568
  private function loadFromString ($input) {
Open commit View diff
568 private function loadFromString ($input) {
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
569
    $lines = explode("\n",$input);
Open commit View diff
569 $lines = explode("\n",$input);
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
570
    foreach ($lines as $k => $_) {
Open commit View diff
570 foreach ($lines as $k => $_) {
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
571
      $lines[$k] = rtrim ($_, "\r");
Open commit View diff
571 $lines[$k] = rtrim ($_, "\r");
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
572
    }
Open commit View diff
572 }
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
573
    return $lines;
Open commit View diff
573 return $lines;
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
574
  }
Open commit View diff
574 }
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
575
Open commit View diff
575
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
576
  /**
Open commit View diff
576 /**
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
577
     * Parses YAML code and returns an array for a node
Open commit View diff
577 * Parses YAML code and returns an array for a node
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
578
     * @access private
Open commit View diff
578 * @access private
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
579
     * @return array
Open commit View diff
579 * @return array
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
580
     * @param string $line A line from the YAML file
Open commit View diff
580 * @param string $line A line from the YAML file
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
581
     */
Open commit View diff
581 */
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
582
  private function _parseLine($line) {
Open commit View diff
582 private function _parseLine($line) {
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
583
    if (!$line) return array();
Open commit View diff
583 if (!$line) return array();
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
584
    $line = trim($line);
Open commit View diff
584 $line = trim($line);
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
585
    if (!$line) return array();
Open commit View diff
585 if (!$line) return array();
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
586
Open commit View diff
586
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
587
    $array = array();
Open commit View diff
587 $array = array();
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
588
Open commit View diff
588
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
589
    $group = $this->nodeContainsGroup($line);
Open commit View diff
589 $group = $this->nodeContainsGroup($line);
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
590
    if ($group) {
Open commit View diff
590 if ($group) {
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
591
      $this->addGroup($line, $group);
Open commit View diff
591 $this->addGroup($line, $group);
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
592
      $line = $this->stripGroup ($line, $group);
Open commit View diff
592 $line = $this->stripGroup ($line, $group);
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
593
    }
Open commit View diff
593 }
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
594
Open commit View diff
594
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
595
    if ($this->startsMappedSequence($line)) {
Open commit View diff
595 if ($this->startsMappedSequence($line)) {
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
596
      return $this->returnMappedSequence($line);
Open commit View diff
596 return $this->returnMappedSequence($line);
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
597
    }
Open commit View diff
597 }
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
598
Open commit View diff
598
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
599
    if ($this->startsMappedValue($line)) {
Open commit View diff
599 if ($this->startsMappedValue($line)) {
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
600
      return $this->returnMappedValue($line);
Open commit View diff
600 return $this->returnMappedValue($line);
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
601
    }
Open commit View diff
601 }
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
602
Open commit View diff
602
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
603
    if ($this->isArrayElement($line))
Open commit View diff
603 if ($this->isArrayElement($line))
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
604
      return $this->returnArrayElement($line);
Open commit View diff
604 return $this->returnArrayElement($line);
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
605
Open commit View diff
605
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
606
    if ($this->isPlainArray($line))
Open commit View diff
606 if ($this->isPlainArray($line))
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
607
     return $this->returnPlainArray($line);
Open commit View diff
607 return $this->returnPlainArray($line);
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
608
Open commit View diff
608
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
609
    return $this->returnKeyValuePair($line);
Open commit View diff
609 return $this->returnKeyValuePair($line);
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
610
Open commit View diff
610
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
611
  }
Open commit View diff
611 }
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
612
Open commit View diff
612
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
613
  /**
Open commit View diff
613 /**
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
614
     * Finds the type of the passed value, returns the value as the new type.
Open commit View diff
614 * Finds the type of the passed value, returns the value as the new type.
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
615
     * @access private
Open commit View diff
615 * @access private
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
616
     * @param string $value
Open commit View diff
616 * @param string $value
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
617
     * @return mixed
Open commit View diff
617 * @return mixed
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
618
     */
Open commit View diff
618 */
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
619
  private function _toType($value) {
Open commit View diff
619 private function _toType($value) {
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
620
    if ($value === '') return "";
Open commit View diff
620 if ($value === '') return "";
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
621
Open commit View diff
621
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
622
    if ($this->setting_empty_hash_as_object && $value === '{}') {
Open commit View diff
622 if ($this->setting_empty_hash_as_object && $value === '{}') {
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
623
      return new stdClass();
Open commit View diff
623 return new stdClass();
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
624
    }
Open commit View diff
624 }
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
625
Open commit View diff
625
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
626
    $first_character = $value[0];
Open commit View diff
626 $first_character = $value[0];
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
627
    $last_character = substr($value, -1, 1);
Open commit View diff
627 $last_character = substr($value, -1, 1);
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
628
Open commit View diff
628
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
629
    $is_quoted = false;
Open commit View diff
629 $is_quoted = false;
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
630
    do {
Open commit View diff
630 do {
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
631
      if (!$value) break;
Open commit View diff
631 if (!$value) break;
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
632
      if ($first_character != '"' && $first_character != "'") break;
Open commit View diff
632 if ($first_character != '"' && $first_character != "'") break;
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
633
      if ($last_character != '"' && $last_character != "'") break;
Open commit View diff
633 if ($last_character != '"' && $last_character != "'") break;
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
634
      $is_quoted = true;
Open commit View diff
634 $is_quoted = true;
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
635
    } while (0);
Open commit View diff
635 } while (0);
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
636
Open commit View diff
636
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
637
    if ($is_quoted) {
Open commit View diff
637 if ($is_quoted) {
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
638
      $value = str_replace('\n', "\n", $value);
Open commit View diff
638 $value = str_replace('\n', "\n", $value);
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
639
      if ($first_character == "'")
Open commit View diff
639 if ($first_character == "'")
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
640
        return strtr(substr ($value, 1, -1), array ('\'\'' => '\'', '\\\''=> '\''));
Open commit View diff
640 return strtr(substr ($value, 1, -1), array ('\'\'' => '\'', '\\\''=> '\''));
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
641
      return strtr(substr ($value, 1, -1), array ('\\"' => '"', '\\\''=> '\''));
Open commit View diff
641 return strtr(substr ($value, 1, -1), array ('\\"' => '"', '\\\''=> '\''));
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
642
    }
Open commit View diff
642 }
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
643
Open commit View diff
643
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
644
    if (strpos($value, ' #') !== false && !$is_quoted)
Open commit View diff
644 if (strpos($value, ' #') !== false && !$is_quoted)
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
645
      $value = preg_replace('/\s+#(.+)$/','',$value);
Open commit View diff
645 $value = preg_replace('/\s+#(.+)$/','',$value);
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
646
Open commit View diff
646
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
647
    if ($first_character == '[' && $last_character == ']') {
Open commit View diff
647 if ($first_character == '[' && $last_character == ']') {
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
648
      // Take out strings sequences and mappings
Open commit View diff
648 // Take out strings sequences and mappings
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
649
      $innerValue = trim(substr ($value, 1, -1));
Open commit View diff
649 $innerValue = trim(substr ($value, 1, -1));
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
650
      if ($innerValue === '') return array();
Open commit View diff
650 if ($innerValue === '') return array();
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
651
      $explode = $this->_inlineEscape($innerValue);
Open commit View diff
651 $explode = $this->_inlineEscape($innerValue);
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
652
      // Propagate value array
Open commit View diff
652 // Propagate value array
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
653
      $value  = array();
Open commit View diff
653 $value = array();
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
654
      foreach ($explode as $v) {
Open commit View diff
654 foreach ($explode as $v) {
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
655
        $value[] = $this->_toType($v);
Open commit View diff
655 $value[] = $this->_toType($v);
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
656
      }
Open commit View diff
656 }
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
657
      return $value;
Open commit View diff
657 return $value;
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
658
    }
Open commit View diff
658 }
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
659
Open commit View diff
659
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
660
    if (strpos($value,': ')!==false && $first_character != '{') {
Open commit View diff
660 if (strpos($value,': ')!==false && $first_character != '{') {
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
661
      $array = explode(': ',$value);
Open commit View diff
661 $array = explode(': ',$value);
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
662
      $key   = trim($array[0]);
Open commit View diff
662 $key = trim($array[0]);
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
663
      array_shift($array);
Open commit View diff
663 array_shift($array);
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
664
      $value = trim(implode(': ',$array));
Open commit View diff
664 $value = trim(implode(': ',$array));
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
665
      $value = $this->_toType($value);
Open commit View diff
665 $value = $this->_toType($value);
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
666
      return array($key => $value);
Open commit View diff
666 return array($key => $value);
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
667
    }
Open commit View diff
667 }
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
668
Open commit View diff
668
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
669
    if ($first_character == '{' && $last_character == '}') {
Open commit View diff
669 if ($first_character == '{' && $last_character == '}') {
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
670
      $innerValue = trim(substr ($value, 1, -1));
Open commit View diff
670 $innerValue = trim(substr ($value, 1, -1));
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
671
      if ($innerValue === '') return array();
Open commit View diff
671 if ($innerValue === '') return array();
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
672
      // Inline Mapping
Open commit View diff
672 // Inline Mapping
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
673
      // Take out strings sequences and mappings
Open commit View diff
673 // Take out strings sequences and mappings
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
674
      $explode = $this->_inlineEscape($innerValue);
Open commit View diff
674 $explode = $this->_inlineEscape($innerValue);
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
675
      // Propagate value array
Open commit View diff
675 // Propagate value array
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
676
      $array = array();
Open commit View diff
676 $array = array();
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
677
      foreach ($explode as $v) {
Open commit View diff
677 foreach ($explode as $v) {
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
678
        $SubArr = $this->_toType($v);
Open commit View diff
678 $SubArr = $this->_toType($v);
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
679
        if (empty($SubArr)) continue;
Open commit View diff
679 if (empty($SubArr)) continue;
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
680
        if (is_array ($SubArr)) {
Open commit View diff
680 if (is_array ($SubArr)) {
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
681
          $array[key($SubArr)] = $SubArr[key($SubArr)]; continue;
Open commit View diff
681 $array[key($SubArr)] = $SubArr[key($SubArr)]; continue;
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
682
        }
Open commit View diff
682 }
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
683
        $array[] = $SubArr;
Open commit View diff
683 $array[] = $SubArr;
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
684
      }
Open commit View diff
684 }
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
685
      return $array;
Open commit View diff
685 return $array;
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
686
    }
Open commit View diff
686 }
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
687
Open commit View diff
687
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
688
    if ($value == 'null' || $value == 'NULL' || $value == 'Null' || $value == '' || $value == '~') {
Open commit View diff
688 if ($value == 'null' || $value == 'NULL' || $value == 'Null' || $value == '' || $value == '~') {
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
689
      return null;
Open commit View diff
689 return null;
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
690
    }
Open commit View diff
690 }
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
691
Open commit View diff
691
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
692
    if ( is_numeric($value) && preg_match ('/^(-|)[1-9]+[0-9]*$/', $value) ){
Open commit View diff
692 if ( is_numeric($value) && preg_match ('/^(-|)[1-9]+[0-9]*$/', $value) ){
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
693
      $intvalue = (int)$value;
Open commit View diff
693 $intvalue = (int)$value;
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
694
      if ($intvalue != PHP_INT_MAX && $intvalue != ~PHP_INT_MAX)
Open commit View diff
694 if ($intvalue != PHP_INT_MAX && $intvalue != ~PHP_INT_MAX)
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
695
        $value = $intvalue;
Open commit View diff
695 $value = $intvalue;
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
696
      return $value;
Open commit View diff
696 return $value;
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
697
    }
Open commit View diff
697 }
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
698
Open commit View diff
698
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
699
    if ( is_string($value) && preg_match('/^0[xX][0-9a-fA-F]+$/', $value)) {
Open commit View diff
699 if ( is_string($value) && preg_match('/^0[xX][0-9a-fA-F]+$/', $value)) {
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
700
      // Hexadecimal value.
Open commit View diff
700 // Hexadecimal value.
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
701
      return hexdec($value);
Open commit View diff
701 return hexdec($value);
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
702
    }
Open commit View diff
702 }
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
703
Open commit View diff
703
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
704
    $this->coerceValue($value);
Open commit View diff
704 $this->coerceValue($value);
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
705
Open commit View diff
705
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
706
    if (is_numeric($value)) {
Open commit View diff
706 if (is_numeric($value)) {
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
707
      if ($value === '0') return 0;
Open commit View diff
707 if ($value === '0') return 0;
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
708
      if (rtrim ($value, 0) === $value)
Open commit View diff
708 if (rtrim ($value, 0) === $value)
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
709
        $value = (float)$value;
Open commit View diff
709 $value = (float)$value;
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
710
      return $value;
Open commit View diff
710 return $value;
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
711
    }
Open commit View diff
711 }
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
712
Open commit View diff
712
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
713
    return $value;
Open commit View diff
713 return $value;
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
714
  }
Open commit View diff
714 }
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
715
Open commit View diff
715
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
716
  /**
Open commit View diff
716 /**
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
717
     * Used in inlines to check for more inlines or quoted strings
Open commit View diff
717 * Used in inlines to check for more inlines or quoted strings
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
718
     * @access private
Open commit View diff
718 * @access private
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
719
     * @return array
Open commit View diff
719 * @return array
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
720
     */
Open commit View diff
720 */
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
721
  private function _inlineEscape($inline) {
Open commit View diff
721 private function _inlineEscape($inline) {
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
722
    // There's gotta be a cleaner way to do this...
Open commit View diff
722 // There's gotta be a cleaner way to do this...
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
723
    // While pure sequences seem to be nesting just fine,
Open commit View diff
723 // While pure sequences seem to be nesting just fine,
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
724
    // pure mappings and mappings with sequences inside can't go very
Open commit View diff
724 // pure mappings and mappings with sequences inside can't go very
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
725
    // deep.  This needs to be fixed.
Open commit View diff
725 // deep. This needs to be fixed.
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
726
Open commit View diff
726
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
727
    $seqs = array();
Open commit View diff
727 $seqs = array();
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
728
    $maps = array();
Open commit View diff
728 $maps = array();
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
729
    $saved_strings = array();
Open commit View diff
729 $saved_strings = array();
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
730
    $saved_empties = array();
Open commit View diff
730 $saved_empties = array();
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
731
Open commit View diff
731
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
732
    // Check for empty strings
Open commit View diff
732 // Check for empty strings
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
733
    $regex = '/("")|(\'\')/';
Open commit View diff
733 $regex = '/("")|(\'\')/';
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
734
    if (preg_match_all($regex,$inline,$strings)) {
Open commit View diff
734 if (preg_match_all($regex,$inline,$strings)) {
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
735
      $saved_empties = $strings[0];
Open commit View diff
735 $saved_empties = $strings[0];
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
736
      $inline  = preg_replace($regex,'YAMLEmpty',$inline);
Open commit View diff
736 $inline = preg_replace($regex,'YAMLEmpty',$inline);
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
737
    }
Open commit View diff
737 }
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
738
    unset($regex);
Open commit View diff
738 unset($regex);
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
739
Open commit View diff
739
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
740
    // Check for strings
Open commit View diff
740 // Check for strings
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
741
    $regex = '/(?:(")|(?:\'))((?(1)[^"]+|[^\']+))(?(1)"|\')/';
Open commit View diff
741 $regex = '/(?:(")|(?:\'))((?(1)[^"]+|[^\']+))(?(1)"|\')/';
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
742
    if (preg_match_all($regex,$inline,$strings)) {
Open commit View diff
742 if (preg_match_all($regex,$inline,$strings)) {
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
743
      $saved_strings = $strings[0];
Open commit View diff
743 $saved_strings = $strings[0];
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
744
      $inline  = preg_replace($regex,'YAMLString',$inline);
Open commit View diff
744 $inline = preg_replace($regex,'YAMLString',$inline);
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
745
    }
Open commit View diff
745 }
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
746
    unset($regex);
Open commit View diff
746 unset($regex);
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
747
Open commit View diff
747
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
748
    // echo $inline;
Open commit View diff
748 // echo $inline;
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
749
Open commit View diff
749
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
750
    $i = 0;
Open commit View diff
750 $i = 0;
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
751
    do {
Open commit View diff
751 do {
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
752
Open commit View diff
752
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
753
    // Check for sequences
Open commit View diff
753 // Check for sequences
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
754
    while (preg_match('/\[([^{}\[\]]+)\]/U',$inline,$matchseqs)) {
Open commit View diff
754 while (preg_match('/\[([^{}\[\]]+)\]/U',$inline,$matchseqs)) {
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
755
      $seqs[] = $matchseqs[0];
Open commit View diff
755 $seqs[] = $matchseqs[0];
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
756
      $inline = preg_replace('/\[([^{}\[\]]+)\]/U', ('YAMLSeq' . (count($seqs) - 1) . 's'), $inline, 1);
Open commit View diff
756 $inline = preg_replace('/\[([^{}\[\]]+)\]/U', ('YAMLSeq' . (count($seqs) - 1) . 's'), $inline, 1);
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
757
    }
Open commit View diff
757 }
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
758
Open commit View diff
758
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
759
    // Check for mappings
Open commit View diff
759 // Check for mappings
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
760
    while (preg_match('/{([^\[\]{}]+)}/U',$inline,$matchmaps)) {
Open commit View diff
760 while (preg_match('/{([^\[\]{}]+)}/U',$inline,$matchmaps)) {
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
761
      $maps[] = $matchmaps[0];
Open commit View diff
761 $maps[] = $matchmaps[0];
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
762
      $inline = preg_replace('/{([^\[\]{}]+)}/U', ('YAMLMap' . (count($maps) - 1) . 's'), $inline, 1);
Open commit View diff
762 $inline = preg_replace('/{([^\[\]{}]+)}/U', ('YAMLMap' . (count($maps) - 1) . 's'), $inline, 1);
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
763
    }
Open commit View diff
763 }
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
764
Open commit View diff
764
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
765
    if ($i++ >= 10) break;
Open commit View diff
765 if ($i++ >= 10) break;
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
766
Open commit View diff
766
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
767
    } while (strpos ($inline, '[') !== false || strpos ($inline, '{') !== false);
Open commit View diff
767 } while (strpos ($inline, '[') !== false || strpos ($inline, '{') !== false);
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
768
Open commit View diff
768
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
769
    $explode = explode(',',$inline);
Open commit View diff
769 $explode = explode(',',$inline);
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
770
    $explode = array_map('trim', $explode);
Open commit View diff
770 $explode = array_map('trim', $explode);
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
771
    $stringi = 0; $i = 0;
Open commit View diff
771 $stringi = 0; $i = 0;
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
772
Open commit View diff
772
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
773
    while (1) {
Open commit View diff
773 while (1) {
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
774
Open commit View diff
774
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
775
    // Re-add the sequences
Open commit View diff
775 // Re-add the sequences
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
776
    if (!empty($seqs)) {
Open commit View diff
776 if (!empty($seqs)) {
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
777
      foreach ($explode as $key => $value) {
Open commit View diff
777 foreach ($explode as $key => $value) {
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
778
        if (strpos($value,'YAMLSeq') !== false) {
Open commit View diff
778 if (strpos($value,'YAMLSeq') !== false) {
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
779
          foreach ($seqs as $seqk => $seq) {
Open commit View diff
779 foreach ($seqs as $seqk => $seq) {
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
780
            $explode[$key] = str_replace(('YAMLSeq'.$seqk.'s'),$seq,$value);
Open commit View diff
780 $explode[$key] = str_replace(('YAMLSeq'.$seqk.'s'),$seq,$value);
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
781
            $value = $explode[$key];
Open commit View diff
781 $value = $explode[$key];
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
782
          }
Open commit View diff
782 }
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
783
        }
Open commit View diff
783 }
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
784
      }
Open commit View diff
784 }
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
785
    }
Open commit View diff
785 }
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
786
Open commit View diff
786
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
787
    // Re-add the mappings
Open commit View diff
787 // Re-add the mappings
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
788
    if (!empty($maps)) {
Open commit View diff
788 if (!empty($maps)) {
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
789
      foreach ($explode as $key => $value) {
Open commit View diff
789 foreach ($explode as $key => $value) {
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
790
        if (strpos($value,'YAMLMap') !== false) {
Open commit View diff
790 if (strpos($value,'YAMLMap') !== false) {
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
791
          foreach ($maps as $mapk => $map) {
Open commit View diff
791 foreach ($maps as $mapk => $map) {
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
792
            $explode[$key] = str_replace(('YAMLMap'.$mapk.'s'), $map, $value);
Open commit View diff
792 $explode[$key] = str_replace(('YAMLMap'.$mapk.'s'), $map, $value);
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
793
            $value = $explode[$key];
Open commit View diff
793 $value = $explode[$key];
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
794
          }
Open commit View diff
794 }
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
795
        }
Open commit View diff
795 }
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
796
      }
Open commit View diff
796 }
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
797
    }
Open commit View diff
797 }
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
798
Open commit View diff
798
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
799
Open commit View diff
799
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
800
    // Re-add the strings
Open commit View diff
800 // Re-add the strings
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
801
    if (!empty($saved_strings)) {
Open commit View diff
801 if (!empty($saved_strings)) {
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
802
      foreach ($explode as $key => $value) {
Open commit View diff
802 foreach ($explode as $key => $value) {
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
803
        while (strpos($value,'YAMLString') !== false) {
Open commit View diff
803 while (strpos($value,'YAMLString') !== false) {
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
804
          $explode[$key] = preg_replace('/YAMLString/',$saved_strings[$stringi],$value, 1);
Open commit View diff
804 $explode[$key] = preg_replace('/YAMLString/',$saved_strings[$stringi],$value, 1);
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
805
          unset($saved_strings[$stringi]);
Open commit View diff
805 unset($saved_strings[$stringi]);
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
806
          ++$stringi;
Open commit View diff
806 ++$stringi;
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
807
          $value = $explode[$key];
Open commit View diff
807 $value = $explode[$key];
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
808
        }
Open commit View diff
808 }
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
809
      }
Open commit View diff
809 }
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
810
    }
Open commit View diff
810 }
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
811
Open commit View diff
811
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
812
Open commit View diff
812
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
813
    // Re-add the empties
Open commit View diff
813 // Re-add the empties
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
814
    if (!empty($saved_empties)) {
Open commit View diff
814 if (!empty($saved_empties)) {
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
815
      foreach ($explode as $key => $value) {
Open commit View diff
815 foreach ($explode as $key => $value) {
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
816
        while (strpos($value,'YAMLEmpty') !== false) {
Open commit View diff
816 while (strpos($value,'YAMLEmpty') !== false) {
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
817
          $explode[$key] = preg_replace('/YAMLEmpty/', '', $value, 1);
Open commit View diff
817 $explode[$key] = preg_replace('/YAMLEmpty/', '', $value, 1);
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
818
          $value = $explode[$key];
Open commit View diff
818 $value = $explode[$key];
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
819
        }
Open commit View diff
819 }
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
820
      }
Open commit View diff
820 }
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
821
    }
Open commit View diff
821 }
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
822
Open commit View diff
822
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
823
    $finished = true;
Open commit View diff
823 $finished = true;
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
824
    foreach ($explode as $key => $value) {
Open commit View diff
824 foreach ($explode as $key => $value) {
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
825
      if (strpos($value,'YAMLSeq') !== false) {
Open commit View diff
825 if (strpos($value,'YAMLSeq') !== false) {
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
826
        $finished = false; break;
Open commit View diff
826 $finished = false; break;
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
827
      }
Open commit View diff
827 }
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
828
      if (strpos($value,'YAMLMap') !== false) {
Open commit View diff
828 if (strpos($value,'YAMLMap') !== false) {
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
829
        $finished = false; break;
Open commit View diff
829 $finished = false; break;
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
830
      }
Open commit View diff
830 }
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
831
      if (strpos($value,'YAMLString') !== false) {
Open commit View diff
831 if (strpos($value,'YAMLString') !== false) {
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
832
        $finished = false; break;
Open commit View diff
832 $finished = false; break;
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
833
      }
Open commit View diff
833 }
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
834
      if (strpos($value,'YAMLEmpty') !== false) {
Open commit View diff
834 if (strpos($value,'YAMLEmpty') !== false) {
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
835
        $finished = false; break;
Open commit View diff
835 $finished = false; break;
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
836
      }
Open commit View diff
836 }
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
837
    }
Open commit View diff
837 }
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
838
    if ($finished) break;
Open commit View diff
838 if ($finished) break;
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
839
Open commit View diff
839
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
840
    $i++;
Open commit View diff
840 $i++;
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
841
    if ($i > 10)
Open commit View diff
841 if ($i > 10)
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
842
      break; // Prevent infinite loops.
Open commit View diff
842 break; // Prevent infinite loops.
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
843
    }
Open commit View diff
843 }
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
844
Open commit View diff
844
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
845
Open commit View diff
845
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
846
    return $explode;
Open commit View diff
846 return $explode;
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
847
  }
Open commit View diff
847 }
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
848
Open commit View diff
848
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
849
  private function literalBlockContinues ($line, $lineIndent) {
Open commit View diff
849 private function literalBlockContinues ($line, $lineIndent) {
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
850
    if (!trim($line)) return true;
Open commit View diff
850 if (!trim($line)) return true;
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
851
    if (strlen($line) - strlen(ltrim($line)) > $lineIndent) return true;
Open commit View diff
851 if (strlen($line) - strlen(ltrim($line)) > $lineIndent) return true;
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
852
    return false;
Open commit View diff
852 return false;
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
853
  }
Open commit View diff
853 }
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
854
Open commit View diff
854
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
855
  private function referenceContentsByAlias ($alias) {
Open commit View diff
855 private function referenceContentsByAlias ($alias) {
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
856
    do {
Open commit View diff
856 do {
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
857
      if (!isset($this->SavedGroups[$alias])) { echo "Bad group name: $alias."; break; }
Open commit View diff
857 if (!isset($this->SavedGroups[$alias])) { echo "Bad group name: $alias."; break; }
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
858
      $groupPath = $this->SavedGroups[$alias];
Open commit View diff
858 $groupPath = $this->SavedGroups[$alias];
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
859
      $value = $this->result;
Open commit View diff
859 $value = $this->result;
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
860
      foreach ($groupPath as $k) {
Open commit View diff
860 foreach ($groupPath as $k) {
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
861
        $value = $value[$k];
Open commit View diff
861 $value = $value[$k];
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
862
      }
Open commit View diff
862 }
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
863
    } while (false);
Open commit View diff
863 } while (false);
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
864
    return $value;
Open commit View diff
864 return $value;
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
865
  }
Open commit View diff
865 }
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
866
Open commit View diff
866
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
867
  private function addArrayInline ($array, $indent) {
Open commit View diff
867 private function addArrayInline ($array, $indent) {
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
868
      $CommonGroupPath = $this->path;
Open commit View diff
868 $CommonGroupPath = $this->path;
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
869
      if (empty ($array)) return false;
Open commit View diff
869 if (empty ($array)) return false;
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
870
Open commit View diff
870
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
871
      foreach ($array as $k => $_) {
Open commit View diff
871 foreach ($array as $k => $_) {
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
872
        $this->addArray(array($k => $_), $indent);
Open commit View diff
872 $this->addArray(array($k => $_), $indent);
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
873
        $this->path = $CommonGroupPath;
Open commit View diff
873 $this->path = $CommonGroupPath;
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
874
      }
Open commit View diff
874 }
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
875
      return true;
Open commit View diff
875 return true;
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
876
  }
Open commit View diff
876 }
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
877
Open commit View diff
877
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
878
  private function addArray ($incoming_data, $incoming_indent) {
Open commit View diff
878 private function addArray ($incoming_data, $incoming_indent) {
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
879
Open commit View diff
879
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
880
   // print_r ($incoming_data);
Open commit View diff
880 // print_r ($incoming_data);
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
881
Open commit View diff
881
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
882
    if (count ($incoming_data) > 1)
Open commit View diff
882 if (count ($incoming_data) > 1)
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
883
      return $this->addArrayInline ($incoming_data, $incoming_indent);
Open commit View diff
883 return $this->addArrayInline ($incoming_data, $incoming_indent);
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
884
Open commit View diff
884
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
885
    $key = key ($incoming_data);
Open commit View diff
885 $key = key ($incoming_data);
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
886
    $value = isset($incoming_data[$key]) ? $incoming_data[$key] : null;
Open commit View diff
886 $value = isset($incoming_data[$key]) ? $incoming_data[$key] : null;
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
887
    if ($key === '__!YAMLZero') $key = '0';
Open commit View diff
887 if ($key === '__!YAMLZero') $key = '0';
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
888
Open commit View diff
888
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
889
    if ($incoming_indent == 0 && !$this->_containsGroupAlias && !$this->_containsGroupAnchor) { // Shortcut for root-level values.
Open commit View diff
889 if ($incoming_indent == 0 && !$this->_containsGroupAlias && !$this->_containsGroupAnchor) { // Shortcut for root-level values.
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
890
      if ($key || $key === '' || $key === '0') {
Open commit View diff
890 if ($key || $key === '' || $key === '0') {
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
891
        $this->result[$key] = $value;
Open commit View diff
891 $this->result[$key] = $value;
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
892
      } else {
Open commit View diff
892 } else {
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
893
        $this->result[] = $value; end ($this->result); $key = key ($this->result);
Open commit View diff
893 $this->result[] = $value; end ($this->result); $key = key ($this->result);
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
894
      }
Open commit View diff
894 }
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
895
      $this->path[$incoming_indent] = $key;
Open commit View diff
895 $this->path[$incoming_indent] = $key;
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
896
      return;
Open commit View diff
896 return;
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
897
    }
Open commit View diff
897 }
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
898
Open commit View diff
898
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
899
Open commit View diff
899
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
900
Open commit View diff
900
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
901
    $history = array();
Open commit View diff
901 $history = array();
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
902
    // Unfolding inner array tree.
Open commit View diff
902 // Unfolding inner array tree.
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
903
    $history[] = $_arr = $this->result;
Open commit View diff
903 $history[] = $_arr = $this->result;
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
904
    foreach ($this->path as $k) {
Open commit View diff
904 foreach ($this->path as $k) {
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
905
      $history[] = $_arr = $_arr[$k];
Open commit View diff
905 $history[] = $_arr = $_arr[$k];
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
906
    }
Open commit View diff
906 }
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
907
Open commit View diff
907
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
908
    if ($this->_containsGroupAlias) {
Open commit View diff
908 if ($this->_containsGroupAlias) {
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
909
      $value = $this->referenceContentsByAlias($this->_containsGroupAlias);
Open commit View diff
909 $value = $this->referenceContentsByAlias($this->_containsGroupAlias);
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
910
      $this->_containsGroupAlias = false;
Open commit View diff
910 $this->_containsGroupAlias = false;
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
911
    }
Open commit View diff
911 }
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
912
Open commit View diff
912
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
913
Open commit View diff
913
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
914
    // Adding string or numeric key to the innermost level or $this->arr.
Open commit View diff
914 // Adding string or numeric key to the innermost level or $this->arr.
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
915
    if (is_string($key) && $key == '<<') {
Open commit View diff
915 if (is_string($key) && $key == '<<') {
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
916
      if (!is_array ($_arr)) { $_arr = array (); }
Open commit View diff
916 if (!is_array ($_arr)) { $_arr = array (); }
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
917
Open commit View diff
917
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
918
      $_arr = array_merge ($_arr, $value);
Open commit View diff
918 $_arr = array_merge ($_arr, $value);
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
919
    } else if ($key || $key === '' || $key === '0') {
Open commit View diff
919 } else if ($key || $key === '' || $key === '0') {
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
920
      if (!is_array ($_arr))
Open commit View diff
920 if (!is_array ($_arr))
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
921
        $_arr = array ($key=>$value);
Open commit View diff
921 $_arr = array ($key=>$value);
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
922
      else
Open commit View diff
922 else
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
923
        $_arr[$key] = $value;
Open commit View diff
923 $_arr[$key] = $value;
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
924
    } else {
Open commit View diff
924 } else {
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
925
      if (!is_array ($_arr)) { $_arr = array ($value); $key = 0; }
Open commit View diff
925 if (!is_array ($_arr)) { $_arr = array ($value); $key = 0; }
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
926
      else { $_arr[] = $value; end ($_arr); $key = key ($_arr); }
Open commit View diff
926 else { $_arr[] = $value; end ($_arr); $key = key ($_arr); }
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
927
    }
Open commit View diff
927 }
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
928
Open commit View diff
928
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
929
    $reverse_path = array_reverse($this->path);
Open commit View diff
929 $reverse_path = array_reverse($this->path);
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
930
    $reverse_history = array_reverse ($history);
Open commit View diff
930 $reverse_history = array_reverse ($history);
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
931
    $reverse_history[0] = $_arr;
Open commit View diff
931 $reverse_history[0] = $_arr;
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
932
    $cnt = count($reverse_history) - 1;
Open commit View diff
932 $cnt = count($reverse_history) - 1;
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
933
    for ($i = 0; $i < $cnt; $i++) {
Open commit View diff
933 for ($i = 0; $i < $cnt; $i++) {
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
934
      $reverse_history[$i+1][$reverse_path[$i]] = $reverse_history[$i];
Open commit View diff
934 $reverse_history[$i+1][$reverse_path[$i]] = $reverse_history[$i];
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
935
    }
Open commit View diff
935 }
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
936
    $this->result = $reverse_history[$cnt];
Open commit View diff
936 $this->result = $reverse_history[$cnt];
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
937
Open commit View diff
937
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
938
    $this->path[$incoming_indent] = $key;
Open commit View diff
938 $this->path[$incoming_indent] = $key;
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
939
Open commit View diff
939
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
940
    if ($this->_containsGroupAnchor) {
Open commit View diff
940 if ($this->_containsGroupAnchor) {
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
941
      $this->SavedGroups[$this->_containsGroupAnchor] = $this->path;
Open commit View diff
941 $this->SavedGroups[$this->_containsGroupAnchor] = $this->path;
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
942
      if (is_array ($value)) {
Open commit View diff
942 if (is_array ($value)) {
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
943
        $k = key ($value);
Open commit View diff
943 $k = key ($value);
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
944
        if (!is_int ($k)) {
Open commit View diff
944 if (!is_int ($k)) {
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
945
          $this->SavedGroups[$this->_containsGroupAnchor][$incoming_indent + 2] = $k;
Open commit View diff
945 $this->SavedGroups[$this->_containsGroupAnchor][$incoming_indent + 2] = $k;
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
946
        }
Open commit View diff
946 }
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
947
      }
Open commit View diff
947 }
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
948
      $this->_containsGroupAnchor = false;
Open commit View diff
948 $this->_containsGroupAnchor = false;
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
949
    }
Open commit View diff
949 }
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
950
Open commit View diff
950
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
951
  }
Open commit View diff
951 }
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
952
Open commit View diff
952
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
953
  private static function startsLiteralBlock ($line) {
Open commit View diff
953 private static function startsLiteralBlock ($line) {
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
954
    $lastChar = substr (trim($line), -1);
Open commit View diff
954 $lastChar = substr (trim($line), -1);
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
955
    if ($lastChar != '>' && $lastChar != '|') return false;
Open commit View diff
955 if ($lastChar != '>' && $lastChar != '|') return false;
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
956
    if ($lastChar == '|') return $lastChar;
Open commit View diff
956 if ($lastChar == '|') return $lastChar;
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
957
    // HTML tags should not be counted as literal blocks.
Open commit View diff
957 // HTML tags should not be counted as literal blocks.
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
958
    if (preg_match ('#<.*?>$#', $line)) return false;
Open commit View diff
958 if (preg_match ('#<.*?>$#', $line)) return false;
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
959
    return $lastChar;
Open commit View diff
959 return $lastChar;
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
960
  }
Open commit View diff
960 }
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
961
Open commit View diff
961
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
962
  private static function greedilyNeedNextLine($line) {
Open commit View diff
962 private static function greedilyNeedNextLine($line) {
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
963
    $line = trim ($line);
Open commit View diff
963 $line = trim ($line);
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
964
    if (!strlen($line)) return false;
Open commit View diff
964 if (!strlen($line)) return false;
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
965
    if (substr ($line, -1, 1) == ']') return false;
Open commit View diff
965 if (substr ($line, -1, 1) == ']') return false;
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
966
    if ($line[0] == '[') return true;
Open commit View diff
966 if ($line[0] == '[') return true;
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
967
    if (preg_match ('#^[^:]+?:\s*\[#', $line)) return true;
Open commit View diff
967 if (preg_match ('#^[^:]+?:\s*\[#', $line)) return true;
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
968
    return false;
Open commit View diff
968 return false;
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
969
  }
Open commit View diff
969 }
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
970
Open commit View diff
970
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
971
  private function addLiteralLine ($literalBlock, $line, $literalBlockStyle, $indent = -1) {
Open commit View diff
971 private function addLiteralLine ($literalBlock, $line, $literalBlockStyle, $indent = -1) {
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
972
    $line = self::stripIndent($line, $indent);
Open commit View diff
972 $line = self::stripIndent($line, $indent);
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
973
    if ($literalBlockStyle !== '|') {
Open commit View diff
973 if ($literalBlockStyle !== '|') {
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
974
        $line = self::stripIndent($line);
Open commit View diff
974 $line = self::stripIndent($line);
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
975
    }
Open commit View diff
975 }
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
976
    $line = rtrim ($line, "\r\n\t ") . "\n";
Open commit View diff
976 $line = rtrim ($line, "\r\n\t ") . "\n";
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
977
    if ($literalBlockStyle == '|') {
Open commit View diff
977 if ($literalBlockStyle == '|') {
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
978
      return $literalBlock . $line;
Open commit View diff
978 return $literalBlock . $line;
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
979
    }
Open commit View diff
979 }
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
980
    if (strlen($line) == 0)
Open commit View diff
980 if (strlen($line) == 0)
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
981
      return rtrim($literalBlock, ' ') . "\n";
Open commit View diff
981 return rtrim($literalBlock, ' ') . "\n";
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
982
    if ($line == "\n" && $literalBlockStyle == '>') {
Open commit View diff
982 if ($line == "\n" && $literalBlockStyle == '>') {
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
983
      return rtrim ($literalBlock, " \t") . "\n";
Open commit View diff
983 return rtrim ($literalBlock, " \t") . "\n";
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
984
    }
Open commit View diff
984 }
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
985
    if ($line != "\n")
Open commit View diff
985 if ($line != "\n")
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
986
      $line = trim ($line, "\r\n ") . " ";
Open commit View diff
986 $line = trim ($line, "\r\n ") . " ";
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
987
    return $literalBlock . $line;
Open commit View diff
987 return $literalBlock . $line;
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
988
  }
Open commit View diff
988 }
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
989
Open commit View diff
989
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
990
   function revertLiteralPlaceHolder ($lineArray, $literalBlock) {
Open commit View diff
990 function revertLiteralPlaceHolder ($lineArray, $literalBlock) {
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
991
     foreach ($lineArray as $k => $_) {
Open commit View diff
991 foreach ($lineArray as $k => $_) {
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
992
      if (is_array($_))
Open commit View diff
992 if (is_array($_))
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
993
        $lineArray[$k] = $this->revertLiteralPlaceHolder ($_, $literalBlock);
Open commit View diff
993 $lineArray[$k] = $this->revertLiteralPlaceHolder ($_, $literalBlock);
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
994
      else if (substr($_, -1 * strlen ($this->LiteralPlaceHolder)) == $this->LiteralPlaceHolder)
Open commit View diff
994 else if (substr($_, -1 * strlen ($this->LiteralPlaceHolder)) == $this->LiteralPlaceHolder)
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
995
	       $lineArray[$k] = rtrim ($literalBlock, " \r\n");
Open commit View diff
995 $lineArray[$k] = rtrim ($literalBlock, " \r\n");
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
996
     }
Open commit View diff
996 }
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
997
     return $lineArray;
Open commit View diff
997 return $lineArray;
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
998
   }
Open commit View diff
998 }
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
999
Open commit View diff
999
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
1000
  private static function stripIndent ($line, $indent = -1) {
Open commit View diff
1000 private static function stripIndent ($line, $indent = -1) {
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
1001
    if ($indent == -1) $indent = strlen($line) - strlen(ltrim($line));
Open commit View diff
1001 if ($indent == -1) $indent = strlen($line) - strlen(ltrim($line));
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
1002
    return substr ($line, $indent);
Open commit View diff
1002 return substr ($line, $indent);
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
1003
  }
Open commit View diff
1003 }
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
1004
Open commit View diff
1004
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
1005
  private function getParentPathByIndent ($indent) {
Open commit View diff
1005 private function getParentPathByIndent ($indent) {
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
1006
    if ($indent == 0) return array();
Open commit View diff
1006 if ($indent == 0) return array();
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
1007
    $linePath = $this->path;
Open commit View diff
1007 $linePath = $this->path;
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
1008
    do {
Open commit View diff
1008 do {
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
1009
      end($linePath); $lastIndentInParentPath = key($linePath);
Open commit View diff
1009 end($linePath); $lastIndentInParentPath = key($linePath);
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
1010
      if ($indent <= $lastIndentInParentPath) array_pop ($linePath);
Open commit View diff
1010 if ($indent <= $lastIndentInParentPath) array_pop ($linePath);
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
1011
    } while ($indent <= $lastIndentInParentPath);
Open commit View diff
1011 } while ($indent <= $lastIndentInParentPath);
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
1012
    return $linePath;
Open commit View diff
1012 return $linePath;
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
1013
  }
Open commit View diff
1013 }
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
1014
Open commit View diff
1014
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
1015
Open commit View diff
1015
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
1016
  private function clearBiggerPathValues ($indent) {
Open commit View diff
1016 private function clearBiggerPathValues ($indent) {
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
1017
Open commit View diff
1017
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
1018
Open commit View diff
1018
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
1019
    if ($indent == 0) $this->path = array();
Open commit View diff
1019 if ($indent == 0) $this->path = array();
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
1020
    if (empty ($this->path)) return true;
Open commit View diff
1020 if (empty ($this->path)) return true;
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
1021
Open commit View diff
1021
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
1022
    foreach ($this->path as $k => $_) {
Open commit View diff
1022 foreach ($this->path as $k => $_) {
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
1023
      if ($k > $indent) unset ($this->path[$k]);
Open commit View diff
1023 if ($k > $indent) unset ($this->path[$k]);
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
1024
    }
Open commit View diff
1024 }
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
1025
Open commit View diff
1025
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
1026
    return true;
Open commit View diff
1026 return true;
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
1027
  }
Open commit View diff
1027 }
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
1028
Open commit View diff
1028
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
1029
Open commit View diff
1029
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
1030
  private static function isComment ($line) {
Open commit View diff
1030 private static function isComment ($line) {
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
1031
    if (!$line) return false;
Open commit View diff
1031 if (!$line) return false;
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
1032
    if ($line[0] == '#') return true;
Open commit View diff
1032 if ($line[0] == '#') return true;
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
1033
    if (trim($line, " \r\n\t") == '---') return true;
Open commit View diff
1033 if (trim($line, " \r\n\t") == '---') return true;
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
1034
    return false;
Open commit View diff
1034 return false;
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
1035
  }
Open commit View diff
1035 }
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
1036
Open commit View diff
1036
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
1037
  private static function isEmpty ($line) {
Open commit View diff
1037 private static function isEmpty ($line) {
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
1038
    return (trim ($line) === '');
Open commit View diff
1038 return (trim ($line) === '');
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
1039
  }
Open commit View diff
1039 }
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
1040
Open commit View diff
1040
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
1041
Open commit View diff
1041
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
1042
  private function isArrayElement ($line) {
Open commit View diff
1042 private function isArrayElement ($line) {
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
1043
    if (!$line || !is_scalar($line)) return false;
Open commit View diff
1043 if (!$line || !is_scalar($line)) return false;
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
1044
    if (substr($line, 0, 2) != '- ') return false;
Open commit View diff
1044 if (substr($line, 0, 2) != '- ') return false;
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
1045
    if (strlen ($line) > 3)
Open commit View diff
1045 if (strlen ($line) > 3)
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
1046
      if (substr($line,0,3) == '---') return false;
Open commit View diff
1046 if (substr($line,0,3) == '---') return false;
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
1047
Open commit View diff
1047
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
1048
    return true;
Open commit View diff
1048 return true;
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
1049
  }
Open commit View diff
1049 }
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
1050
Open commit View diff
1050
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
1051
  private function isHashElement ($line) {
Open commit View diff
1051 private function isHashElement ($line) {
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
1052
    return strpos($line, ':');
Open commit View diff
1052 return strpos($line, ':');
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
1053
  }
Open commit View diff
1053 }
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
1054
Open commit View diff
1054
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
1055
  private function isLiteral ($line) {
Open commit View diff
1055 private function isLiteral ($line) {
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
1056
    if ($this->isArrayElement($line)) return false;
Open commit View diff
1056 if ($this->isArrayElement($line)) return false;
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
1057
    if ($this->isHashElement($line)) return false;
Open commit View diff
1057 if ($this->isHashElement($line)) return false;
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
1058
    return true;
Open commit View diff
1058 return true;
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
1059
  }
Open commit View diff
1059 }
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
1060
Open commit View diff
1060
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
1061
Open commit View diff
1061
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
1062
  private static function unquote ($value) {
Open commit View diff
1062 private static function unquote ($value) {
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
1063
    if (!$value) return $value;
Open commit View diff
1063 if (!$value) return $value;
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
1064
    if (!is_string($value)) return $value;
Open commit View diff
1064 if (!is_string($value)) return $value;
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
1065
    if ($value[0] == '\'') return trim ($value, '\'');
Open commit View diff
1065 if ($value[0] == '\'') return trim ($value, '\'');
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
1066
    if ($value[0] == '"') return trim ($value, '"');
Open commit View diff
1066 if ($value[0] == '"') return trim ($value, '"');
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
1067
    return $value;
Open commit View diff
1067 return $value;
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
1068
  }
Open commit View diff
1068 }
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
1069
Open commit View diff
1069
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
1070
  private function startsMappedSequence ($line) {
Open commit View diff
1070 private function startsMappedSequence ($line) {
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
1071
    return (substr($line, 0, 2) == '- ' && substr ($line, -1, 1) == ':');
Open commit View diff
1071 return (substr($line, 0, 2) == '- ' && substr ($line, -1, 1) == ':');
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
1072
  }
Open commit View diff
1072 }
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
1073
Open commit View diff
1073
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
1074
  private function returnMappedSequence ($line) {
Open commit View diff
1074 private function returnMappedSequence ($line) {
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
1075
    $array = array();
Open commit View diff
1075 $array = array();
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
1076
    $key         = self::unquote(trim(substr($line,1,-1)));
Open commit View diff
1076 $key = self::unquote(trim(substr($line,1,-1)));
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
1077
    $array[$key] = array();
Open commit View diff
1077 $array[$key] = array();
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
1078
    $this->delayedPath = array(strpos ($line, $key) + $this->indent => $key);
Open commit View diff
1078 $this->delayedPath = array(strpos ($line, $key) + $this->indent => $key);
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
1079
    return array($array);
Open commit View diff
1079 return array($array);
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
1080
  }
Open commit View diff
1080 }
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
1081
Open commit View diff
1081
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
1082
  private function checkKeysInValue($value) {
Open commit View diff
1082 private function checkKeysInValue($value) {
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
1083
    if (strchr('[{"\'', $value[0]) === false) {
Open commit View diff
1083 if (strchr('[{"\'', $value[0]) === false) {
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
1084
      if (strchr($value, ': ') !== false) {
Open commit View diff
1084 if (strchr($value, ': ') !== false) {
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
1085
          throw new Exception('Too many keys: '.$value);
Open commit View diff
1085 throw new Exception('Too many keys: '.$value);
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
1086
      }
Open commit View diff
1086 }
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
1087
    }
Open commit View diff
1087 }
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
1088
  }
Open commit View diff
1088 }
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
1089
Open commit View diff
1089
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
1090
  private function returnMappedValue ($line) {
Open commit View diff
1090 private function returnMappedValue ($line) {
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
1091
    $this->checkKeysInValue($line);
Open commit View diff
1091 $this->checkKeysInValue($line);
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
1092
    $array = array();
Open commit View diff
1092 $array = array();
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
1093
    $key         = self::unquote (trim(substr($line,0,-1)));
Open commit View diff
1093 $key = self::unquote (trim(substr($line,0,-1)));
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
1094
    $array[$key] = '';
Open commit View diff
1094 $array[$key] = '';
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
1095
    return $array;
Open commit View diff
1095 return $array;
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
1096
  }
Open commit View diff
1096 }
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
1097
Open commit View diff
1097
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
1098
  private function startsMappedValue ($line) {
Open commit View diff
1098 private function startsMappedValue ($line) {
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
1099
    return (substr ($line, -1, 1) == ':');
Open commit View diff
1099 return (substr ($line, -1, 1) == ':');
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
1100
  }
Open commit View diff
1100 }
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
1101
Open commit View diff
1101
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
1102
  private function isPlainArray ($line) {
Open commit View diff
1102 private function isPlainArray ($line) {
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
1103
    return ($line[0] == '[' && substr ($line, -1, 1) == ']');
Open commit View diff
1103 return ($line[0] == '[' && substr ($line, -1, 1) == ']');
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
1104
  }
Open commit View diff
1104 }
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
1105
Open commit View diff
1105
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
1106
  private function returnPlainArray ($line) {
Open commit View diff
1106 private function returnPlainArray ($line) {
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
1107
    return $this->_toType($line);
Open commit View diff
1107 return $this->_toType($line);
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
1108
  }
Open commit View diff
1108 }
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
1109
Open commit View diff
1109
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
1110
  private function returnKeyValuePair ($line) {
Open commit View diff
1110 private function returnKeyValuePair ($line) {
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
1111
    $array = array();
Open commit View diff
1111 $array = array();
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
1112
    $key = '';
Open commit View diff
1112 $key = '';
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
1113
    if (strpos ($line, ': ')) {
Open commit View diff
1113 if (strpos ($line, ': ')) {
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
1114
      // It's a key/value pair most likely
Open commit View diff
1114 // It's a key/value pair most likely
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
1115
      // If the key is in double quotes pull it out
Open commit View diff
1115 // If the key is in double quotes pull it out
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
1116
      if (($line[0] == '"' || $line[0] == "'") && preg_match('/^(["\'](.*)["\'](\s)*:)/',$line,$matches)) {
Open commit View diff
1116 if (($line[0] == '"' || $line[0] == "'") && preg_match('/^(["\'](.*)["\'](\s)*:)/',$line,$matches)) {
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
1117
        $value = trim(str_replace($matches[1],'',$line));
Open commit View diff
1117 $value = trim(str_replace($matches[1],'',$line));
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
1118
        $key   = $matches[2];
Open commit View diff
1118 $key = $matches[2];
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
1119
      } else {
Open commit View diff
1119 } else {
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
1120
        // Do some guesswork as to the key and the value
Open commit View diff
1120 // Do some guesswork as to the key and the value
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
1121
        $explode = explode(': ', $line);
Open commit View diff
1121 $explode = explode(': ', $line);
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
1122
        $key     = trim(array_shift($explode));
Open commit View diff
1122 $key = trim(array_shift($explode));
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
1123
        $value   = trim(implode(': ', $explode));
Open commit View diff
1123 $value = trim(implode(': ', $explode));
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
1124
        $this->checkKeysInValue($value);
Open commit View diff
1124 $this->checkKeysInValue($value);
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
1125
      }
Open commit View diff
1125 }
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
1126
      // Set the type of the value.  Int, string, etc
Open commit View diff
1126 // Set the type of the value. Int, string, etc
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
1127
      $value = $this->_toType($value);
Open commit View diff
1127 $value = $this->_toType($value);
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
1128
Open commit View diff
1128
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
1129
      if ($key === '0') $key = '__!YAMLZero';
Open commit View diff
1129 if ($key === '0') $key = '__!YAMLZero';
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
1130
      $array[$key] = $value;
Open commit View diff
1130 $array[$key] = $value;
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
1131
    } else {
Open commit View diff
1131 } else {
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
1132
      $array = array ($line);
Open commit View diff
1132 $array = array ($line);
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
1133
    }
Open commit View diff
1133 }
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
1134
    return $array;
Open commit View diff
1134 return $array;
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
1135
Open commit View diff
1135
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
1136
  }
Open commit View diff
1136 }
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
1137
Open commit View diff
1137
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
1138
Open commit View diff
1138
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
1139
  private function returnArrayElement ($line) {
Open commit View diff
1139 private function returnArrayElement ($line) {
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
1140
     if (strlen($line) <= 1) return array(array()); // Weird %)
Open commit View diff
1140 if (strlen($line) <= 1) return array(array()); // Weird %)
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
1141
     $array = array();
Open commit View diff
1141 $array = array();
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
1142
     $value   = trim(substr($line,1));
Open commit View diff
1142 $value = trim(substr($line,1));
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
1143
     $value   = $this->_toType($value);
Open commit View diff
1143 $value = $this->_toType($value);
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
1144
     if ($this->isArrayElement($value)) {
Open commit View diff
1144 if ($this->isArrayElement($value)) {
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
1145
       $value = $this->returnArrayElement($value);
Open commit View diff
1145 $value = $this->returnArrayElement($value);
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
1146
     }
Open commit View diff
1146 }
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
1147
     $array[] = $value;
Open commit View diff
1147 $array[] = $value;
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
1148
     return $array;
Open commit View diff
1148 return $array;
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
1149
  }
Open commit View diff
1149 }
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
1150
Open commit View diff
1150
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
1151
Open commit View diff
1151
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
1152
  private function nodeContainsGroup ($line) {
Open commit View diff
1152 private function nodeContainsGroup ($line) {
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
1153
    $symbolsForReference = 'A-z0-9_\-';
Open commit View diff
1153 $symbolsForReference = 'A-z0-9_\-';
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
1154
    if (strpos($line, '&') === false && strpos($line, '*') === false) return false; // Please die fast ;-)
Open commit View diff
1154 if (strpos($line, '&') === false && strpos($line, '*') === false) return false; // Please die fast ;-)
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
1155
    if ($line[0] == '&' && preg_match('/^(&['.$symbolsForReference.']+)/', $line, $matches)) return $matches[1];
Open commit View diff
1155 if ($line[0] == '&' && preg_match('/^(&['.$symbolsForReference.']+)/', $line, $matches)) return $matches[1];
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
1156
    if ($line[0] == '*' && preg_match('/^(\*['.$symbolsForReference.']+)/', $line, $matches)) return $matches[1];
Open commit View diff
1156 if ($line[0] == '*' && preg_match('/^(\*['.$symbolsForReference.']+)/', $line, $matches)) return $matches[1];
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
1157
    if (preg_match('/(&['.$symbolsForReference.']+)$/', $line, $matches)) return $matches[1];
Open commit View diff
1157 if (preg_match('/(&['.$symbolsForReference.']+)$/', $line, $matches)) return $matches[1];
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
1158
    if (preg_match('/(\*['.$symbolsForReference.']+$)/', $line, $matches)) return $matches[1];
Open commit View diff
1158 if (preg_match('/(\*['.$symbolsForReference.']+$)/', $line, $matches)) return $matches[1];
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
1159
    if (preg_match ('#^\s*<<\s*:\s*(\*[^\s]+).*$#', $line, $matches)) return $matches[1];
Open commit View diff
1159 if (preg_match ('#^\s*<<\s*:\s*(\*[^\s]+).*$#', $line, $matches)) return $matches[1];
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
1160
    return false;
Open commit View diff
1160 return false;
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
1161
Open commit View diff
1161
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
1162
  }
Open commit View diff
1162 }
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
1163
Open commit View diff
1163
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
1164
  private function addGroup ($line, $group) {
Open commit View diff
1164 private function addGroup ($line, $group) {
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
1165
    if ($group[0] == '&') $this->_containsGroupAnchor = substr ($group, 1);
Open commit View diff
1165 if ($group[0] == '&') $this->_containsGroupAnchor = substr ($group, 1);
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
1166
    if ($group[0] == '*') $this->_containsGroupAlias = substr ($group, 1);
Open commit View diff
1166 if ($group[0] == '*') $this->_containsGroupAlias = substr ($group, 1);
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
1167
    //print_r ($this->path);
Open commit View diff
1167 //print_r ($this->path);
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
1168
  }
Open commit View diff
1168 }
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
1169
Open commit View diff
1169
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
1170
  private function stripGroup ($line, $group) {
Open commit View diff
1170 private function stripGroup ($line, $group) {
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
1171
    $line = trim(str_replace($group, '', $line));
Open commit View diff
1171 $line = trim(str_replace($group, '', $line));
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
1172
    return $line;
Open commit View diff
1172 return $line;
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
1173
  }
Open commit View diff
1173 }
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
1174
}
Open commit View diff
1174 }
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
1175
}
Open commit View diff
1175 }
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
1176
Open commit View diff
1176
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
1177
// Enable use of Spyc from command line
Open commit View diff
1177 // Enable use of Spyc from command line
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
1178
// The syntax is the following: php Spyc.php spyc.yaml
Open commit View diff
1178 // The syntax is the following: php Spyc.php spyc.yaml
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
1179
Open commit View diff
1179
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
1180
do {
Open commit View diff
1180 do {
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
1181
  if (PHP_SAPI != 'cli') break;
Open commit View diff
1181 if (PHP_SAPI != 'cli') break;
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
1182
  if (empty ($_SERVER['argc']) || $_SERVER['argc'] < 2) break;
Open commit View diff
1182 if (empty ($_SERVER['argc']) || $_SERVER['argc'] < 2) break;
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
1183
  if (empty ($_SERVER['PHP_SELF']) || FALSE === strpos ($_SERVER['PHP_SELF'], 'Spyc.php') ) break;
Open commit View diff
1183 if (empty ($_SERVER['PHP_SELF']) || FALSE === strpos ($_SERVER['PHP_SELF'], 'Spyc.php') ) break;
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
1184
  $file = $argv[1];
Open commit View diff
1184 $file = $argv[1];
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
1185
  echo json_encode (spyc_load_file ($file));
Open commit View diff
1185 echo json_encode (spyc_load_file ($file));
same change f41c2a6

add mustangostang/spyc to composer

Full commit hash
f41c2a688aa0c1f9e13bd64c8c24213a1c1113d9
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
1186
} while (0);
Open commit View diff
1186 } while (0);