-
Notifications
You must be signed in to change notification settings - Fork 2
/
demo.html
80 lines (80 loc) · 102 KB
/
demo.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8"><title>Dayle Rees Colour Scheme Previews</title>
<style>
* {margin: 0; padding: 0;}
table{ border-collapse: collapse;}
pre {font-family:Monaco, monospace; padding:2em; font-size: 12px; padding: 0; margin: 0;}
.code .name { padding: 5px 10px;font-size: 19px; text-align: center;font-family:"Lucida Sans Unicode", "Lucida Grande", sans-serif}
table td:first-child { text-align: center}
table td:last-child { padding-left: 10px;}
.keyword {font-weight: 600;}
.default table td:first-child { background: #efefef; padding: 0 17px;}
.bittr table td:first-child { background: #272b34;}
.dark table td:first-child { background: #151515;}
.owerri table td:first-child { background: #403c37;}
.light table td:first-child { background: #eeeeee;}
.steady table td:first-child { background: #45403B;}
.git table td:first-child { background: #eeeeee;}
.imo table td:first-child { background: #eeeeee;}
.yola table td:first-child { background: #0c1018};
</style>
</head>
<body>
<div class="code default">
<div class="name" style="background-color:#efefef; color: #666;">default</div>
<div class="sample" style="color: #000;">
<pre><table style=""><tr><td>1</td><td><span style="color:#8C4D03" class="constant"><span style="color:#F00000" class="tag long"><?php</span></span></td></tr><tr><td>2</td><td></td></tr><tr><td>3</td><td><span style="color:#008000;" class="keyword">namespace</span> Text;</td></tr><tr><td>4</td><td><span style="color:#008000;" class="keyword">use</span> PhpPrettify <span style="color:#008000;" class="keyword">as</span> Php;</td></tr><tr><td>5</td><td></td></tr><tr><td>6</td><td><span style="color:#000000" class="number"><span style="color:#008000;" class="keyword">class </span>Text</span> <span style="color:#000000" class="number"><span style="color:#008000;" class="keyword">extends</span> Namespace\TextProcess</span> <span style="color:#000000" class="number"><span style="color:#008000;" class="keyword">implements</span> Php</span></td></tr><tr><td>7</td><td><span style="color:#7F5217" class="curly_braces">{</span></td></tr><tr><td>8</td><td> <font style="color:#FEA500" class="strip multi_line_comment">/**</td></tr><tr><td>9</td><td><font style="color:#FEA500" class="strip multi_line_comment"> * An array of the types that have been resolved<span style="color:#0000FF" class="operators">.</span></font></td></tr><tr><td>10</td><td><font style="color:#FEA500" class="strip multi_line_comment"> *</font></td></tr><tr><td>11</td><td><font style="color:#FEA500" class="strip multi_line_comment"> * <span style="color:#0000FF" class="operators">@</span><span style="color:#008000;" class="keyword">var</span> array</font></td></tr><tr><td>12</td><td><font style="color:#FEA500" class="strip multi_line_comment"> */</font></font></td></tr><tr><td>13</td><td> <span style="color:#008000;" class="keyword">protected</span> <span style="color:#2071ED" class="variable">$resolved</span> <span style="color:#0000FF" class="operators">=</span> <span style="color:#008000;" class="keyword">array</span><span style="color:#038C8C" class="parenthesis">(</span><span style="color:#038C8C" class="parenthesis">)</span><span style="color:#000000" class="semi_colon">;</span></td></tr><tr><td>14</td><td></td></tr><tr><td>15</td><td> <span style="color:#008000;" class="keyword">public</span> <span style="color:#0000FF" class="function">function</span> <span style="color:#A611AA" class="custom_function">isShared</span><span style="color:#038C8C" class="parenthesis">(</span><span style="color:#E3093F" class="parameter_type">string </span><span style="color:#2071ED" class="variable">$abstract</span>, <span style="color:#E3093F" class="parameter_type">int </span><span style="color:#0000FF" class="operators">&</span><span style="color:#2071ED" class="variable">$counter</span><span style="color:#0000FF" class="operators"><span style="color:#038C8C" class="parenthesis">)</span>:</span><span style="color:#E3093F" class="return_type"> bool</span></td></tr><tr><td>16</td><td> <span style="color:#7F5217" class="curly_braces">{</span></td></tr><tr><td>17</td><td> <span style="color:#1D6F0C" class="self">self</span><span style="color:#0000FF" class="operators">::</span><span style="color:#A611AA" class="custom_function">init</span><span style="color:#038C8C" class="parenthesis">(</span><span style="color:#6367A7" class="php_function">mt_rand</span><span style="color:#038C8C" class="parenthesis">(</span><span style="color:#A4AC21" class="number">1</span>, <span style="color:#A4AC21" class="number">55</span><span style="color:#038C8C" class="parenthesis">)</span>, <span style="color:#1D6F0C" class="parent">parent</span><span style="color:#0000FF" class="operators">::</span><span style="color:#A611AA" class="custom_function">__construct</span><span style="color:#038C8C" class="parenthesis">(</span><span style="color:#038C8C" class="parenthesis">)</span>, <span style="color:#8C4D03" class="constant">ROOT_DIR</span><span style="color:#038C8C" class="parenthesis">)</span><span style="color:#000000" class="semi_colon">;</span></td></tr><tr><td>18</td><td> <span style="color:#008000;" class="keyword">if</span> <span style="color:#038C8C" class="parenthesis">(</span><span style="color:#008000;" class="keyword">isset</span><span style="color:#038C8C" class="parenthesis">(</span><span style="color:#2071ED" class="variable">$this</span><span style="color:#0000FF" class="operators">-</span><span style="color:#0000FF" class="operators">></span>bindings<span style="color:#F46164" class="square_bracket">[</span><span style="color:#2071ED" class="variable">$abstract</span><span style="color:#F46164" class="square_bracket">]</span><span style="color:#F46164" class="square_bracket">[</span><font style="color:#FF0000" class="strip quote">'shared'</font><span style="color:#F46164" class="square_bracket">]</span><span style="color:#038C8C" class="parenthesis">)</span> <span style="color:#0000FF" class="operators">&</span><span style="color:#0000FF" class="operators">&</span> <span style="color:#038C8C" class="parenthesis">(</span><span style="color:#2071ED" class="variable">$counter</span> <span style="color:#0000FF" class="operators">!</span><span style="color:#0000FF" class="operators">=</span> <span style="color:#A4AC21" class="number">0</span><span style="color:#038C8C" class="parenthesis">)</span><span style="color:#038C8C" class="parenthesis">)</span></td></tr><tr><td>19</td><td> <span style="color:#7F5217" class="curly_braces">{</span></td></tr><tr><td>20</td><td> <span style="color:#FEA500" class="strip comment">#cast to bool</span></td></tr><tr><td>21</td><td> <span style="color:#038C8C" class="cast"><span style="color:#038C8C" class="parenthesis">(</span>bool<span style="color:#038C8C" class="parenthesis">)</span></span> <span style="color:#2071ED" class="variable">$shared</span> <span style="color:#0000FF" class="operators">=</span> <span style="color:#2071ED" class="variable">$this</span><span style="color:#0000FF" class="operators">-</span><span style="color:#0000FF" class="operators">></span>bindings<span style="color:#F46164" class="square_bracket">[</span><span style="color:#2071ED" class="variable">$abstract</span><span style="color:#F46164" class="square_bracket">]</span><span style="color:#F46164" class="square_bracket">[</span><font style="color:#FF0000" class="strip quote">'shared'</font><span style="color:#F46164" class="square_bracket">]</span><span style="color:#000000" class="semi_colon">;</span></td></tr><tr><td>22</td><td> <span style="color:#7F5217" class="curly_braces">}</span></td></tr><tr><td>23</td><td> <span style="color:#008000;" class="keyword">else</span></td></tr><tr><td>24</td><td> <span style="color:#7F5217" class="curly_braces">{</span></td></tr><tr><td>25</td><td> <span style="color:#2071ED" class="variable">$counter</span><span style="color:#0000FF" class="operators">-</span><span style="color:#0000FF" class="operators">-</span><span style="color:#000000" class="semi_colon">;</span></td></tr><tr><td>26</td><td> <span style="color:#2071ED" class="variable">$shared</span> <span style="color:#0000FF" class="operators">=</span> <span style="color:#D8C300" class="bool">false</span><span style="color:#000000" class="semi_colon">;</span></td></tr><tr><td>27</td><td> <span style="color:#7F5217" class="curly_braces">}</span></td></tr><tr><td>28</td><td></td></tr><tr><td>29</td><td> <span style="color:#FEA500" class="strip comment">#smart <span style="color:#0000FF" class="function">function</span> type dictation</span></td></tr><tr><td>30</td><td> <span style="color:#1D6F0C" class="self">self</span><span style="color:#0000FF" class="operators">::</span><span style="color:#A611AA" class="custom_function">hash</span><span style="color:#038C8C" class="parenthesis">(</span><span style="color:#6367A7" class="php_function">hash</span><span style="color:#038C8C" class="parenthesis">(</span><font style="color:#FF0000" class="strip quote">'sha1'</font>, <font style="color:#FF0000" class="strip quote">'foobar'</font><span style="color:#038C8C" class="parenthesis">)</span>, <span style="color:#2071ED" class="variable">$this</span><span style="color:#0000FF" class="operators">-</span><span style="color:#0000FF" class="operators">></span><span style="color:#A611AA" class="custom_function">hash</span><span style="color:#038C8C" class="parenthesis">(</span><span style="color:#038C8C" class="parenthesis">)</span><span style="color:#038C8C" class="parenthesis">)</span><span style="color:#000000" class="semi_colon">;</span></td></tr><tr><td>31</td><td> <span style="color:#008000;" class="keyword">return</span> <span style="color:#038C8C" class="parenthesis">(</span><span style="color:#008000;" class="keyword">isset</span><span style="color:#038C8C" class="parenthesis">(</span><span style="color:#2071ED" class="variable">$this</span><span style="color:#0000FF" class="operators">-</span><span style="color:#0000FF" class="operators">></span>instances<span style="color:#F46164" class="square_bracket">[</span><span style="color:#2071ED" class="variable">$abstract</span><span style="color:#F46164" class="square_bracket">]</span><span style="color:#038C8C" class="parenthesis">)</span> <span style="color:#0000FF" class="operators">|</span><span style="color:#0000FF" class="operators">|</span> <span style="color:#2071ED" class="variable">$shared</span> <span style="color:#0000FF" class="operators">=</span><span style="color:#0000FF" class="operators">=</span><span style="color:#0000FF" class="operators">=</span> <span style="color:#D8C300" class="bool">true</span><span style="color:#038C8C" class="parenthesis">)</span><span style="color:#000000" class="semi_colon">;</span></td></tr><tr><td>32</td><td> <span style="color:#7F5217" class="curly_braces">}</span></td></tr><tr><td>33</td><td><span style="color:#7F5217" class="curly_braces">}</span></td></tr><tr class="last-map"><td></td><td></td></tr></table><style>.strip font,.strip span{color:inherit !important;all:initial !important;all:unset !important}</style></pre>
</div>
</div>
<div class="code bittr">
<div class="name" style="background-color:#272b34; color: #dee3ec;">bittr</div>
<div class="sample" style="color: #fff;">
<pre><table style="background:#2b303b;width:100%;"><tr><td>1</td><td><span style="color:#8C4D03;" class="constant"><span style="color:#F00000;" class="tag long"><?php</span></span></td></tr><tr><td>2</td><td></td></tr><tr><td>3</td><td><span style="color:#26A6A6;" class="keyword">namespace</span> Text;</td></tr><tr><td>4</td><td><span style="color:#26A6A6;" class="keyword">use</span> PhpPrettify <span style="color:#26A6A6;" class="keyword">as</span> Php;</td></tr><tr><td>5</td><td></td></tr><tr><td>6</td><td><span style="color:#dee3ec;" class="number"><span style="color:#26A6A6;" class="keyword">class </span>Text</span> <span style="color:#dee3ec;" class="number"><span style="color:#26A6A6;" class="keyword">extends</span> Namespace\TextProcess</span> <span style="color:#dee3ec;" class="number"><span style="color:#26A6A6;" class="keyword">implements</span> Php</span></td></tr><tr><td>7</td><td><span style="color:#dee3ec;" class="curly_braces">{</span></td></tr><tr><td>8</td><td> <font style="color:#6e7a94;font-style:italic;" class="strip multi_line_comment">/**</td></tr><tr><td>9</td><td><font style="color:#6e7a94;font-style:italic;" class="strip multi_line_comment"> * An array of the types that have been resolved<span style="color:#26A6A6;" class="operators">.</span></font></td></tr><tr><td>10</td><td><font style="color:#6e7a94;font-style:italic;" class="strip multi_line_comment"> *</font></td></tr><tr><td>11</td><td><font style="color:#6e7a94;font-style:italic;" class="strip multi_line_comment"> * <span style="color:#26A6A6;" class="operators">@</span><span style="color:#26A6A6;" class="keyword">var</span> array</font></td></tr><tr><td>12</td><td><font style="color:#6e7a94;font-style:italic;" class="strip multi_line_comment"> */</font></font></td></tr><tr><td>13</td><td> <span style="color:#26A6A6;" class="keyword">protected</span> <span style="color:#aec2e0;" class="variable">$resolved</span> <span style="color:#26A6A6;" class="operators">=</span> <span style="color:#26A6A6;" class="keyword">array</span><span style="color:#FFFFFF;" class="parenthesis">(</span><span style="color:#FFFFFF;" class="parenthesis">)</span><span style="color:#dee3ec;" class="semi_colon">;</span></td></tr><tr><td>14</td><td></td></tr><tr><td>15</td><td> <span style="color:#26A6A6;" class="keyword">public</span> <span style="color:#FFFFFF;" class="function">function</span> <span style="color:#DAEFA2;" class="custom_function">isShared</span><span style="color:#FFFFFF;" class="parenthesis">(</span><span style="color:#E3093F;" class="parameter_type">string </span><span style="color:#aec2e0;" class="variable">$abstract</span>, <span style="color:#E3093F;" class="parameter_type">int </span><span style="color:#26A6A6;" class="operators">&</span><span style="color:#aec2e0;" class="variable">$counter</span><span style="color:#26A6A6;" class="operators"><span style="color:#FFFFFF;" class="parenthesis">)</span>:</span><span style="color:#FE648A;" class="return_type"> bool</span></td></tr><tr><td>16</td><td> <span style="color:#dee3ec;" class="curly_braces">{</span></td></tr><tr><td>17</td><td> <span style="color:#FF5D38;" class="self">self</span><span style="color:#26A6A6;" class="operators">::</span><span style="color:#DAEFA2;" class="custom_function">init</span><span style="color:#FFFFFF;" class="parenthesis">(</span><span style="color:#6367A7;" class="php_function">mt_rand</span><span style="color:#FFFFFF;" class="parenthesis">(</span><span style="color:#A4AC21;" class="number">1</span>, <span style="color:#A4AC21;" class="number">55</span><span style="color:#FFFFFF;" class="parenthesis">)</span>, <span style="color:#FF5D38;" class="parent">parent</span><span style="color:#26A6A6;" class="operators">::</span><span style="color:#DAEFA2;" class="custom_function">__construct</span><span style="color:#FFFFFF;" class="parenthesis">(</span><span style="color:#FFFFFF;" class="parenthesis">)</span>, <span style="color:#8C4D03;" class="constant">ROOT_DIR</span><span style="color:#FFFFFF;" class="parenthesis">)</span><span style="color:#dee3ec;" class="semi_colon">;</span></td></tr><tr><td>18</td><td> <span style="color:#26A6A6;" class="keyword">if</span> <span style="color:#FFFFFF;" class="parenthesis">(</span><span style="color:#26A6A6;" class="keyword">isset</span><span style="color:#FFFFFF;" class="parenthesis">(</span><span style="color:#aec2e0;" class="variable">$this</span><span style="color:#26A6A6;" class="operators">-</span><span style="color:#26A6A6;" class="operators">></span>bindings<span style="color:#F46164;" class="square_bracket">[</span><span style="color:#aec2e0;" class="variable">$abstract</span><span style="color:#F46164;" class="square_bracket">]</span><span style="color:#F46164;" class="square_bracket">[</span><font style="color:#BCD42A;" class="strip quote">'shared'</font><span style="color:#F46164;" class="square_bracket">]</span><span style="color:#FFFFFF;" class="parenthesis">)</span> <span style="color:#26A6A6;" class="operators">&</span><span style="color:#26A6A6;" class="operators">&</span> <span style="color:#FFFFFF;" class="parenthesis">(</span><span style="color:#aec2e0;" class="variable">$counter</span> <span style="color:#26A6A6;" class="operators">!</span><span style="color:#26A6A6;" class="operators">=</span> <span style="color:#A4AC21;" class="number">0</span><span style="color:#FFFFFF;" class="parenthesis">)</span><span style="color:#FFFFFF;" class="parenthesis">)</span></td></tr><tr><td>19</td><td> <span style="color:#dee3ec;" class="curly_braces">{</span></td></tr><tr><td>20</td><td> <span style="color:#6e7a94;font-style:italic;" class="strip comment">#cast to bool</span></td></tr><tr><td>21</td><td> <span style="color:#038C8C;" class="cast"><span style="color:#FFFFFF;" class="parenthesis">(</span>bool<span style="color:#FFFFFF;" class="parenthesis">)</span></span> <span style="color:#aec2e0;" class="variable">$shared</span> <span style="color:#26A6A6;" class="operators">=</span> <span style="color:#aec2e0;" class="variable">$this</span><span style="color:#26A6A6;" class="operators">-</span><span style="color:#26A6A6;" class="operators">></span>bindings<span style="color:#F46164;" class="square_bracket">[</span><span style="color:#aec2e0;" class="variable">$abstract</span><span style="color:#F46164;" class="square_bracket">]</span><span style="color:#F46164;" class="square_bracket">[</span><font style="color:#BCD42A;" class="strip quote">'shared'</font><span style="color:#F46164;" class="square_bracket">]</span><span style="color:#dee3ec;" class="semi_colon">;</span></td></tr><tr><td>22</td><td> <span style="color:#dee3ec;" class="curly_braces">}</span></td></tr><tr><td>23</td><td> <span style="color:#26A6A6;" class="keyword">else</span></td></tr><tr><td>24</td><td> <span style="color:#dee3ec;" class="curly_braces">{</span></td></tr><tr><td>25</td><td> <span style="color:#aec2e0;" class="variable">$counter</span><span style="color:#26A6A6;" class="operators">-</span><span style="color:#26A6A6;" class="operators">-</span><span style="color:#dee3ec;" class="semi_colon">;</span></td></tr><tr><td>26</td><td> <span style="color:#aec2e0;" class="variable">$shared</span> <span style="color:#26A6A6;" class="operators">=</span> <span style="color:#FF5D38;" class="bool">false</span><span style="color:#dee3ec;" class="semi_colon">;</span></td></tr><tr><td>27</td><td> <span style="color:#dee3ec;" class="curly_braces">}</span></td></tr><tr><td>28</td><td></td></tr><tr><td>29</td><td> <span style="color:#6e7a94;font-style:italic;" class="strip comment">#smart <span style="color:#FFFFFF;" class="function">function</span> type dictation</span></td></tr><tr><td>30</td><td> <span style="color:#FF5D38;" class="self">self</span><span style="color:#26A6A6;" class="operators">::</span><span style="color:#DAEFA2;" class="custom_function">hash</span><span style="color:#FFFFFF;" class="parenthesis">(</span><span style="color:#6367A7;" class="php_function">hash</span><span style="color:#FFFFFF;" class="parenthesis">(</span><font style="color:#BCD42A;" class="strip quote">'sha1'</font>, <font style="color:#BCD42A;" class="strip quote">'foobar'</font><span style="color:#FFFFFF;" class="parenthesis">)</span>, <span style="color:#aec2e0;" class="variable">$this</span><span style="color:#26A6A6;" class="operators">-</span><span style="color:#26A6A6;" class="operators">></span><span style="color:#DAEFA2;" class="custom_function">hash</span><span style="color:#FFFFFF;" class="parenthesis">(</span><span style="color:#FFFFFF;" class="parenthesis">)</span><span style="color:#FFFFFF;" class="parenthesis">)</span><span style="color:#dee3ec;" class="semi_colon">;</span></td></tr><tr><td>31</td><td> <span style="color:#26A6A6;" class="keyword">return</span> <span style="color:#FFFFFF;" class="parenthesis">(</span><span style="color:#26A6A6;" class="keyword">isset</span><span style="color:#FFFFFF;" class="parenthesis">(</span><span style="color:#aec2e0;" class="variable">$this</span><span style="color:#26A6A6;" class="operators">-</span><span style="color:#26A6A6;" class="operators">></span>instances<span style="color:#F46164;" class="square_bracket">[</span><span style="color:#aec2e0;" class="variable">$abstract</span><span style="color:#F46164;" class="square_bracket">]</span><span style="color:#FFFFFF;" class="parenthesis">)</span> <span style="color:#26A6A6;" class="operators">|</span><span style="color:#26A6A6;" class="operators">|</span> <span style="color:#aec2e0;" class="variable">$shared</span> <span style="color:#26A6A6;" class="operators">=</span><span style="color:#26A6A6;" class="operators">=</span><span style="color:#26A6A6;" class="operators">=</span> <span style="color:#FF5D38;" class="bool">true</span><span style="color:#FFFFFF;" class="parenthesis">)</span><span style="color:#dee3ec;" class="semi_colon">;</span></td></tr><tr><td>32</td><td> <span style="color:#dee3ec;" class="curly_braces">}</span></td></tr><tr><td>33</td><td><span style="color:#dee3ec;" class="curly_braces">}</span></td></tr><tr class="last-map"><td></td><td></td></tr></table><style>.strip font,.strip span{color:inherit !important;all:initial !important;all:unset !important}</style></pre>
</div>
</div>
<div class="code dark">
<div class="name" style="background-color:#151515; color: #dee3ec;">dark</div>
<div class="sample" style="color: #FFF;">
<pre><table style="background:#000000;width:100%;"><tr><td>1</td><td><span style="color:#8C4D03;" class="constant"><span style="color:#F00000;" class="tag long"><?php</span></span></td></tr><tr><td>2</td><td></td></tr><tr><td>3</td><td><span style="color:#1CC3E8;" class="keyword">namespace</span> Text;</td></tr><tr><td>4</td><td><span style="color:#1CC3E8;" class="keyword">use</span> PhpPrettify <span style="color:#1CC3E8;" class="keyword">as</span> Php;</td></tr><tr><td>5</td><td></td></tr><tr><td>6</td><td><span style="color:#dee3ec;" class="number"><span style="color:#1CC3E8;" class="keyword">class </span>Text</span> <span style="color:#dee3ec;" class="number"><span style="color:#1CC3E8;" class="keyword">extends</span> Namespace\TextProcess</span> <span style="color:#dee3ec;" class="number"><span style="color:#1CC3E8;" class="keyword">implements</span> Php</span></td></tr><tr><td>7</td><td><span style="color:#dee3ec;" class="curly_braces">{</span></td></tr><tr><td>8</td><td> <font style="color:#494B4D;font-style:italic;" class="strip multi_line_comment">/**</td></tr><tr><td>9</td><td><font style="color:#494B4D;font-style:italic;" class="strip multi_line_comment"> * An array of the types that have been resolved<span style="color:#F08D24;" class="operators">.</span></font></td></tr><tr><td>10</td><td><font style="color:#494B4D;font-style:italic;" class="strip multi_line_comment"> *</font></td></tr><tr><td>11</td><td><font style="color:#494B4D;font-style:italic;" class="strip multi_line_comment"> * <span style="color:#F08D24;" class="operators">@</span><span style="color:#1CC3E8;" class="keyword">var</span> array</font></td></tr><tr><td>12</td><td><font style="color:#494B4D;font-style:italic;" class="strip multi_line_comment"> */</font></font></td></tr><tr><td>13</td><td> <span style="color:#1CC3E8;" class="keyword">protected</span> <span style="color:#aec2e0;" class="variable">$resolved</span> <span style="color:#F08D24;" class="operators">=</span> <span style="color:#1CC3E8;" class="keyword">array</span><span style="color:#FFFFFF;" class="parenthesis">(</span><span style="color:#FFFFFF;" class="parenthesis">)</span><span style="color:#dee3ec;" class="semi_colon">;</span></td></tr><tr><td>14</td><td></td></tr><tr><td>15</td><td> <span style="color:#1CC3E8;" class="keyword">public</span> <span style="color:#FFFFFF;" class="function">function</span> <span style="color:#DAEFA2;" class="custom_function">isShared</span><span style="color:#FFFFFF;" class="parenthesis">(</span><span style="color:#E3093F;" class="parameter_type">string </span><span style="color:#aec2e0;" class="variable">$abstract</span>, <span style="color:#E3093F;" class="parameter_type">int </span><span style="color:#F08D24;" class="operators">&</span><span style="color:#aec2e0;" class="variable">$counter</span><span style="color:#F08D24;" class="operators"><span style="color:#FFFFFF;" class="parenthesis">)</span>:</span><span style="color:#FE648A;" class="return_type"> bool</span></td></tr><tr><td>16</td><td> <span style="color:#dee3ec;" class="curly_braces">{</span></td></tr><tr><td>17</td><td> <span style="color:#68C244;" class="self">self</span><span style="color:#F08D24;" class="operators">::</span><span style="color:#DAEFA2;" class="custom_function">init</span><span style="color:#FFFFFF;" class="parenthesis">(</span><span style="color:#6367A7;" class="php_function">mt_rand</span><span style="color:#FFFFFF;" class="parenthesis">(</span><span style="color:#A4AC21;" class="number">1</span>, <span style="color:#A4AC21;" class="number">55</span><span style="color:#FFFFFF;" class="parenthesis">)</span>, <span style="color:#FF5D38;" class="parent">parent</span><span style="color:#F08D24;" class="operators">::</span><span style="color:#DAEFA2;" class="custom_function">__construct</span><span style="color:#FFFFFF;" class="parenthesis">(</span><span style="color:#FFFFFF;" class="parenthesis">)</span>, <span style="color:#8C4D03;" class="constant">ROOT_DIR</span><span style="color:#FFFFFF;" class="parenthesis">)</span><span style="color:#dee3ec;" class="semi_colon">;</span></td></tr><tr><td>18</td><td> <span style="color:#1CC3E8;" class="keyword">if</span> <span style="color:#FFFFFF;" class="parenthesis">(</span><span style="color:#1CC3E8;" class="keyword">isset</span><span style="color:#FFFFFF;" class="parenthesis">(</span><span style="color:#aec2e0;" class="variable">$this</span><span style="color:#F08D24;" class="operators">-</span><span style="color:#F08D24;" class="operators">></span>bindings<span style="color:#F46164;" class="square_bracket">[</span><span style="color:#aec2e0;" class="variable">$abstract</span><span style="color:#F46164;" class="square_bracket">]</span><span style="color:#F46164;" class="square_bracket">[</span><font style="color:#BCD42A;" class="strip quote">'shared'</font><span style="color:#F46164;" class="square_bracket">]</span><span style="color:#FFFFFF;" class="parenthesis">)</span> <span style="color:#F08D24;" class="operators">&</span><span style="color:#F08D24;" class="operators">&</span> <span style="color:#FFFFFF;" class="parenthesis">(</span><span style="color:#aec2e0;" class="variable">$counter</span> <span style="color:#F08D24;" class="operators">!</span><span style="color:#F08D24;" class="operators">=</span> <span style="color:#A4AC21;" class="number">0</span><span style="color:#FFFFFF;" class="parenthesis">)</span><span style="color:#FFFFFF;" class="parenthesis">)</span></td></tr><tr><td>19</td><td> <span style="color:#dee3ec;" class="curly_braces">{</span></td></tr><tr><td>20</td><td> <span style="color:#494B4D;font-style:italic;" class="strip comment">#cast to bool</span></td></tr><tr><td>21</td><td> <span style="color:#038C8C;" class="cast"><span style="color:#FFFFFF;" class="parenthesis">(</span>bool<span style="color:#FFFFFF;" class="parenthesis">)</span></span> <span style="color:#aec2e0;" class="variable">$shared</span> <span style="color:#F08D24;" class="operators">=</span> <span style="color:#aec2e0;" class="variable">$this</span><span style="color:#F08D24;" class="operators">-</span><span style="color:#F08D24;" class="operators">></span>bindings<span style="color:#F46164;" class="square_bracket">[</span><span style="color:#aec2e0;" class="variable">$abstract</span><span style="color:#F46164;" class="square_bracket">]</span><span style="color:#F46164;" class="square_bracket">[</span><font style="color:#BCD42A;" class="strip quote">'shared'</font><span style="color:#F46164;" class="square_bracket">]</span><span style="color:#dee3ec;" class="semi_colon">;</span></td></tr><tr><td>22</td><td> <span style="color:#dee3ec;" class="curly_braces">}</span></td></tr><tr><td>23</td><td> <span style="color:#1CC3E8;" class="keyword">else</span></td></tr><tr><td>24</td><td> <span style="color:#dee3ec;" class="curly_braces">{</span></td></tr><tr><td>25</td><td> <span style="color:#aec2e0;" class="variable">$counter</span><span style="color:#F08D24;" class="operators">-</span><span style="color:#F08D24;" class="operators">-</span><span style="color:#dee3ec;" class="semi_colon">;</span></td></tr><tr><td>26</td><td> <span style="color:#aec2e0;" class="variable">$shared</span> <span style="color:#F08D24;" class="operators">=</span> <span style="color:#68C244;" class="bool">false</span><span style="color:#dee3ec;" class="semi_colon">;</span></td></tr><tr><td>27</td><td> <span style="color:#dee3ec;" class="curly_braces">}</span></td></tr><tr><td>28</td><td></td></tr><tr><td>29</td><td> <span style="color:#494B4D;font-style:italic;" class="strip comment">#smart <span style="color:#FFFFFF;" class="function">function</span> type dictation</span></td></tr><tr><td>30</td><td> <span style="color:#68C244;" class="self">self</span><span style="color:#F08D24;" class="operators">::</span><span style="color:#DAEFA2;" class="custom_function">hash</span><span style="color:#FFFFFF;" class="parenthesis">(</span><span style="color:#6367A7;" class="php_function">hash</span><span style="color:#FFFFFF;" class="parenthesis">(</span><font style="color:#BCD42A;" class="strip quote">'sha1'</font>, <font style="color:#BCD42A;" class="strip quote">'foobar'</font><span style="color:#FFFFFF;" class="parenthesis">)</span>, <span style="color:#aec2e0;" class="variable">$this</span><span style="color:#F08D24;" class="operators">-</span><span style="color:#F08D24;" class="operators">></span><span style="color:#DAEFA2;" class="custom_function">hash</span><span style="color:#FFFFFF;" class="parenthesis">(</span><span style="color:#FFFFFF;" class="parenthesis">)</span><span style="color:#FFFFFF;" class="parenthesis">)</span><span style="color:#dee3ec;" class="semi_colon">;</span></td></tr><tr><td>31</td><td> <span style="color:#1CC3E8;" class="keyword">return</span> <span style="color:#FFFFFF;" class="parenthesis">(</span><span style="color:#1CC3E8;" class="keyword">isset</span><span style="color:#FFFFFF;" class="parenthesis">(</span><span style="color:#aec2e0;" class="variable">$this</span><span style="color:#F08D24;" class="operators">-</span><span style="color:#F08D24;" class="operators">></span>instances<span style="color:#F46164;" class="square_bracket">[</span><span style="color:#aec2e0;" class="variable">$abstract</span><span style="color:#F46164;" class="square_bracket">]</span><span style="color:#FFFFFF;" class="parenthesis">)</span> <span style="color:#F08D24;" class="operators">|</span><span style="color:#F08D24;" class="operators">|</span> <span style="color:#aec2e0;" class="variable">$shared</span> <span style="color:#F08D24;" class="operators">=</span><span style="color:#F08D24;" class="operators">=</span><span style="color:#F08D24;" class="operators">=</span> <span style="color:#68C244;" class="bool">true</span><span style="color:#FFFFFF;" class="parenthesis">)</span><span style="color:#dee3ec;" class="semi_colon">;</span></td></tr><tr><td>32</td><td> <span style="color:#dee3ec;" class="curly_braces">}</span></td></tr><tr><td>33</td><td><span style="color:#dee3ec;" class="curly_braces">}</span></td></tr><tr class="last-map"><td></td><td></td></tr></table><style>.strip font,.strip span{color:inherit !important;all:initial !important;all:unset !important}</style></pre>
</div>
</div>
<div class="code owerri">
<div class="name" style="background-color:#403c37; color: #dee3ec;">owerri</div>
<div class="sample" style="color: #FFF;">
<pre><table style="background:#2E2B2C;width:100%;"><tr><td>1</td><td><span style="color:#8C4D03;" class="constant"><span style="color:#F00000;" class="tag long"><?php</span></span></td></tr><tr><td>2</td><td></td></tr><tr><td>3</td><td><span style="color:#C491C4;" class="keyword">namespace</span> Text;</td></tr><tr><td>4</td><td><span style="color:#C491C4;" class="keyword">use</span> PhpPrettify <span style="color:#C491C4;" class="keyword">as</span> Php;</td></tr><tr><td>5</td><td></td></tr><tr><td>6</td><td><span style="color:#dee3ec;" class="number"><span style="color:#C491C4;" class="keyword">class </span>Text</span> <span style="color:#dee3ec;" class="number"><span style="color:#C491C4;" class="keyword">extends</span> Namespace\TextProcess</span> <span style="color:#dee3ec;" class="number"><span style="color:#C491C4;" class="keyword">implements</span> Php</span></td></tr><tr><td>7</td><td><span style="color:#dee3ec;" class="curly_braces">{</span></td></tr><tr><td>8</td><td> <font style="color:#696363;font-style:italic;" class="strip multi_line_comment">/**</td></tr><tr><td>9</td><td><font style="color:#696363;font-style:italic;" class="strip multi_line_comment"> * An array of the types that have been resolved<span style="color:#ED1153;" class="operators">.</span></font></td></tr><tr><td>10</td><td><font style="color:#696363;font-style:italic;" class="strip multi_line_comment"> *</font></td></tr><tr><td>11</td><td><font style="color:#696363;font-style:italic;" class="strip multi_line_comment"> * <span style="color:#ED1153;" class="operators">@</span><span style="color:#C491C4;" class="keyword">var</span> array</font></td></tr><tr><td>12</td><td><font style="color:#696363;font-style:italic;" class="strip multi_line_comment"> */</font></font></td></tr><tr><td>13</td><td> <span style="color:#C491C4;" class="keyword">protected</span> <span style="color:#dee3ec;" class="variable">$resolved</span> <span style="color:#ED1153;" class="operators">=</span> <span style="color:#C491C4;" class="keyword">array</span><span style="color:#FFFFFF;" class="parenthesis">(</span><span style="color:#FFFFFF;" class="parenthesis">)</span><span style="color:#dee3ec;" class="semi_colon">;</span></td></tr><tr><td>14</td><td></td></tr><tr><td>15</td><td> <span style="color:#C491C4;" class="keyword">public</span> <span style="color:#FFFFFF;" class="function">function</span> <span style="color:#DAEFA2;" class="custom_function">isShared</span><span style="color:#FFFFFF;" class="parenthesis">(</span><span style="color:#E3093F;" class="parameter_type">string </span><span style="color:#dee3ec;" class="variable">$abstract</span>, <span style="color:#E3093F;" class="parameter_type">int </span><span style="color:#ED1153;" class="operators">&</span><span style="color:#dee3ec;" class="variable">$counter</span><span style="color:#ED1153;" class="operators"><span style="color:#FFFFFF;" class="parenthesis">)</span>:</span><span style="color:#FE648A;" class="return_type"> bool</span></td></tr><tr><td>16</td><td> <span style="color:#dee3ec;" class="curly_braces">{</span></td></tr><tr><td>17</td><td> <span style="color:#ED1153;" class="self">self</span><span style="color:#ED1153;" class="operators">::</span><span style="color:#DAEFA2;" class="custom_function">init</span><span style="color:#FFFFFF;" class="parenthesis">(</span><span style="color:#6367A7;" class="php_function">mt_rand</span><span style="color:#FFFFFF;" class="parenthesis">(</span><span style="color:#A4AC21;" class="number">1</span>, <span style="color:#A4AC21;" class="number">55</span><span style="color:#FFFFFF;" class="parenthesis">)</span>, <span style="color:#FF5D38;" class="parent">parent</span><span style="color:#ED1153;" class="operators">::</span><span style="color:#DAEFA2;" class="custom_function">__construct</span><span style="color:#FFFFFF;" class="parenthesis">(</span><span style="color:#FFFFFF;" class="parenthesis">)</span>, <span style="color:#8C4D03;" class="constant">ROOT_DIR</span><span style="color:#FFFFFF;" class="parenthesis">)</span><span style="color:#dee3ec;" class="semi_colon">;</span></td></tr><tr><td>18</td><td> <span style="color:#C491C4;" class="keyword">if</span> <span style="color:#FFFFFF;" class="parenthesis">(</span><span style="color:#C491C4;" class="keyword">isset</span><span style="color:#FFFFFF;" class="parenthesis">(</span><span style="color:#dee3ec;" class="variable">$this</span><span style="color:#ED1153;" class="operators">-</span><span style="color:#ED1153;" class="operators">></span>bindings<span style="color:#F46164;" class="square_bracket">[</span><span style="color:#dee3ec;" class="variable">$abstract</span><span style="color:#F46164;" class="square_bracket">]</span><span style="color:#F46164;" class="square_bracket">[</span><font style="color:#B866FA;" class="strip quote">'shared'</font><span style="color:#F46164;" class="square_bracket">]</span><span style="color:#FFFFFF;" class="parenthesis">)</span> <span style="color:#ED1153;" class="operators">&</span><span style="color:#ED1153;" class="operators">&</span> <span style="color:#FFFFFF;" class="parenthesis">(</span><span style="color:#dee3ec;" class="variable">$counter</span> <span style="color:#ED1153;" class="operators">!</span><span style="color:#ED1153;" class="operators">=</span> <span style="color:#A4AC21;" class="number">0</span><span style="color:#FFFFFF;" class="parenthesis">)</span><span style="color:#FFFFFF;" class="parenthesis">)</span></td></tr><tr><td>19</td><td> <span style="color:#dee3ec;" class="curly_braces">{</span></td></tr><tr><td>20</td><td> <span style="color:#696363;font-style:italic;" class="strip comment">#cast to bool</span></td></tr><tr><td>21</td><td> <span style="color:#038C8C;" class="cast"><span style="color:#FFFFFF;" class="parenthesis">(</span>bool<span style="color:#FFFFFF;" class="parenthesis">)</span></span> <span style="color:#dee3ec;" class="variable">$shared</span> <span style="color:#ED1153;" class="operators">=</span> <span style="color:#dee3ec;" class="variable">$this</span><span style="color:#ED1153;" class="operators">-</span><span style="color:#ED1153;" class="operators">></span>bindings<span style="color:#F46164;" class="square_bracket">[</span><span style="color:#dee3ec;" class="variable">$abstract</span><span style="color:#F46164;" class="square_bracket">]</span><span style="color:#F46164;" class="square_bracket">[</span><font style="color:#B866FA;" class="strip quote">'shared'</font><span style="color:#F46164;" class="square_bracket">]</span><span style="color:#dee3ec;" class="semi_colon">;</span></td></tr><tr><td>22</td><td> <span style="color:#dee3ec;" class="curly_braces">}</span></td></tr><tr><td>23</td><td> <span style="color:#C491C4;" class="keyword">else</span></td></tr><tr><td>24</td><td> <span style="color:#dee3ec;" class="curly_braces">{</span></td></tr><tr><td>25</td><td> <span style="color:#dee3ec;" class="variable">$counter</span><span style="color:#ED1153;" class="operators">-</span><span style="color:#ED1153;" class="operators">-</span><span style="color:#dee3ec;" class="semi_colon">;</span></td></tr><tr><td>26</td><td> <span style="color:#dee3ec;" class="variable">$shared</span> <span style="color:#ED1153;" class="operators">=</span> <span style="color:#ED1153;" class="bool">false</span><span style="color:#dee3ec;" class="semi_colon">;</span></td></tr><tr><td>27</td><td> <span style="color:#dee3ec;" class="curly_braces">}</span></td></tr><tr><td>28</td><td></td></tr><tr><td>29</td><td> <span style="color:#696363;font-style:italic;" class="strip comment">#smart <span style="color:#FFFFFF;" class="function">function</span> type dictation</span></td></tr><tr><td>30</td><td> <span style="color:#ED1153;" class="self">self</span><span style="color:#ED1153;" class="operators">::</span><span style="color:#DAEFA2;" class="custom_function">hash</span><span style="color:#FFFFFF;" class="parenthesis">(</span><span style="color:#6367A7;" class="php_function">hash</span><span style="color:#FFFFFF;" class="parenthesis">(</span><font style="color:#B866FA;" class="strip quote">'sha1'</font>, <font style="color:#B866FA;" class="strip quote">'foobar'</font><span style="color:#FFFFFF;" class="parenthesis">)</span>, <span style="color:#dee3ec;" class="variable">$this</span><span style="color:#ED1153;" class="operators">-</span><span style="color:#ED1153;" class="operators">></span><span style="color:#DAEFA2;" class="custom_function">hash</span><span style="color:#FFFFFF;" class="parenthesis">(</span><span style="color:#FFFFFF;" class="parenthesis">)</span><span style="color:#FFFFFF;" class="parenthesis">)</span><span style="color:#dee3ec;" class="semi_colon">;</span></td></tr><tr><td>31</td><td> <span style="color:#C491C4;" class="keyword">return</span> <span style="color:#FFFFFF;" class="parenthesis">(</span><span style="color:#C491C4;" class="keyword">isset</span><span style="color:#FFFFFF;" class="parenthesis">(</span><span style="color:#dee3ec;" class="variable">$this</span><span style="color:#ED1153;" class="operators">-</span><span style="color:#ED1153;" class="operators">></span>instances<span style="color:#F46164;" class="square_bracket">[</span><span style="color:#dee3ec;" class="variable">$abstract</span><span style="color:#F46164;" class="square_bracket">]</span><span style="color:#FFFFFF;" class="parenthesis">)</span> <span style="color:#ED1153;" class="operators">|</span><span style="color:#ED1153;" class="operators">|</span> <span style="color:#dee3ec;" class="variable">$shared</span> <span style="color:#ED1153;" class="operators">=</span><span style="color:#ED1153;" class="operators">=</span><span style="color:#ED1153;" class="operators">=</span> <span style="color:#ED1153;" class="bool">true</span><span style="color:#FFFFFF;" class="parenthesis">)</span><span style="color:#dee3ec;" class="semi_colon">;</span></td></tr><tr><td>32</td><td> <span style="color:#dee3ec;" class="curly_braces">}</span></td></tr><tr><td>33</td><td><span style="color:#dee3ec;" class="curly_braces">}</span></td></tr><tr class="last-map"><td></td><td></td></tr></table><style>.strip font,.strip span{color:inherit !important;all:initial !important;all:unset !important}</style></pre>
</div>
</div>
<div class="code light">
<div class="name" style="background-color:#eeeeee; color: #333;">light</div>
<div class="sample" style="color: #292929;">
<pre><table style="background:#FFFFFF;width:100%;"><tr><td>1</td><td><span style="color:#8C4D03;" class="constant"><span style="color:#F00000;" class="tag long"><?php</span></span></td></tr><tr><td>2</td><td></td></tr><tr><td>3</td><td><span style="color:#4ea1df;" class="keyword">namespace</span> Text;</td></tr><tr><td>4</td><td><span style="color:#4ea1df;" class="keyword">use</span> PhpPrettify <span style="color:#4ea1df;" class="keyword">as</span> Php;</td></tr><tr><td>5</td><td></td></tr><tr><td>6</td><td><span style="color:#000000;" class="number"><span style="color:#4ea1df;" class="keyword">class </span>Text</span> <span style="color:#000000;" class="number"><span style="color:#4ea1df;" class="keyword">extends</span> Namespace\TextProcess</span> <span style="color:#000000;" class="number"><span style="color:#4ea1df;" class="keyword">implements</span> Php</span></td></tr><tr><td>7</td><td><span style="color:#555555;" class="curly_braces">{</span></td></tr><tr><td>8</td><td> <font style="color:#bbbbbb;font-style:italic;" class="strip multi_line_comment">/**</td></tr><tr><td>9</td><td><font style="color:#bbbbbb;font-style:italic;" class="strip multi_line_comment"> * An array of the types that have been resolved<span style="color:#ED1153;" class="operators">.</span></font></td></tr><tr><td>10</td><td><font style="color:#bbbbbb;font-style:italic;" class="strip multi_line_comment"> *</font></td></tr><tr><td>11</td><td><font style="color:#bbbbbb;font-style:italic;" class="strip multi_line_comment"> * <span style="color:#ED1153;" class="operators">@</span><span style="color:#4ea1df;" class="keyword">var</span> array</font></td></tr><tr><td>12</td><td><font style="color:#bbbbbb;font-style:italic;" class="strip multi_line_comment"> */</font></font></td></tr><tr><td>13</td><td> <span style="color:#4ea1df;" class="keyword">protected</span> <span style="color:#555555;" class="variable">$resolved</span> <span style="color:#ED1153;" class="operators">=</span> <span style="color:#4ea1df;" class="keyword">array</span><span style="color:#555555;" class="parenthesis">(</span><span style="color:#555555;" class="parenthesis">)</span><span style="color:#555555;" class="semi_colon">;</span></td></tr><tr><td>14</td><td></td></tr><tr><td>15</td><td> <span style="color:#4ea1df;" class="keyword">public</span> <span style="color:#555555;" class="function">function</span> <span style="color:#808dd3;" class="custom_function">isShared</span><span style="color:#555555;" class="parenthesis">(</span><span style="color:#E3093F;" class="parameter_type">string </span><span style="color:#555555;" class="variable">$abstract</span>, <span style="color:#E3093F;" class="parameter_type">int </span><span style="color:#ED1153;" class="operators">&</span><span style="color:#555555;" class="variable">$counter</span><span style="color:#ED1153;" class="operators"><span style="color:#555555;" class="parenthesis">)</span>:</span><span style="color:#FE648A;" class="return_type"> bool</span></td></tr><tr><td>16</td><td> <span style="color:#555555;" class="curly_braces">{</span></td></tr><tr><td>17</td><td> <span style="color:#f66153;" class="self">self</span><span style="color:#ED1153;" class="operators">::</span><span style="color:#808dd3;" class="custom_function">init</span><span style="color:#555555;" class="parenthesis">(</span><span style="color:#6367A7;" class="php_function">mt_rand</span><span style="color:#555555;" class="parenthesis">(</span><span style="color:#A4AC21;" class="number">1</span>, <span style="color:#A4AC21;" class="number">55</span><span style="color:#555555;" class="parenthesis">)</span>, <span style="color:#FF5D38;" class="parent">parent</span><span style="color:#ED1153;" class="operators">::</span><span style="color:#808dd3;" class="custom_function">__construct</span><span style="color:#555555;" class="parenthesis">(</span><span style="color:#555555;" class="parenthesis">)</span>, <span style="color:#8C4D03;" class="constant">ROOT_DIR</span><span style="color:#555555;" class="parenthesis">)</span><span style="color:#555555;" class="semi_colon">;</span></td></tr><tr><td>18</td><td> <span style="color:#4ea1df;" class="keyword">if</span> <span style="color:#555555;" class="parenthesis">(</span><span style="color:#4ea1df;" class="keyword">isset</span><span style="color:#555555;" class="parenthesis">(</span><span style="color:#555555;" class="variable">$this</span><span style="color:#ED1153;" class="operators">-</span><span style="color:#ED1153;" class="operators">></span>bindings<span style="color:#F46164;" class="square_bracket">[</span><span style="color:#555555;" class="variable">$abstract</span><span style="color:#F46164;" class="square_bracket">]</span><span style="color:#F46164;" class="square_bracket">[</span><font style="color:#4ea1df;" class="strip quote">'shared'</font><span style="color:#F46164;" class="square_bracket">]</span><span style="color:#555555;" class="parenthesis">)</span> <span style="color:#ED1153;" class="operators">&</span><span style="color:#ED1153;" class="operators">&</span> <span style="color:#555555;" class="parenthesis">(</span><span style="color:#555555;" class="variable">$counter</span> <span style="color:#ED1153;" class="operators">!</span><span style="color:#ED1153;" class="operators">=</span> <span style="color:#A4AC21;" class="number">0</span><span style="color:#555555;" class="parenthesis">)</span><span style="color:#555555;" class="parenthesis">)</span></td></tr><tr><td>19</td><td> <span style="color:#555555;" class="curly_braces">{</span></td></tr><tr><td>20</td><td> <span style="color:#bbbbbb;font-style:italic;" class="strip comment">#cast to bool</span></td></tr><tr><td>21</td><td> <span style="color:#038C8C;" class="cast"><span style="color:#555555;" class="parenthesis">(</span>bool<span style="color:#555555;" class="parenthesis">)</span></span> <span style="color:#555555;" class="variable">$shared</span> <span style="color:#ED1153;" class="operators">=</span> <span style="color:#555555;" class="variable">$this</span><span style="color:#ED1153;" class="operators">-</span><span style="color:#ED1153;" class="operators">></span>bindings<span style="color:#F46164;" class="square_bracket">[</span><span style="color:#555555;" class="variable">$abstract</span><span style="color:#F46164;" class="square_bracket">]</span><span style="color:#F46164;" class="square_bracket">[</span><font style="color:#4ea1df;" class="strip quote">'shared'</font><span style="color:#F46164;" class="square_bracket">]</span><span style="color:#555555;" class="semi_colon">;</span></td></tr><tr><td>22</td><td> <span style="color:#555555;" class="curly_braces">}</span></td></tr><tr><td>23</td><td> <span style="color:#4ea1df;" class="keyword">else</span></td></tr><tr><td>24</td><td> <span style="color:#555555;" class="curly_braces">{</span></td></tr><tr><td>25</td><td> <span style="color:#555555;" class="variable">$counter</span><span style="color:#ED1153;" class="operators">-</span><span style="color:#ED1153;" class="operators">-</span><span style="color:#555555;" class="semi_colon">;</span></td></tr><tr><td>26</td><td> <span style="color:#555555;" class="variable">$shared</span> <span style="color:#ED1153;" class="operators">=</span> <span style="color:#f66153;" class="bool">false</span><span style="color:#555555;" class="semi_colon">;</span></td></tr><tr><td>27</td><td> <span style="color:#555555;" class="curly_braces">}</span></td></tr><tr><td>28</td><td></td></tr><tr><td>29</td><td> <span style="color:#bbbbbb;font-style:italic;" class="strip comment">#smart <span style="color:#555555;" class="function">function</span> type dictation</span></td></tr><tr><td>30</td><td> <span style="color:#f66153;" class="self">self</span><span style="color:#ED1153;" class="operators">::</span><span style="color:#808dd3;" class="custom_function">hash</span><span style="color:#555555;" class="parenthesis">(</span><span style="color:#6367A7;" class="php_function">hash</span><span style="color:#555555;" class="parenthesis">(</span><font style="color:#4ea1df;" class="strip quote">'sha1'</font>, <font style="color:#4ea1df;" class="strip quote">'foobar'</font><span style="color:#555555;" class="parenthesis">)</span>, <span style="color:#555555;" class="variable">$this</span><span style="color:#ED1153;" class="operators">-</span><span style="color:#ED1153;" class="operators">></span><span style="color:#808dd3;" class="custom_function">hash</span><span style="color:#555555;" class="parenthesis">(</span><span style="color:#555555;" class="parenthesis">)</span><span style="color:#555555;" class="parenthesis">)</span><span style="color:#555555;" class="semi_colon">;</span></td></tr><tr><td>31</td><td> <span style="color:#4ea1df;" class="keyword">return</span> <span style="color:#555555;" class="parenthesis">(</span><span style="color:#4ea1df;" class="keyword">isset</span><span style="color:#555555;" class="parenthesis">(</span><span style="color:#555555;" class="variable">$this</span><span style="color:#ED1153;" class="operators">-</span><span style="color:#ED1153;" class="operators">></span>instances<span style="color:#F46164;" class="square_bracket">[</span><span style="color:#555555;" class="variable">$abstract</span><span style="color:#F46164;" class="square_bracket">]</span><span style="color:#555555;" class="parenthesis">)</span> <span style="color:#ED1153;" class="operators">|</span><span style="color:#ED1153;" class="operators">|</span> <span style="color:#555555;" class="variable">$shared</span> <span style="color:#ED1153;" class="operators">=</span><span style="color:#ED1153;" class="operators">=</span><span style="color:#ED1153;" class="operators">=</span> <span style="color:#f66153;" class="bool">true</span><span style="color:#555555;" class="parenthesis">)</span><span style="color:#555555;" class="semi_colon">;</span></td></tr><tr><td>32</td><td> <span style="color:#555555;" class="curly_braces">}</span></td></tr><tr><td>33</td><td><span style="color:#555555;" class="curly_braces">}</span></td></tr><tr class="last-map"><td></td><td></td></tr></table><style>.strip font,.strip span{color:inherit !important;all:initial !important;all:unset !important}</style></pre>
</div>
</div>
<div class="code steady">
<div class="name" style="background-color:#45403B; color: #EBD1B7;">steady</div>
<div class="sample" style="color: #EBD1B7;">
<pre><table style="background:#36312C;width:100%;"><tr><td>1</td><td><span style="color:#8C4D03;" class="constant"><span style="color:#F00000;" class="tag long"><?php</span></span></td></tr><tr><td>2</td><td></td></tr><tr><td>3</td><td><span style="color:#95CC5E;" class="keyword">namespace</span> Text;</td></tr><tr><td>4</td><td><span style="color:#95CC5E;" class="keyword">use</span> PhpPrettify <span style="color:#95CC5E;" class="keyword">as</span> Php;</td></tr><tr><td>5</td><td></td></tr><tr><td>6</td><td><span style="color:#EBD1B7;" class="number"><span style="color:#95CC5E;" class="keyword">class </span>Text</span> <span style="color:#EBD1B7;" class="number"><span style="color:#95CC5E;" class="keyword">extends</span> Namespace\TextProcess</span> <span style="color:#EBD1B7;" class="number"><span style="color:#95CC5E;" class="keyword">implements</span> Php</span></td></tr><tr><td>7</td><td><span style="color:#EBD1B7;" class="curly_braces">{</span></td></tr><tr><td>8</td><td> <font style="color:#bbbbbb;font-style:italic;" class="strip multi_line_comment">/**</td></tr><tr><td>9</td><td><font style="color:#bbbbbb;font-style:italic;" class="strip multi_line_comment"> * An array of the types that have been resolved<span style="color:#ED1153;" class="operators">.</span></font></td></tr><tr><td>10</td><td><font style="color:#bbbbbb;font-style:italic;" class="strip multi_line_comment"> *</font></td></tr><tr><td>11</td><td><font style="color:#bbbbbb;font-style:italic;" class="strip multi_line_comment"> * <span style="color:#ED1153;" class="operators">@</span><span style="color:#95CC5E;" class="keyword">var</span> array</font></td></tr><tr><td>12</td><td><font style="color:#bbbbbb;font-style:italic;" class="strip multi_line_comment"> */</font></font></td></tr><tr><td>13</td><td> <span style="color:#95CC5E;" class="keyword">protected</span> <span style="color:#EBD1B7;" class="variable">$resolved</span> <span style="color:#ED1153;" class="operators">=</span> <span style="color:#95CC5E;" class="keyword">array</span><span style="color:#EBD1B7;" class="parenthesis">(</span><span style="color:#EBD1B7;" class="parenthesis">)</span><span style="color:#555555;" class="semi_colon">;</span></td></tr><tr><td>14</td><td></td></tr><tr><td>15</td><td> <span style="color:#95CC5E;" class="keyword">public</span> <span style="color:#EBD1B7;" class="function">function</span> <span style="color:#60A365;" class="custom_function">isShared</span><span style="color:#EBD1B7;" class="parenthesis">(</span><span style="color:#E3093F;" class="parameter_type">string </span><span style="color:#EBD1B7;" class="variable">$abstract</span>, <span style="color:#E3093F;" class="parameter_type">int </span><span style="color:#ED1153;" class="operators">&</span><span style="color:#EBD1B7;" class="variable">$counter</span><span style="color:#ED1153;" class="operators"><span style="color:#EBD1B7;" class="parenthesis">)</span>:</span><span style="color:#FE648A;" class="return_type"> bool</span></td></tr><tr><td>16</td><td> <span style="color:#EBD1B7;" class="curly_braces">{</span></td></tr><tr><td>17</td><td> <span style="color:#DB784D;" class="self">self</span><span style="color:#ED1153;" class="operators">::</span><span style="color:#60A365;" class="custom_function">init</span><span style="color:#EBD1B7;" class="parenthesis">(</span><span style="color:#6367A7;" class="php_function">mt_rand</span><span style="color:#EBD1B7;" class="parenthesis">(</span><span style="color:#A4AC21;" class="number">1</span>, <span style="color:#A4AC21;" class="number">55</span><span style="color:#EBD1B7;" class="parenthesis">)</span>, <span style="color:#FF5D38;" class="parent">parent</span><span style="color:#ED1153;" class="operators">::</span><span style="color:#60A365;" class="custom_function">__construct</span><span style="color:#EBD1B7;" class="parenthesis">(</span><span style="color:#EBD1B7;" class="parenthesis">)</span>, <span style="color:#8C4D03;" class="constant">ROOT_DIR</span><span style="color:#EBD1B7;" class="parenthesis">)</span><span style="color:#555555;" class="semi_colon">;</span></td></tr><tr><td>18</td><td> <span style="color:#95CC5E;" class="keyword">if</span> <span style="color:#EBD1B7;" class="parenthesis">(</span><span style="color:#95CC5E;" class="keyword">isset</span><span style="color:#EBD1B7;" class="parenthesis">(</span><span style="color:#EBD1B7;" class="variable">$this</span><span style="color:#ED1153;" class="operators">-</span><span style="color:#ED1153;" class="operators">></span>bindings<span style="color:#F46164;" class="square_bracket">[</span><span style="color:#EBD1B7;" class="variable">$abstract</span><span style="color:#F46164;" class="square_bracket">]</span><span style="color:#F46164;" class="square_bracket">[</span><font style="color:#F8BB39;" class="strip quote">'shared'</font><span style="color:#F46164;" class="square_bracket">]</span><span style="color:#EBD1B7;" class="parenthesis">)</span> <span style="color:#ED1153;" class="operators">&</span><span style="color:#ED1153;" class="operators">&</span> <span style="color:#EBD1B7;" class="parenthesis">(</span><span style="color:#EBD1B7;" class="variable">$counter</span> <span style="color:#ED1153;" class="operators">!</span><span style="color:#ED1153;" class="operators">=</span> <span style="color:#A4AC21;" class="number">0</span><span style="color:#EBD1B7;" class="parenthesis">)</span><span style="color:#EBD1B7;" class="parenthesis">)</span></td></tr><tr><td>19</td><td> <span style="color:#EBD1B7;" class="curly_braces">{</span></td></tr><tr><td>20</td><td> <span style="color:#bbbbbb;font-style:italic;" class="strip comment">#cast to bool</span></td></tr><tr><td>21</td><td> <span style="color:#038C8C;" class="cast"><span style="color:#EBD1B7;" class="parenthesis">(</span>bool<span style="color:#EBD1B7;" class="parenthesis">)</span></span> <span style="color:#EBD1B7;" class="variable">$shared</span> <span style="color:#ED1153;" class="operators">=</span> <span style="color:#EBD1B7;" class="variable">$this</span><span style="color:#ED1153;" class="operators">-</span><span style="color:#ED1153;" class="operators">></span>bindings<span style="color:#F46164;" class="square_bracket">[</span><span style="color:#EBD1B7;" class="variable">$abstract</span><span style="color:#F46164;" class="square_bracket">]</span><span style="color:#F46164;" class="square_bracket">[</span><font style="color:#F8BB39;" class="strip quote">'shared'</font><span style="color:#F46164;" class="square_bracket">]</span><span style="color:#555555;" class="semi_colon">;</span></td></tr><tr><td>22</td><td> <span style="color:#EBD1B7;" class="curly_braces">}</span></td></tr><tr><td>23</td><td> <span style="color:#95CC5E;" class="keyword">else</span></td></tr><tr><td>24</td><td> <span style="color:#EBD1B7;" class="curly_braces">{</span></td></tr><tr><td>25</td><td> <span style="color:#EBD1B7;" class="variable">$counter</span><span style="color:#ED1153;" class="operators">-</span><span style="color:#ED1153;" class="operators">-</span><span style="color:#555555;" class="semi_colon">;</span></td></tr><tr><td>26</td><td> <span style="color:#EBD1B7;" class="variable">$shared</span> <span style="color:#ED1153;" class="operators">=</span> <span style="color:#DB784D;" class="bool">false</span><span style="color:#555555;" class="semi_colon">;</span></td></tr><tr><td>27</td><td> <span style="color:#EBD1B7;" class="curly_braces">}</span></td></tr><tr><td>28</td><td></td></tr><tr><td>29</td><td> <span style="color:#bbbbbb;font-style:italic;" class="strip comment">#smart <span style="color:#EBD1B7;" class="function">function</span> type dictation</span></td></tr><tr><td>30</td><td> <span style="color:#DB784D;" class="self">self</span><span style="color:#ED1153;" class="operators">::</span><span style="color:#60A365;" class="custom_function">hash</span><span style="color:#EBD1B7;" class="parenthesis">(</span><span style="color:#6367A7;" class="php_function">hash</span><span style="color:#EBD1B7;" class="parenthesis">(</span><font style="color:#F8BB39;" class="strip quote">'sha1'</font>, <font style="color:#F8BB39;" class="strip quote">'foobar'</font><span style="color:#EBD1B7;" class="parenthesis">)</span>, <span style="color:#EBD1B7;" class="variable">$this</span><span style="color:#ED1153;" class="operators">-</span><span style="color:#ED1153;" class="operators">></span><span style="color:#60A365;" class="custom_function">hash</span><span style="color:#EBD1B7;" class="parenthesis">(</span><span style="color:#EBD1B7;" class="parenthesis">)</span><span style="color:#EBD1B7;" class="parenthesis">)</span><span style="color:#555555;" class="semi_colon">;</span></td></tr><tr><td>31</td><td> <span style="color:#95CC5E;" class="keyword">return</span> <span style="color:#EBD1B7;" class="parenthesis">(</span><span style="color:#95CC5E;" class="keyword">isset</span><span style="color:#EBD1B7;" class="parenthesis">(</span><span style="color:#EBD1B7;" class="variable">$this</span><span style="color:#ED1153;" class="operators">-</span><span style="color:#ED1153;" class="operators">></span>instances<span style="color:#F46164;" class="square_bracket">[</span><span style="color:#EBD1B7;" class="variable">$abstract</span><span style="color:#F46164;" class="square_bracket">]</span><span style="color:#EBD1B7;" class="parenthesis">)</span> <span style="color:#ED1153;" class="operators">|</span><span style="color:#ED1153;" class="operators">|</span> <span style="color:#EBD1B7;" class="variable">$shared</span> <span style="color:#ED1153;" class="operators">=</span><span style="color:#ED1153;" class="operators">=</span><span style="color:#ED1153;" class="operators">=</span> <span style="color:#DB784D;" class="bool">true</span><span style="color:#EBD1B7;" class="parenthesis">)</span><span style="color:#555555;" class="semi_colon">;</span></td></tr><tr><td>32</td><td> <span style="color:#EBD1B7;" class="curly_braces">}</span></td></tr><tr><td>33</td><td><span style="color:#EBD1B7;" class="curly_braces">}</span></td></tr><tr class="last-map"><td></td><td></td></tr></table><style>.strip font,.strip span{color:inherit !important;all:initial !important;all:unset !important}</style></pre>
</div>
</div>
<div class="code imo">
<div class="name" style="background-color:#eeeeee; color: #555555;">imo</div>
<div class="sample" style="color: #555555;">
<pre><table style="background:#FFFFFF;width:100%;"><tr><td>1</td><td><span style="color:#8C4D03;" class="constant"><span style="color:#F00000;" class="tag long"><?php</span></span></td></tr><tr><td>2</td><td></td></tr><tr><td>3</td><td><span style="color:#445588;" class="keyword">namespace</span> Text;</td></tr><tr><td>4</td><td><span style="color:#445588;" class="keyword">use</span> PhpPrettify <span style="color:#445588;" class="keyword">as</span> Php;</td></tr><tr><td>5</td><td></td></tr><tr><td>6</td><td><span style="color:#555555;" class="number"><span style="color:#445588;" class="keyword">class </span>Text</span> <span style="color:#555555;" class="number"><span style="color:#445588;" class="keyword">extends</span> Namespace\TextProcess</span> <span style="color:#555555;" class="number"><span style="color:#445588;" class="keyword">implements</span> Php</span></td></tr><tr><td>7</td><td><span style="color:#555555;" class="curly_braces">{</span></td></tr><tr><td>8</td><td> <font style="color:#bbbbbb;font-style:italic;" class="strip multi_line_comment">/**</td></tr><tr><td>9</td><td><font style="color:#bbbbbb;font-style:italic;" class="strip multi_line_comment"> * An array of the types that have been resolved<span style="color:#ED1153;" class="operators">.</span></font></td></tr><tr><td>10</td><td><font style="color:#bbbbbb;font-style:italic;" class="strip multi_line_comment"> *</font></td></tr><tr><td>11</td><td><font style="color:#bbbbbb;font-style:italic;" class="strip multi_line_comment"> * <span style="color:#ED1153;" class="operators">@</span><span style="color:#445588;" class="keyword">var</span> array</font></td></tr><tr><td>12</td><td><font style="color:#bbbbbb;font-style:italic;" class="strip multi_line_comment"> */</font></font></td></tr><tr><td>13</td><td> <span style="color:#445588;" class="keyword">protected</span> <span style="color:#008080;" class="variable">$resolved</span> <span style="color:#ED1153;" class="operators">=</span> <span style="color:#445588;" class="keyword">array</span><span style="color:#555555;" class="parenthesis">(</span><span style="color:#555555;" class="parenthesis">)</span><span style="color:#555555;" class="semi_colon">;</span></td></tr><tr><td>14</td><td></td></tr><tr><td>15</td><td> <span style="color:#445588;" class="keyword">public</span> <span style="color:#555555;" class="function">function</span> <span style="color:#445588;" class="custom_function">isShared</span><span style="color:#555555;" class="parenthesis">(</span><span style="color:#E3093F;" class="parameter_type">string </span><span style="color:#008080;" class="variable">$abstract</span>, <span style="color:#E3093F;" class="parameter_type">int </span><span style="color:#ED1153;" class="operators">&</span><span style="color:#008080;" class="variable">$counter</span><span style="color:#ED1153;" class="operators"><span style="color:#555555;" class="parenthesis">)</span>:</span><span style="color:#FE648A;" class="return_type"> bool</span></td></tr><tr><td>16</td><td> <span style="color:#555555;" class="curly_braces">{</span></td></tr><tr><td>17</td><td> <span style="color:#008080;" class="self">self</span><span style="color:#ED1153;" class="operators">::</span><span style="color:#445588;" class="custom_function">init</span><span style="color:#555555;" class="parenthesis">(</span><span style="color:#6367A7;" class="php_function">mt_rand</span><span style="color:#555555;" class="parenthesis">(</span><span style="color:#A4AC21;" class="number">1</span>, <span style="color:#A4AC21;" class="number">55</span><span style="color:#555555;" class="parenthesis">)</span>, <span style="color:#FF5D38;" class="parent">parent</span><span style="color:#ED1153;" class="operators">::</span><span style="color:#445588;" class="custom_function">__construct</span><span style="color:#555555;" class="parenthesis">(</span><span style="color:#555555;" class="parenthesis">)</span>, <span style="color:#8C4D03;" class="constant">ROOT_DIR</span><span style="color:#555555;" class="parenthesis">)</span><span style="color:#555555;" class="semi_colon">;</span></td></tr><tr><td>18</td><td> <span style="color:#445588;" class="keyword">if</span> <span style="color:#555555;" class="parenthesis">(</span><span style="color:#445588;" class="keyword">isset</span><span style="color:#555555;" class="parenthesis">(</span><span style="color:#008080;" class="variable">$this</span><span style="color:#ED1153;" class="operators">-</span><span style="color:#ED1153;" class="operators">></span>bindings<span style="color:#F46164;" class="square_bracket">[</span><span style="color:#008080;" class="variable">$abstract</span><span style="color:#F46164;" class="square_bracket">]</span><span style="color:#F46164;" class="square_bracket">[</span><font style="color:#DD1144;" class="strip quote">'shared'</font><span style="color:#F46164;" class="square_bracket">]</span><span style="color:#555555;" class="parenthesis">)</span> <span style="color:#ED1153;" class="operators">&</span><span style="color:#ED1153;" class="operators">&</span> <span style="color:#555555;" class="parenthesis">(</span><span style="color:#008080;" class="variable">$counter</span> <span style="color:#ED1153;" class="operators">!</span><span style="color:#ED1153;" class="operators">=</span> <span style="color:#A4AC21;" class="number">0</span><span style="color:#555555;" class="parenthesis">)</span><span style="color:#555555;" class="parenthesis">)</span></td></tr><tr><td>19</td><td> <span style="color:#555555;" class="curly_braces">{</span></td></tr><tr><td>20</td><td> <span style="color:#bbbbbb;font-style:italic;" class="strip comment">#cast to bool</span></td></tr><tr><td>21</td><td> <span style="color:#038C8C;" class="cast"><span style="color:#555555;" class="parenthesis">(</span>bool<span style="color:#555555;" class="parenthesis">)</span></span> <span style="color:#008080;" class="variable">$shared</span> <span style="color:#ED1153;" class="operators">=</span> <span style="color:#008080;" class="variable">$this</span><span style="color:#ED1153;" class="operators">-</span><span style="color:#ED1153;" class="operators">></span>bindings<span style="color:#F46164;" class="square_bracket">[</span><span style="color:#008080;" class="variable">$abstract</span><span style="color:#F46164;" class="square_bracket">]</span><span style="color:#F46164;" class="square_bracket">[</span><font style="color:#DD1144;" class="strip quote">'shared'</font><span style="color:#F46164;" class="square_bracket">]</span><span style="color:#555555;" class="semi_colon">;</span></td></tr><tr><td>22</td><td> <span style="color:#555555;" class="curly_braces">}</span></td></tr><tr><td>23</td><td> <span style="color:#445588;" class="keyword">else</span></td></tr><tr><td>24</td><td> <span style="color:#555555;" class="curly_braces">{</span></td></tr><tr><td>25</td><td> <span style="color:#008080;" class="variable">$counter</span><span style="color:#ED1153;" class="operators">-</span><span style="color:#ED1153;" class="operators">-</span><span style="color:#555555;" class="semi_colon">;</span></td></tr><tr><td>26</td><td> <span style="color:#008080;" class="variable">$shared</span> <span style="color:#ED1153;" class="operators">=</span> <span style="color:#008080;" class="bool">false</span><span style="color:#555555;" class="semi_colon">;</span></td></tr><tr><td>27</td><td> <span style="color:#555555;" class="curly_braces">}</span></td></tr><tr><td>28</td><td></td></tr><tr><td>29</td><td> <span style="color:#bbbbbb;font-style:italic;" class="strip comment">#smart <span style="color:#555555;" class="function">function</span> type dictation</span></td></tr><tr><td>30</td><td> <span style="color:#008080;" class="self">self</span><span style="color:#ED1153;" class="operators">::</span><span style="color:#445588;" class="custom_function">hash</span><span style="color:#555555;" class="parenthesis">(</span><span style="color:#6367A7;" class="php_function">hash</span><span style="color:#555555;" class="parenthesis">(</span><font style="color:#DD1144;" class="strip quote">'sha1'</font>, <font style="color:#DD1144;" class="strip quote">'foobar'</font><span style="color:#555555;" class="parenthesis">)</span>, <span style="color:#008080;" class="variable">$this</span><span style="color:#ED1153;" class="operators">-</span><span style="color:#ED1153;" class="operators">></span><span style="color:#445588;" class="custom_function">hash</span><span style="color:#555555;" class="parenthesis">(</span><span style="color:#555555;" class="parenthesis">)</span><span style="color:#555555;" class="parenthesis">)</span><span style="color:#555555;" class="semi_colon">;</span></td></tr><tr><td>31</td><td> <span style="color:#445588;" class="keyword">return</span> <span style="color:#555555;" class="parenthesis">(</span><span style="color:#445588;" class="keyword">isset</span><span style="color:#555555;" class="parenthesis">(</span><span style="color:#008080;" class="variable">$this</span><span style="color:#ED1153;" class="operators">-</span><span style="color:#ED1153;" class="operators">></span>instances<span style="color:#F46164;" class="square_bracket">[</span><span style="color:#008080;" class="variable">$abstract</span><span style="color:#F46164;" class="square_bracket">]</span><span style="color:#555555;" class="parenthesis">)</span> <span style="color:#ED1153;" class="operators">|</span><span style="color:#ED1153;" class="operators">|</span> <span style="color:#008080;" class="variable">$shared</span> <span style="color:#ED1153;" class="operators">=</span><span style="color:#ED1153;" class="operators">=</span><span style="color:#ED1153;" class="operators">=</span> <span style="color:#008080;" class="bool">true</span><span style="color:#555555;" class="parenthesis">)</span><span style="color:#555555;" class="semi_colon">;</span></td></tr><tr><td>32</td><td> <span style="color:#555555;" class="curly_braces">}</span></td></tr><tr><td>33</td><td><span style="color:#555555;" class="curly_braces">}</span></td></tr><tr class="last-map"><td></td><td></td></tr></table><style>.strip font,.strip span{color:inherit !important;all:initial !important;all:unset !important}</style></pre>
</div>
</div>
<div class="code yola">
<div class="name" style="background-color:#0c1018; color: #ffffff;">yola</div>
<div class="sample" style="color: #ffffff;">
<pre><table style="background:#131c26;width:100%;"><tr><td>1</td><td><span style="color:#FFFFFF;" class="constant"><span style="color:#EF62FC;" class="tag long"><?php</span></span></td></tr><tr><td>2</td><td></td></tr><tr><td>3</td><td><span style="color:#88B7FF;" class="keyword">namespace</span> Text;</td></tr><tr><td>4</td><td><span style="color:#88B7FF;" class="keyword">use</span> PhpPrettify <span style="color:#88B7FF;" class="keyword">as</span> Php;</td></tr><tr><td>5</td><td></td></tr><tr><td>6</td><td><span style="color:#FFFFFF;" class="number"><span style="color:#88B7FF;" class="keyword">class </span>Text</span> <span style="color:#FFFFFF;" class="number"><span style="color:#88B7FF;" class="keyword">extends</span> Namespace\TextProcess</span> <span style="color:#FFFFFF;" class="number"><span style="color:#88B7FF;" class="keyword">implements</span> Php</span></td></tr><tr><td>7</td><td><span style="color:#FFFFFF;" class="curly_braces">{</span></td></tr><tr><td>8</td><td> <font style="color:#B7B7B7;font-style:italic;" class="strip multi_line_comment">/**</td></tr><tr><td>9</td><td><font style="color:#B7B7B7;font-style:italic;" class="strip multi_line_comment"> * An array of the types that have been resolved<span style="color:#FFFFFF;" class="operators">.</span></font></td></tr><tr><td>10</td><td><font style="color:#B7B7B7;font-style:italic;" class="strip multi_line_comment"> *</font></td></tr><tr><td>11</td><td><font style="color:#B7B7B7;font-style:italic;" class="strip multi_line_comment"> * <span style="color:#FFFFFF;" class="operators">@</span><span style="color:#88B7FF;" class="keyword">var</span> array</font></td></tr><tr><td>12</td><td><font style="color:#B7B7B7;font-style:italic;" class="strip multi_line_comment"> */</font></font></td></tr><tr><td>13</td><td> <span style="color:#88B7FF;" class="keyword">protected</span> <span style="color:#DB97E4;" class="variable">$resolved</span> <span style="color:#FFFFFF;" class="operators">=</span> <span style="color:#88B7FF;" class="keyword">array</span><span style="color:#FFFFFF;" class="parenthesis">(</span><span style="color:#FFFFFF;" class="parenthesis">)</span><span style="color:#555555;" class="semi_colon">;</span></td></tr><tr><td>14</td><td></td></tr><tr><td>15</td><td> <span style="color:#88B7FF;" class="keyword">public</span> <span style="color:#88B7FF;" class="function">function</span> <span style="color:#FFC13B;" class="custom_function">isShared</span><span style="color:#FFFFFF;" class="parenthesis">(</span><span style="color:#f2368a;" class="parameter_type">string </span><span style="color:#DB97E4;" class="variable">$abstract</span>, <span style="color:#f2368a;" class="parameter_type">int </span><span style="color:#FFFFFF;" class="operators">&</span><span style="color:#DB97E4;" class="variable">$counter</span><span style="color:#FFFFFF;" class="operators"><span style="color:#FFFFFF;" class="parenthesis">)</span>:</span><span style="color:#FE648A;" class="return_type"> bool</span></td></tr><tr><td>16</td><td> <span style="color:#FFFFFF;" class="curly_braces">{</span></td></tr><tr><td>17</td><td> <span style="color:#88B7FF;" class="self">self</span><span style="color:#FFFFFF;" class="operators">::</span><span style="color:#FFC13B;" class="custom_function">init</span><span style="color:#FFFFFF;" class="parenthesis">(</span><span style="color:#6367A7;" class="php_function">mt_rand</span><span style="color:#FFFFFF;" class="parenthesis">(</span><span style="color:#FF4F51;" class="number">1</span>, <span style="color:#FF4F51;" class="number">55</span><span style="color:#FFFFFF;" class="parenthesis">)</span>, <span style="color:#FFFFFF;" class="parent">parent</span><span style="color:#FFFFFF;" class="operators">::</span><span style="color:#FFC13B;" class="custom_function">__construct</span><span style="color:#FFFFFF;" class="parenthesis">(</span><span style="color:#FFFFFF;" class="parenthesis">)</span>, <span style="color:#FFFFFF;" class="constant">ROOT_DIR</span><span style="color:#FFFFFF;" class="parenthesis">)</span><span style="color:#555555;" class="semi_colon">;</span></td></tr><tr><td>18</td><td> <span style="color:#88B7FF;" class="keyword">if</span> <span style="color:#FFFFFF;" class="parenthesis">(</span><span style="color:#88B7FF;" class="keyword">isset</span><span style="color:#FFFFFF;" class="parenthesis">(</span><span style="color:#DB97E4;" class="variable">$this</span><span style="color:#FFFFFF;" class="operators">-</span><span style="color:#FFFFFF;" class="operators">></span>bindings<span style="color:#FFFFFF;" class="square_bracket">[</span><span style="color:#DB97E4;" class="variable">$abstract</span><span style="color:#FFFFFF;" class="square_bracket">]</span><span style="color:#FFFFFF;" class="square_bracket">[</span><font style="color:#6db679;" class="strip quote">'shared'</font><span style="color:#FFFFFF;" class="square_bracket">]</span><span style="color:#FFFFFF;" class="parenthesis">)</span> <span style="color:#FFFFFF;" class="operators">&</span><span style="color:#FFFFFF;" class="operators">&</span> <span style="color:#FFFFFF;" class="parenthesis">(</span><span style="color:#DB97E4;" class="variable">$counter</span> <span style="color:#FFFFFF;" class="operators">!</span><span style="color:#FFFFFF;" class="operators">=</span> <span style="color:#FF4F51;" class="number">0</span><span style="color:#FFFFFF;" class="parenthesis">)</span><span style="color:#FFFFFF;" class="parenthesis">)</span></td></tr><tr><td>19</td><td> <span style="color:#FFFFFF;" class="curly_braces">{</span></td></tr><tr><td>20</td><td> <span style="color:#B7B7B7;font-style:italic;" class="strip comment">#cast to bool</span></td></tr><tr><td>21</td><td> <span style="color:#C71FC1;" class="cast"><span style="color:#FFFFFF;" class="parenthesis">(</span>bool<span style="color:#FFFFFF;" class="parenthesis">)</span></span> <span style="color:#DB97E4;" class="variable">$shared</span> <span style="color:#FFFFFF;" class="operators">=</span> <span style="color:#DB97E4;" class="variable">$this</span><span style="color:#FFFFFF;" class="operators">-</span><span style="color:#FFFFFF;" class="operators">></span>bindings<span style="color:#FFFFFF;" class="square_bracket">[</span><span style="color:#DB97E4;" class="variable">$abstract</span><span style="color:#FFFFFF;" class="square_bracket">]</span><span style="color:#FFFFFF;" class="square_bracket">[</span><font style="color:#6db679;" class="strip quote">'shared'</font><span style="color:#FFFFFF;" class="square_bracket">]</span><span style="color:#555555;" class="semi_colon">;</span></td></tr><tr><td>22</td><td> <span style="color:#FFFFFF;" class="curly_braces">}</span></td></tr><tr><td>23</td><td> <span style="color:#88B7FF;" class="keyword">else</span></td></tr><tr><td>24</td><td> <span style="color:#FFFFFF;" class="curly_braces">{</span></td></tr><tr><td>25</td><td> <span style="color:#DB97E4;" class="variable">$counter</span><span style="color:#FFFFFF;" class="operators">-</span><span style="color:#FFFFFF;" class="operators">-</span><span style="color:#555555;" class="semi_colon">;</span></td></tr><tr><td>26</td><td> <span style="color:#DB97E4;" class="variable">$shared</span> <span style="color:#FFFFFF;" class="operators">=</span> <span style="color:#1591D7;" class="bool">false</span><span style="color:#555555;" class="semi_colon">;</span></td></tr><tr><td>27</td><td> <span style="color:#FFFFFF;" class="curly_braces">}</span></td></tr><tr><td>28</td><td></td></tr><tr><td>29</td><td> <span style="color:#B7B7B7;font-style:italic;" class="strip comment">#smart <span style="color:#88B7FF;" class="function">function</span> type dictation</span></td></tr><tr><td>30</td><td> <span style="color:#88B7FF;" class="self">self</span><span style="color:#FFFFFF;" class="operators">::</span><span style="color:#FFC13B;" class="custom_function">hash</span><span style="color:#FFFFFF;" class="parenthesis">(</span><span style="color:#6367A7;" class="php_function">hash</span><span style="color:#FFFFFF;" class="parenthesis">(</span><font style="color:#6db679;" class="strip quote">'sha1'</font>, <font style="color:#6db679;" class="strip quote">'foobar'</font><span style="color:#FFFFFF;" class="parenthesis">)</span>, <span style="color:#DB97E4;" class="variable">$this</span><span style="color:#FFFFFF;" class="operators">-</span><span style="color:#FFFFFF;" class="operators">></span><span style="color:#FFC13B;" class="custom_function">hash</span><span style="color:#FFFFFF;" class="parenthesis">(</span><span style="color:#FFFFFF;" class="parenthesis">)</span><span style="color:#FFFFFF;" class="parenthesis">)</span><span style="color:#555555;" class="semi_colon">;</span></td></tr><tr><td>31</td><td> <span style="color:#88B7FF;" class="keyword">return</span> <span style="color:#FFFFFF;" class="parenthesis">(</span><span style="color:#88B7FF;" class="keyword">isset</span><span style="color:#FFFFFF;" class="parenthesis">(</span><span style="color:#DB97E4;" class="variable">$this</span><span style="color:#FFFFFF;" class="operators">-</span><span style="color:#FFFFFF;" class="operators">></span>instances<span style="color:#FFFFFF;" class="square_bracket">[</span><span style="color:#DB97E4;" class="variable">$abstract</span><span style="color:#FFFFFF;" class="square_bracket">]</span><span style="color:#FFFFFF;" class="parenthesis">)</span> <span style="color:#FFFFFF;" class="operators">|</span><span style="color:#FFFFFF;" class="operators">|</span> <span style="color:#DB97E4;" class="variable">$shared</span> <span style="color:#FFFFFF;" class="operators">=</span><span style="color:#FFFFFF;" class="operators">=</span><span style="color:#FFFFFF;" class="operators">=</span> <span style="color:#1591D7;" class="bool">true</span><span style="color:#FFFFFF;" class="parenthesis">)</span><span style="color:#555555;" class="semi_colon">;</span></td></tr><tr><td>32</td><td> <span style="color:#FFFFFF;" class="curly_braces">}</span></td></tr><tr><td>33</td><td><span style="color:#FFFFFF;" class="curly_braces">}</span></td></tr><tr class="last-map"><td></td><td></td></tr></table><style>.strip font,.strip span{color:inherit !important;all:initial !important;all:unset !important}</style></pre>
</div>
</div>
<div class="code git">
<div class="name" style="background-color:#eeeeee; color: #555555;">git</div>
<div class="sample" style="color: #555555;">
<pre><table style="background:#FFFFFF;width:100%;"><tr><td>1</td><td><span style="color:#0086b3;" class="constant"><span style="color:#555555;" class="tag long"><?php</span></span></td></tr><tr><td>2</td><td></td></tr><tr><td>3</td><td><span style="color:#a71d5d;" class="keyword">namespace</span> Text;</td></tr><tr><td>4</td><td><span style="color:#a71d5d;" class="keyword">use</span> PhpPrettify <span style="color:#a71d5d;" class="keyword">as</span> Php;</td></tr><tr><td>5</td><td></td></tr><tr><td>6</td><td><span style="color:#795da3;" class="number"><span style="color:#a71d5d;" class="keyword">class </span>Text</span> <span style="color:#795da3;" class="number"><span style="color:#a71d5d;" class="keyword">extends</span> Namespace\TextProcess</span> <span style="color:#795da3;" class="number"><span style="color:#a71d5d;" class="keyword">implements</span> Php</span></td></tr><tr><td>7</td><td><span style="color:#555555;" class="curly_braces">{</span></td></tr><tr><td>8</td><td> <font style="color:#969896;font-style:italic;" class="strip multi_line_comment">/**</td></tr><tr><td>9</td><td><font style="color:#969896;font-style:italic;" class="strip multi_line_comment"> * An array of the types that have been resolved<span style="color:#a71d5d;" class="operators">.</span></font></td></tr><tr><td>10</td><td><font style="color:#969896;font-style:italic;" class="strip multi_line_comment"> *</font></td></tr><tr><td>11</td><td><font style="color:#969896;font-style:italic;" class="strip multi_line_comment"> * <span style="color:#a71d5d;" class="operators">@</span><span style="color:#a71d5d;" class="keyword">var</span> array</font></td></tr><tr><td>12</td><td><font style="color:#969896;font-style:italic;" class="strip multi_line_comment"> */</font></font></td></tr><tr><td>13</td><td> <span style="color:#a71d5d;" class="keyword">protected</span> <span style="color:#555555;" class="variable">$resolved</span> <span style="color:#a71d5d;" class="operators">=</span> <span style="color:#a71d5d;" class="keyword">array</span><span style="color:#555555;" class="parenthesis">(</span><span style="color:#555555;" class="parenthesis">)</span><span style="color:#555555;" class="semi_colon">;</span></td></tr><tr><td>14</td><td></td></tr><tr><td>15</td><td> <span style="color:#a71d5d;" class="keyword">public</span> <span style="color:#a71d5d;" class="function">function</span> <span style="color:#795da3;" class="custom_function">isShared</span><span style="color:#555555;" class="parenthesis">(</span><span style="color:#0086b3;" class="parameter_type">string </span><span style="color:#555555;" class="variable">$abstract</span>, <span style="color:#0086b3;" class="parameter_type">int </span><span style="color:#a71d5d;" class="operators">&</span><span style="color:#555555;" class="variable">$counter</span><span style="color:#a71d5d;" class="operators"><span style="color:#555555;" class="parenthesis">)</span>:</span><span style="color:#0086b3;" class="return_type"> bool</span></td></tr><tr><td>16</td><td> <span style="color:#555555;" class="curly_braces">{</span></td></tr><tr><td>17</td><td> <span style="color:#5555555;" class="self">self</span><span style="color:#a71d5d;" class="operators">::</span><span style="color:#795da3;" class="custom_function">init</span><span style="color:#555555;" class="parenthesis">(</span><span style="color:#0086b3;" class="php_function">mt_rand</span><span style="color:#555555;" class="parenthesis">(</span><span style="color:#FF4F51;" class="number">1</span>, <span style="color:#FF4F51;" class="number">55</span><span style="color:#555555;" class="parenthesis">)</span>, <span style="color:#555555;" class="parent">parent</span><span style="color:#a71d5d;" class="operators">::</span><span style="color:#795da3;" class="custom_function">__construct</span><span style="color:#555555;" class="parenthesis">(</span><span style="color:#555555;" class="parenthesis">)</span>, <span style="color:#0086b3;" class="constant">ROOT_DIR</span><span style="color:#555555;" class="parenthesis">)</span><span style="color:#555555;" class="semi_colon">;</span></td></tr><tr><td>18</td><td> <span style="color:#a71d5d;" class="keyword">if</span> <span style="color:#555555;" class="parenthesis">(</span><span style="color:#a71d5d;" class="keyword">isset</span><span style="color:#555555;" class="parenthesis">(</span><span style="color:#555555;" class="variable">$this</span><span style="color:#a71d5d;" class="operators">-</span><span style="color:#a71d5d;" class="operators">></span>bindings<span style="color:#555555;" class="square_bracket">[</span><span style="color:#555555;" class="variable">$abstract</span><span style="color:#555555;" class="square_bracket">]</span><span style="color:#555555;" class="square_bracket">[</span><font style="color:#183691;" class="strip quote">'shared'</font><span style="color:#555555;" class="square_bracket">]</span><span style="color:#555555;" class="parenthesis">)</span> <span style="color:#a71d5d;" class="operators">&</span><span style="color:#a71d5d;" class="operators">&</span> <span style="color:#555555;" class="parenthesis">(</span><span style="color:#555555;" class="variable">$counter</span> <span style="color:#a71d5d;" class="operators">!</span><span style="color:#a71d5d;" class="operators">=</span> <span style="color:#FF4F51;" class="number">0</span><span style="color:#555555;" class="parenthesis">)</span><span style="color:#555555;" class="parenthesis">)</span></td></tr><tr><td>19</td><td> <span style="color:#555555;" class="curly_braces">{</span></td></tr><tr><td>20</td><td> <span style="color:#969896;font-style:italic;" class="strip comment">#cast to bool</span></td></tr><tr><td>21</td><td> <span style="color:#C71FC1;" class="cast"><span style="color:#555555;" class="parenthesis">(</span>bool<span style="color:#555555;" class="parenthesis">)</span></span> <span style="color:#555555;" class="variable">$shared</span> <span style="color:#a71d5d;" class="operators">=</span> <span style="color:#555555;" class="variable">$this</span><span style="color:#a71d5d;" class="operators">-</span><span style="color:#a71d5d;" class="operators">></span>bindings<span style="color:#555555;" class="square_bracket">[</span><span style="color:#555555;" class="variable">$abstract</span><span style="color:#555555;" class="square_bracket">]</span><span style="color:#555555;" class="square_bracket">[</span><font style="color:#183691;" class="strip quote">'shared'</font><span style="color:#555555;" class="square_bracket">]</span><span style="color:#555555;" class="semi_colon">;</span></td></tr><tr><td>22</td><td> <span style="color:#555555;" class="curly_braces">}</span></td></tr><tr><td>23</td><td> <span style="color:#a71d5d;" class="keyword">else</span></td></tr><tr><td>24</td><td> <span style="color:#555555;" class="curly_braces">{</span></td></tr><tr><td>25</td><td> <span style="color:#555555;" class="variable">$counter</span><span style="color:#a71d5d;" class="operators">-</span><span style="color:#a71d5d;" class="operators">-</span><span style="color:#555555;" class="semi_colon">;</span></td></tr><tr><td>26</td><td> <span style="color:#555555;" class="variable">$shared</span> <span style="color:#a71d5d;" class="operators">=</span> <span style="color:#1591D7;" class="bool">false</span><span style="color:#555555;" class="semi_colon">;</span></td></tr><tr><td>27</td><td> <span style="color:#555555;" class="curly_braces">}</span></td></tr><tr><td>28</td><td></td></tr><tr><td>29</td><td> <span style="color:#969896;font-style:italic;" class="strip comment">#smart <span style="color:#a71d5d;" class="function">function</span> type dictation</span></td></tr><tr><td>30</td><td> <span style="color:#5555555;" class="self">self</span><span style="color:#a71d5d;" class="operators">::</span><span style="color:#795da3;" class="custom_function">hash</span><span style="color:#555555;" class="parenthesis">(</span><span style="color:#0086b3;" class="php_function">hash</span><span style="color:#555555;" class="parenthesis">(</span><font style="color:#183691;" class="strip quote">'sha1'</font>, <font style="color:#183691;" class="strip quote">'foobar'</font><span style="color:#555555;" class="parenthesis">)</span>, <span style="color:#555555;" class="variable">$this</span><span style="color:#a71d5d;" class="operators">-</span><span style="color:#a71d5d;" class="operators">></span><span style="color:#795da3;" class="custom_function">hash</span><span style="color:#555555;" class="parenthesis">(</span><span style="color:#555555;" class="parenthesis">)</span><span style="color:#555555;" class="parenthesis">)</span><span style="color:#555555;" class="semi_colon">;</span></td></tr><tr><td>31</td><td> <span style="color:#a71d5d;" class="keyword">return</span> <span style="color:#555555;" class="parenthesis">(</span><span style="color:#a71d5d;" class="keyword">isset</span><span style="color:#555555;" class="parenthesis">(</span><span style="color:#555555;" class="variable">$this</span><span style="color:#a71d5d;" class="operators">-</span><span style="color:#a71d5d;" class="operators">></span>instances<span style="color:#555555;" class="square_bracket">[</span><span style="color:#555555;" class="variable">$abstract</span><span style="color:#555555;" class="square_bracket">]</span><span style="color:#555555;" class="parenthesis">)</span> <span style="color:#a71d5d;" class="operators">|</span><span style="color:#a71d5d;" class="operators">|</span> <span style="color:#555555;" class="variable">$shared</span> <span style="color:#a71d5d;" class="operators">=</span><span style="color:#a71d5d;" class="operators">=</span><span style="color:#a71d5d;" class="operators">=</span> <span style="color:#1591D7;" class="bool">true</span><span style="color:#555555;" class="parenthesis">)</span><span style="color:#555555;" class="semi_colon">;</span></td></tr><tr><td>32</td><td> <span style="color:#555555;" class="curly_braces">}</span></td></tr><tr><td>33</td><td><span style="color:#555555;" class="curly_braces">}</span></td></tr><tr class="last-map"><td></td><td></td></tr></table><style>.strip font,.strip span{color:inherit !important;all:initial !important;all:unset !important}</style></pre>
</div>
</div>
</body>
</html>