Skip to content

Commit 2f483e0

Browse files
committed
Apply coding-standards changes to files
1 parent fc9abba commit 2f483e0

26 files changed

+44
-40
lines changed

src/Autoloader.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,4 +39,4 @@ public static function autoload($class)
3939
}
4040
}
4141
}
42-
}
42+
}

src/Css/Style.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -937,7 +937,7 @@ function __get($prop)
937937

938938
$retval = null;
939939

940-
// Preview the value based on the default if the property is not cached
940+
// Preview the value based on the default if the property is not cached
941941
// and the computed value has not yet been set.
942942
$reset_value = false;
943943
$specified_value = null;
@@ -1227,7 +1227,7 @@ function get_background_color()
12271227

12281228
/**
12291229
* Returns the background image URI, or "none"
1230-
*
1230+
*
12311231
* @link https://www.w3.org/TR/CSS21/colors.html#propdef-background-image
12321232
* @return string
12331233
*/
@@ -1579,7 +1579,7 @@ function get_border_spacing()
15791579

15801580
/**
15811581
* Returns the list style image URI, or "none"
1582-
*
1582+
*
15831583
* @link http://www.w3.org/TR/CSS21/generate.html#propdef-list-style-image
15841584
* @return string
15851585
*/
@@ -1837,7 +1837,7 @@ protected function _image($val)
18371837
print "<pre>[_image\n";
18381838
print_r($parsed_url);
18391839
print $this->_stylesheet->get_protocol() . "\n" . $this->_stylesheet->get_base_path() . "\n" . $path . "\n";
1840-
print "_image]</pre>";;
1840+
print "_image]</pre>";
18411841
}
18421842
return $path;
18431843
}
@@ -2268,7 +2268,7 @@ function set_font($val)
22682268

22692269
/**
22702270
* Sets the text alignment
2271-
*
2271+
*
22722272
* If no alignment is set on the element and the direction is rtl then
22732273
* the property is set to "right", otherwise it is set to "left".
22742274
*

src/Dompdf.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -288,7 +288,7 @@ public function __construct($options = null)
288288

289289
$versionFile = realpath(__DIR__ . '/../VERSION');
290290
if (file_exists($versionFile) && ($version = trim(file_get_contents($versionFile))) !== false && $version !== '$Format:<%h>$') {
291-
$this->version = sprintf('dompdf %s', $version);
291+
$this->version = sprintf('dompdf %s', $version);
292292
}
293293

294294
$this->setPhpConfig();

src/FontMetrics.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -97,8 +97,8 @@ public function saveFontFamilies()
9797
$cacheData .= sprintf(" '%s' => array(%s", addslashes($family), PHP_EOL);
9898
foreach ($variants as $variant => $path) {
9999
$path = sprintf("'%s'", $path);
100-
$path = str_replace('\'' . $this->getOptions()->getFontDir() , '$fontDir . \'' , $path);
101-
$path = str_replace('\'' . $this->getOptions()->getRootDir() , '$rootDir . \'' , $path);
100+
$path = str_replace('\'' . $this->getOptions()->getFontDir(), '$fontDir . \'', $path);
101+
$path = str_replace('\'' . $this->getOptions()->getRootDir(), '$rootDir . \'', $path);
102102
$cacheData .= sprintf(" '%s' => %s,%s", $variant, $path, PHP_EOL);
103103
}
104104
$cacheData .= sprintf(" ),%s", PHP_EOL);
@@ -227,7 +227,7 @@ public function registerFont($style, $remoteFile, $context = null)
227227
break;
228228
}
229229
}
230-
if ($chrootValid !== true) {
230+
if ($chrootValid !== true) {
231231
Helpers::record_warnings(E_USER_WARNING, "Permission denied on $remoteFile. The file could not be found under the paths specified by Options::chroot.", __FILE__, __LINE__);
232232
return false;
233233
}
@@ -588,4 +588,4 @@ public function getCanvas()
588588
{
589589
return $this->canvas;
590590
}
591-
}
591+
}

src/Frame.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -326,7 +326,7 @@ public function reset()
326326
$this->_style = clone $this->_original_style;
327327

328328
// If this represents a generated node then child nodes represent generated content.
329-
// Remove the children since the content will be generated next time this frame is reflowed.
329+
// Remove the children since the content will be generated next time this frame is reflowed.
330330
if ($this->_node->nodeName === "dompdf_generated" && $this->_style->content != "normal") {
331331
foreach ($this->get_children() as $child) {
332332
$this->remove_child($child);
@@ -1258,4 +1258,4 @@ public function __toString()
12581258

12591259
return $str;
12601260
}
1261-
}
1261+
}

src/Frame/Factory.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -84,15 +84,15 @@ static function decorate_frame(Frame $frame, Dompdf $dompdf, Frame $root = null)
8484

8585
switch ($display) {
8686

87-
case "flex": //FIXME: display type not yet supported
87+
case "flex": //FIXME: display type not yet supported
8888
case "table-caption": //FIXME: display type not yet supported
8989
case "block":
9090
$positioner = "Block";
9191
$decorator = "Block";
9292
$reflower = "Block";
9393
break;
9494

95-
case "inline-flex": //FIXME: display type not yet supported
95+
case "inline-flex": //FIXME: display type not yet supported
9696
case "inline-block":
9797
$positioner = "Inline";
9898
$decorator = "Block";

src/Frame/FrameListIterator.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,4 +88,4 @@ public function next()
8888
$this->_num++;
8989
return $ret;
9090
}
91-
}
91+
}

src/Frame/FrameTree.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -312,4 +312,4 @@ public function insert_node(DOMElement $node, DOMElement $new_node, $pos)
312312

313313
return $frame_id;
314314
}
315-
}
315+
}

src/Frame/FrameTreeIterator.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,4 +93,3 @@ public function next()
9393
return $b;
9494
}
9595
}
96-

src/FrameDecorator/Table.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -395,4 +395,4 @@ public function move_after(Frame $frame)
395395
{
396396
$this->get_parent()->insert_child_after($frame, $this);
397397
}
398-
}
398+
}

0 commit comments

Comments
 (0)